[asterisk-users] setting variable for a DID number
danny at debsinc.com
Thu Aug 19 10:39:51 CDT 2010
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tino
Subject: [asterisk-users] setting variable for a DID number
>Is it possible to set a variable in dialpan when the someone calls a
particular DID number so that i can use that variable for calls coming to
that number only.
As you asked the question:
Exten => 5551212,1,Set(GLOBAL(TINO)=tino)
Will set a variable to be used by any call when the user dials 5551212. If
your incoming number is 5551212, you would want to use "ex-girlfriend" logic
Exten => _X/5551212,n,Set(GLOBAL(TINO)=tino)
Sets TINO when incoming line 5551212 rings.
That's it for now.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the asterisk-users