Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def onDial(protocol,event):
- """ Функция слушат определенные номера из переменной extensions и при звонке на них выполняет действия... """
- if 'destination' in event:
- destination=event['destination']
- for s in extensions.keys():
- if destination.startswith(s):
- cid=event['calleridnum']
- cidname=event['calleridname']
- channel=event['channel']
- extname=extensions[s]
- if (cidname == "Пономарев"):
- protocol.setVar(channel, "uniqueid", "test")
Advertisement
Add Comment
Please, Sign In to add comment