<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 19, 2013 at 4:00 PM, Grant Bagdasarian <span dir="ltr"><<a href="mailto:GB@cm.nl" target="_blank">GB@cm.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US"><div><p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">Why can’t I execute any more dialplan after the Dial application? The scenario is when the Dial application dials the recipient but the recipient doesn’t answer. The AMI will never go into the originateDialProcessor because the call was never answered. So I expect the Dialplan to continue after the Dial application has reached its timeout.<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p><div><div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) -moz-use-text-color -moz-use-text-color;padding:3pt 0in 0in">
<p class=""><b><span style="font-size:10pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10pt;font-family:"Tahoma","sans-serif""> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>Grant Bagdasarian<br>
<b>Sent:</b> Wednesday, June 19, 2013 11:24 AM</span></p><div><div class="h5"><br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b> Re: [asterisk-users] Handoff dial control to dialplan after AMI Originate<u></u><u></u></div>
</div><p></p></div></div><div><div class="h5"><p class=""><u></u> <u></u></p><p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">I fixed it. The problem is just as I assumed; once the call is answered the dialplan goes into what’s defined in Context/Exten/Prio of the Originate action.<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p><p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">I changed the Context/Exten/Prio in the action and pointed it to something else. Now it works.<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p><p class=""><span style="font-size:9pt;font-family:"Courier New"">Action: Originate<u></u><u></u></span></p>
<p class=""><span style="font-size:9pt;font-family:"Courier New"">Channel: Local/outbound1@originateDialContext<u></u><u></u></span></p><p class=""><span style="font-size:9pt;font-family:"Courier New"">CallerID: 00311234567<u></u><u></u></span></p>
<p class=""><span style="font-size:9pt;font-family:"Courier New"">Context: originateDialProcessor<u></u><u></u></span></p><p class=""><span style="font-size:9pt;font-family:"Courier New"">Exten: outbound1<u></u><u></u></span></p>
<p class=""><span style="font-size:9pt;font-family:"Courier New"">Priority: 1<u></u><u></u></span></p><p class=""><span style="font-size:9pt;font-family:"Courier New"">Variable: recipient=0031612345678<u></u><u></u></span></p>
<p class=""><span style="font-size:9pt;font-family:"Courier New"">Timeout: 10000<u></u><u></u></span></p><p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:"Courier New"">[originateDialContext]<u></u><u></u></span></p><p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:"Courier New"">exten => outbound1,1,Wait(1)<u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:"Courier New"">exten => outbound1,n,Set(recipient=${recipient})<u></u><u></u></span></p><p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:"Courier New"">exten => outbound1,n,Dial(SIP/${recipient}@originateChannel)<u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:"Courier New""><u></u> <u></u></span></p><p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:"Courier New"">[originateDialProcessor]<u></u><u></u></span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:"Courier New"">exten => outbound1,1,Wait(1)<u></u><u></u></span></p><p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:"Courier New"">exten => outbound1,n,NoOp(${DIALSTATUS})<u></u><u></u></span></p>
<p class=""><span style="font-size:9pt;font-family:"Courier New"">exten => outbound1,n,Hangup</span><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p><p class=""><b><span style="font-size:10pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10pt;font-family:"Tahoma","sans-serif""> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">mailto:asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>Lenz Emilitri<br>
<b>Sent:</b> Wednesday, June 19, 2013 10:10 AM<br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b> Re: [asterisk-users] Handoff dial control to dialplan after AMI Originate<u></u><u></u></span></p>
<p class=""><u></u> <u></u></p><div><p class="">Looks correct to me....<u></u><u></u></p></div><div><p class="" style="margin-bottom:12pt"><u></u> <u></u></p><div><p class="">2013/6/19 Grant Bagdasarian <<a href="mailto:GB@cm.nl" target="_blank">GB@cm.nl</a>><u></u><u></u></p>
<div><div><p class="">Hello,<u></u><u></u></p><p class=""> <u></u><u></u></p><p class="">I’d like to use the AMI interface to originate a call to a context in a dialplan, and handoff the dial control to the context.<u></u><u></u></p>
<p class=""> <u></u><u></u></p><p class="">Whenever I execute the below action, the recipient does ring, but when I answer it dials the recipient again. I believe this is because once answered the system is going to execute the Context/Exten/Prio in the Originate action?<u></u><u></u></p>
<p class=""> <u></u><u></u></p><p class=""><span style="font-size:9pt;font-family:"Courier New"">Action: Originate</span><u></u><u></u></p><p class=""><span style="font-size:9pt;font-family:"Courier New"">Channel: Local/outbound1@originateDialContext</span><u></u><u></u></p>
<p class=""><span style="font-size:9pt;font-family:"Courier New"">CallerID: 00311234567</span><u></u><u></u></p><p class=""><span style="font-size:9pt;font-family:"Courier New"">Context: originateDialContext</span><u></u><u></u></p>
<p class=""><span style="font-size:9pt;font-family:"Courier New"">Exten: outbound1</span><u></u><u></u></p><p class=""><span style="font-size:9pt;font-family:"Courier New"">Priority: 1</span><u></u><u></u></p>
<p class=""><span style="font-size:9pt;font-family:"Courier New"">Variable: recipient=0031612345678</span><u></u><u></u></p><p class=""><span style="font-size:9pt;font-family:"Courier New"">Timeout: 10000</span><u></u><u></u></p>
<p class=""> <u></u><u></u></p><p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:"Courier New"">[originateDialContext]</span><u></u><u></u></p><p class="" style="text-autospace:none">
<span style="font-size:9pt;font-family:"Courier New"">exten => outbound1,1,Wait(1)</span><u></u><u></u></p><p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:"Courier New"">exten => outbound1,n,Set(recipient=${recipient})</span><u></u><u></u></p>
<p class=""><span style="font-size:9pt;font-family:"Courier New"">exten => outbound1,n,Dial(SIP/${recipient}@originateChannel)</span><u></u><u></u></p><p class=""><span style="font-size:9pt;font-family:"Courier New""> </span><u></u><u></u></p>
<p class="">Anyone have an idea how to fix this?<u></u><u></u></p></div></div><p class=""><br>--<br></p></div></div></div></div></div></div></blockquote></div><br></div><div class="gmail_extra">You need a special extension 'failed' in a context originateDialProcessor to catch the control when call doesn't get answered in first leg.<br>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:"Courier New"">[originateDialProcessor]</span></p><p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:"Courier New"">exten => outbound1,1,Wait(1)</span></p>
<p class="" style="text-autospace:none"><span style="font-size:9pt;font-family:"Courier New"">exten => outbound1,n,NoOp(${DIALSTATUS})</span></p><span style="font-size:9pt;font-family:"Courier New"">exten => outbound1,n,Hangup<br>
<br>exten => failed,1,NoOp(----- CALL DIDN'T GET ANSWERED IN FIRST LEG -----)<br><br></span></div><div class="gmail_extra"><span style="font-size:9pt;font-family:"Courier New"">--Satish Barot<br></span></div>
</div>