<div class="gmail_quote">On Tue, Sep 22, 2009 at 6:34 PM, Matt Riddell <span dir="ltr">&lt;<a href="mailto:lists@venturevoip.com">lists@venturevoip.com</a>&gt;</span> wrote:<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 23/09/09 3:32 PM, Julian Yap wrote:<br>
&gt; I have an issue where a particular dialplan works but another doesn&#39;t.<br>
&gt; I&#39;m not sure why.  To me they look identical and it has me stumped.<br>
&gt;<br>
&gt; This works:<br>
&gt; [to-test]<br>
&gt; exten =&gt; _X., 1, SetCallerPres(allowed)<br>
&gt; exten =&gt; _X., 2, Monitor(wav,/tmp/test-${UNIQUEID},mb)<br>
<br>
</div>1, 2, yep.<br>
<div class="im"><br>
&gt; [to-test]<br>
&gt; exten =&gt; _X., 1, SetCallerPres(allowed)<br>
&gt; exten =&gt; _X., 20, Monitor(wav,/tmp/test-${UNIQUEID},mb)<br>
<br>
</div>Normally 2 comes after 1 rather than 20 - looks like you&#39;re missing 2<br>
through 19 here :)<br>
</blockquote><div><br>Hmm, I guess I was under the understanding that it would work like that.<br><br>Why wouldn&#39;t this work?:<br>[to-test]<br>
exten =&gt; _X., 1, SetCallerPres(allowed)<br>
exten =&gt; _X., 2, Monitor(wav,/tmp/test-${<div id=":3g" class="ii gt">UNIQUEID},mb)<br>
exten =&gt; _X., 3, Ringing<br>
exten =&gt; _X., 4, Dial(SIP/9330@a-test,20,ro)<br>
exten =&gt; _X., 5, GotoIf($[&quot;${DIALSTATUS}&quot; = &quot;ANSWER&quot;]?200)<br>
exten =&gt; _X., 6, GotoIf($[&quot;${DIALSTATUS}&quot; = &quot;NOANSWER&quot;]?7)<br>
exten =&gt; _X., 7, Dial(SIP/9330@a-test2,20,ro)<br>
exten =&gt; _X., 8, GotoIf($[&quot;${DIALSTATUS}&quot; = &quot;ANSWER&quot;]?200)<br>
exten =&gt; _X., 200, Hangup<br><br></div> </div></div>