[asterisk-users] setting variable for a DID number
Danny Nicholas
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
>Hello,
>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
like this
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...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100819/4bff37e8/attachment.htm
More information about the asterisk-users
mailing list