[Asterisk-Users] BYEXTENSION and DBPut

Jeremy McNamara jj at nufone.net
Sat Dec 20 19:29:34 MST 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.
>  
>


Because BYEXTENSION is basically a Dial only feature.    Use ${EXTEN}



Jeremy McNamara





More information about the asterisk-users mailing list