[asterisk-users] Do not disturbe
Flavio Miranda
flaviormiranda at hotmail.com
Tue Jan 4 17:13:03 CST 2011
Hi all,
I am trying to set up DND in my asterisk, I am using the following context:
[app-naoperturbe]
exten => *11,1,Set(DND=${DB(ddisturbe/${CALLERIDNUM})})exten => *11,2,GotoIf($["${DND}" = "YES"]?*11,3:*11,101)exten => *11,3,Set(DB(ddisturbe/${CALLERIDNUM})=NO)exten => *11,4,Playback(beep)exten => *11,5,Hangup()exten => *11,101,Set(DB(ddisturbe/${CALLERIDNUM})=YES)exten => *11,102,Playback(beep)exten => *11,103,Hangup() I am testing with a softphone and when I dial *11, I receive the following log from cli:
Executing [*11 at a2billing:1] Set("SIP/2015-00000187", "DND=YES") in new stack -- Executing [*11 at a2billing:2] GotoIf("SIP/2015-00000187", "1?*11,3:*11,101") in new stack -- Goto (a2billing,*11,3) -- Executing [*11 at a2billing:3] Set("SIP/2015-00000187", "DB(ddisturbe/)=NO") in new stack -- Executing [*11 at a2billing:4] Playback("SIP/2015-00000187", "beep") in new stack -- <SIP/2015-00000187> Playing 'beep.gsm' (language 'en') -- Executing [*11 at a2billing:5] Hangup("SIP/2015-00000187", "") in new stack == Spawn extension (a2billing, *11, 5) exited non-zero on 'SIP/2015-00000187'
Therefore, the facilite is not working!!What I am doing wrong, could somebody point me out please?!!
Thanks in advanced!!
Att,
Flavio Roberto Miranda
MSN:flaviormiranda at hotmail.com
Skype: flaviormiranda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110104/48824dae/attachment.htm>
More information about the asterisk-users
mailing list