<br><br><div class="gmail_quote">2009/8/6 Alex Samad <span dir="ltr"><<a href="mailto:alex@samad.com.au">alex@samad.com.au</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Fri, Jul 24, 2009 at 08:28:48AM -0500, Danny Nicholas wrote:<br>
> Here's how I think your dialplan should look:<br>
><br>
> exten => 101,1,Ringing<br>
> exten => 101,2,Answer()<br>
> exten => 101,3,Dial(SIP/quentin,10)<br>
> exten => 101,n,VoiceMail(101@default,u)<br>
> exten => 101,n,Playback(vm-goodbye)<br>
> exten => 101,n,Hangup()<br>
> exten => 101-BUSY,1,Playback(busy)<br>
> exten => 101-BUSY,n,Wait(3)<br>
> exten => 101-BUSY,n,VoiceMail(101@default,b)<br>
> exten => 101-BUSY,n,Playback(vm-goodbye)<br>
> exten => 101-BUSY,n,Hangup()<br>
><br>
<br>
</div>
>I have a question about this dialplan, why does the dial do a jump to<br>
>101-<DIALSTATUS>, is there a goto 101-<DIALSTATUS> missing ?<br>
<br>
>Alex<br>
<br></blockquote></div>Hi Alex<br><br>You are right, a line is missing. If I just stay in this same dialplan, I will add this line<br>exten => 101,GotoIf([${DIALSTATUS} = BUSY]?101-BUSY,1)<br>just after the diap() application.<br>
<br>But as someone else wrote before, you can do a dialplan like this<br>exten => 101,1,Ringing<br>exten => 101,n,Answer()<br>
exten => 101,n,Dial(SIP/quentin,10)<br>exten => 101,n,Goto(101-${DIALSTATUS},1)<br>
exten => 101-NOANSWER,1,VoiceMail(101@default,u)<br>
exten => 101-NOANSWER,n,Playback(vm-goodbye)<br>
exten => 101-NOANSWER,n,Hangup()<br>
exten => 101-BUSY,1,Playback(busy)<br>
exten => 101-BUSY,n,Wait(3)<br>
exten => 101-BUSY,n,VoiceMail(101@default,b)<br><div class="im">
exten => 101-BUSY,n,Playback(vm-goodbye)<br>
exten => 101-BUSY,n,Hangup()<br>exten => _101-.,1,Goto(101-NOANSWER,1)<br><br>Harry<br></div><br><br>