<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<font class="Apple-style-span" face="Tahoma" size="2">Hi all,</font><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; "> I am trying to set up DND in my asterisk, I am using the following context:</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div><div><font class="Apple-style-span" face="Tahoma" size="2">[app-naoperturbe]</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2">exten => *11,1,Set(DND=${DB(ddisturbe/${CALLERIDNUM})})</font></div><div><font class="Apple-style-span" face="Tahoma" size="2">exten => *11,2,GotoIf($["${DND}" = "YES"]?*11,3:*11,101)</font></div><div><font class="Apple-style-span" face="Tahoma" size="2">exten => *11,3,Set(DB(ddisturbe/${CALLERIDNUM})=NO)</font></div><div><font class="Apple-style-span" face="Tahoma" size="2">exten => *11,4,Playback(beep)</font></div><div><font class="Apple-style-span" face="Tahoma" size="2">exten => *11,5,Hangup()</font></div><div><font class="Apple-style-span" face="Tahoma" size="2">exten => *11,101,Set(DB(ddisturbe/${CALLERIDNUM})=YES)</font></div><div><font class="Apple-style-span" face="Tahoma" size="2">exten => *11,102,Playback(beep)</font></div><div><font class="Apple-style-span" face="Tahoma" size="2">exten => *11,103,Hangup()</font></div><div style="font-family: Tahoma; font-size: 10pt; "> </div><div style="font-family: Tahoma; font-size: 10pt; ">I am testing with a softphone and when I dial *11, I receive the following log from cli:</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div>Executing [*11@a2billing:1] Set("SIP/2015-00000187", "DND=YES") in new stack</div><div> -- Executing [*11@a2billing:2] GotoIf("SIP/2015-00000187", "1?*11,3:*11,101") in new stack</div><div> -- Goto (a2billing,*11,3)</div><div> -- Executing [*11@a2billing:3] Set("SIP/2015-00000187", "DB(ddisturbe/)=NO") in new stack</div><div> -- Executing [*11@a2billing:4] Playback("SIP/2015-00000187", "beep") in new stack</div><div> -- <SIP/2015-00000187> Playing 'beep.gsm' (language 'en')</div><div> -- Executing [*11@a2billing:5] Hangup("SIP/2015-00000187", "") in new stack</div><div> == Spawn extension (a2billing, *11, 5) exited non-zero on 'SIP/2015-00000187'</div><div><br></div><div>Therefore, the facilite is not working!!</div><div>What I am doing wrong, could somebody point me out please?!!</div><div><br></div><div>Thanks in advanced!!</div><div><br></div><div><br></div><font class="Apple-style-span" face="Tahoma" size="2">Att,</font><br><font class="Apple-style-span" face="Tahoma" size="2">
</font><br><font class="Apple-style-span" face="Tahoma" size="2">
Flavio Roberto Miranda</font><br><font class="Apple-style-span" face="Tahoma" size="2">
MSN:flaviormiranda@hotmail.com</font><br><font class="Apple-style-span" face="Tahoma" size="2">Skype: flaviormiranda</font><br><br></div>                                            </body>
</html>