I have an issue where a particular dialplan works but another doesn't. I'm not sure why. To me they look identical and it has me stumped. This works: [to-test] exten => _X., 1, SetCallerPres(allowed) exten => _X., 2, Monitor(wav,/tmp/test-${UNIQUEID},mb) exten => _X., 3, Ringing exten => _X., 4, Dial(SIP/9330 at a-test,20,ro) exten => _X., 5, GotoIf($["${DIALSTATUS}" = "ANSWER"]?9) exten => _X., 6, GotoIf($["${DIALSTATUS}" = "NOANSWER"]?7) exten => _X., 7, Dial(SIP/9330 at a-test2,20,ro) exten => _X., 8, GotoIf($["${DIALSTATUS}" = "ANSWER"]?9) exten => _X., 9, Hangup This does NOT work: [to-test] exten => _X., 1, SetCallerPres(allowed) exten => _X., 20, Monitor(wav,/tmp/test-${UNIQUEID},mb) exten => _X., 30, Ringing exten => _X., 40, Dial(SIP/9330 at a-test,20,ro) exten => _X., 50, GotoIf($["${DIALSTATUS}" = "ANSWER"]?90) exten => _X., 60, GotoIf($["${DIALSTATUS}" = "NOANSWER"]?70) exten => _X., 70, Dial(SIP/9330 at a-test2,20,ro) exten => _X., 80, GotoIf($["${DIALSTATUS}" = "ANSWER"]?90) exten => _X., 90, Hangup This does NOT work either: [to-test] exten => _X., 1, SetCallerPres(allowed) exten => _X., 2, Monitor(wav,/tmp/test-${UNIQUEID},mb) exten => _X., 3, Ringing exten => _X., 4, Dial(SIP/9330 at a-test,20,ro) exten => _X., 5, GotoIf($["${DIALSTATUS}" = "ANSWER"]?200) exten => _X., 6, GotoIf($["${DIALSTATUS}" = "NOANSWER"]?7) exten => _X., 7, Dial(SIP/9330 at a-test2,20,ro) exten => _X., 8, GotoIf($["${DIALSTATUS}" = "ANSWER"]?200) exten => _X., 200, Hangup -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090922/57f4ae29/attachment.htm
How are these identical? On Tue, Sep 22, 2009 at 11:32 PM, Julian Yap <julianokyap at gmail.com> wrote:> I have an issue where a particular dialplan works but another doesn't. I'm > not sure why. To me they look identical and it has me stumped. > > This works: > [to-test] > exten => _X., 1, SetCallerPres(allowed) > exten => _X., 2, Monitor(wav,/tmp/test-${UNIQUEID},mb) > exten => _X., 3, Ringing > exten => _X., 4, Dial(SIP/9330 at a-test,20,ro) > exten => _X., 5, GotoIf($["${DIALSTATUS}" = "ANSWER"]?9) > exten => _X., 6, GotoIf($["${DIALSTATUS}" = "NOANSWER"]?7) > exten => _X., 7, Dial(SIP/9330 at a-test2,20,ro) > exten => _X., 8, GotoIf($["${DIALSTATUS}" = "ANSWER"]?9) > exten => _X., 9, Hangup > > This does NOT work: > [to-test] > exten => _X., 1, SetCallerPres(allowed) > exten => _X., 20, Monitor(wav,/tmp/test-${UNIQUEID},mb) > exten => _X., 30, Ringing > exten => _X., 40, Dial(SIP/9330 at a-test,20,ro) > exten => _X., 50, GotoIf($["${DIALSTATUS}" = "ANSWER"]?90) > exten => _X., 60, GotoIf($["${DIALSTATUS}" = "NOANSWER"]?70) > exten => _X., 70, Dial(SIP/9330 at a-test2,20,ro) > exten => _X., 80, GotoIf($["${DIALSTATUS}" = "ANSWER"]?90) > exten => _X., 90, Hangup > > This does NOT work either: > [to-test] > exten => _X., 1, SetCallerPres(allowed) > exten => _X., 2, Monitor(wav,/tmp/test-${UNIQUEID},mb) > exten => _X., 3, Ringing > exten => _X., 4, Dial(SIP/9330 at a-test,20,ro) > exten => _X., 5, GotoIf($["${DIALSTATUS}" = "ANSWER"]?200) > exten => _X., 6, GotoIf($["${DIALSTATUS}" = "NOANSWER"]?7) > exten => _X., 7, Dial(SIP/9330 at a-test2,20,ro) > exten => _X., 8, GotoIf($["${DIALSTATUS}" = "ANSWER"]?200) > exten => _X., 200, Hangup > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2009 - October 13 - 15 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
On 23/09/09 3:32 PM, Julian Yap wrote:> I have an issue where a particular dialplan works but another doesn't. > I'm not sure why. To me they look identical and it has me stumped. > > This works: > [to-test] > exten => _X., 1, SetCallerPres(allowed) > exten => _X., 2, Monitor(wav,/tmp/test-${UNIQUEID},mb)1, 2, yep.> [to-test] > exten => _X., 1, SetCallerPres(allowed) > exten => _X., 20, Monitor(wav,/tmp/test-${UNIQUEID},mb)Normally 2 comes after 1 rather than 20 - looks like you're missing 2 through 19 here :) -- Cheers, Matt Riddell Director _______________________________________________ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer) http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems)
On Tue, Sep 22, 2009 at 05:32:13PM -1000, Julian Yap wrote:> I have an issue where a particular dialplan works but another doesn't. I'm > not sure why. To me they look identical and it has me stumped. > > This works: > [to-test] > exten => _X., 1, SetCallerPres(allowed) > exten => _X., 2, Monitor(wav,/tmp/test-${UNIQUEID},mb) > exten => _X., 3, Ringing > exten => _X., 4, Dial(SIP/9330 at a-test,20,ro) > exten => _X., 5, GotoIf($["${DIALSTATUS}" = "ANSWER"]?9) > exten => _X., 6, GotoIf($["${DIALSTATUS}" = "NOANSWER"]?7) > exten => _X., 7, Dial(SIP/9330 at a-test2,20,ro) > exten => _X., 8, GotoIf($["${DIALSTATUS}" = "ANSWER"]?9) > exten => _X., 9, HangupDoes this actually work? With the extra space after the ','? -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir