[Asterisk-Users] BYEXTENSION and DBPut

Walt Davis crazydog at waltdavis.net
Sun Dec 21 23:38:23 MST 2003


Hey I found it, CALLERIDNUM ... cooool!

> So using ${EXTEN} works for most things but I was trying to implement a
> whitelist as follows:
>
>     exten => s,6,DBGet(WLN=whitelist/${EXTEN})
>     exten => s,7,Goto(ringhouse,s,1)
>
>     exten => s,107,Goto(nothome,s,1)
>
> However, in the console I see that ${EXTEN} gets replaced with 's' and
> what I want is the the CID number. The must be another variable for that
> but what is its name?
>
>> Don't use BYEXTENSION use ${EXTEN}
>>
>> bkw
>>
>> On Sat, 20 Dec 2003, Walt Davis wrote:
>>
>>> Hey I need another pair of eyes on this!
>>>
>>> I would like to add phones numbers to the blacklist from any handset
>>> so I did this:
>>>
>>>      exten => _*66XXXXXXXXXX,1,StripMSD,3
>>>      exten => _XXXXXXXXXX,2,DBPut,blacklist/BYEXTENSION/1
>>>      exten => _XXXXXXXXXX,3,Hangup
>>>
>>> However what I get in the database is:
>>>
>>>      /blacklist/BYEXTENSION : 1
>>>
>>> And BYEXTENSION is not replaced with the actual number dialed.
>>>
>>> Am I trying to do something that can not be done or am I just not
>>> doing it correctly?
>>>
>>> Walt
>>>
>>>
>>> _______________________________________________
>>> Asterisk-Users mailing list
>>> Asterisk-Users at lists.digium.com
>>> http://lists.digium.com/mailman/listinfo/asterisk-users
>>>
>> _______________________________________________
>> Asterisk-Users mailing list
>> Asterisk-Users at lists.digium.com
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users






More information about the asterisk-users mailing list