[asterisk-users] Simple dialplan issue
Matt Riddell
lists at venturevoip.com
Wed Sep 23 00:33:21 CDT 2009
On 23/09/09 4:59 PM, Julian Yap wrote:
> Why wouldn't this work?:
> [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
>
1. works
2. should work
3. works
4. r option is horrible, but works
5. works
6. weird but works - it's going to go to 7 anyway, so effectively this
line does nothing
7. again, r is horrible but works
8. Why? If it get's to 9 (which doesn't exist) it's going to hang up
anyway.
200. Pointless (see 8)
--
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)
More information about the asterisk-users
mailing list