<div dir="ltr">Your both channels legs are identical strings. It should be like this.<div><p class="" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:9pt;font-family:'Courier New'">Action: Originate<u></u><u></u></span></p>
<p class="" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:9pt;font-family:'Courier New'">Channel: Local/outbound1@originateDialContext<u></u><u></u></span></p><p class="" style="font-family:arial,sans-serif;font-size:13px">
<span style="font-size:9pt;font-family:'Courier New'">CallerID: 00311234567<u></u><u></u></span></p><p class="" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:9pt;font-family:'Courier New'">Context: originateDialContext2<u></u><u></u></span></p>
<p class="" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:9pt;font-family:'Courier New'">Exten: outbound1<u></u><u></u></span></p><p class="" style="font-family:arial,sans-serif;font-size:13px">
<span style="font-size:9pt;font-family:'Courier New'">Priority: 1<u></u><u></u></span></p><p class="" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:9pt;font-family:'Courier New'">Variable: recipient=0031612345678,callerid1=<u></u><u></u></span><span style="font-family:'Courier New';font-size:12px">00311234567</span></p>
<p class="" style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:'Courier New';font-size:9pt">Timeout: 10000</span><br></p><p class="" style="font-family:arial,sans-serif;font-size:13px"><u></u> <u></u></p>
<p class="" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:9pt;font-family:'Courier New'">[originateDialContext]<u></u><u></u></span></p><p class="" style="font-family:arial,sans-serif;font-size:13px">
<span style="font-size:9pt;font-family:'Courier New'">exten => outbound1,1,Wait(1)<u></u><u></u></span></p><p class="" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:9pt;font-family:'Courier New'">exten => outbound1,n,Set(recipient=${recipient})<u></u><u></u></span></p>
<p class="" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:9pt;font-family:'Courier New'">exten => outbound1,n,Dial(SIP/${recipient}@originateChannel)<u></u><u></u></span></p></div><div>
<span style="font-size:9pt;font-family:'Courier New'"><br></span></div><div><p class="" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:9pt;font-family:'Courier New'">[originateDialContext2]<u></u><u></u></span></p>
<p class="" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:9pt;font-family:'Courier New'">exten => outbound1,1,Wait(1)<u></u><u></u></span></p><p class="" style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:'Courier New';font-size:9pt">exten => outbound1,n,Dial(SIP/${callerid1</span><span style="font-family:'Courier New';font-size:9pt">}@originateChannel)</span><br></p></div><div><span style="font-size:9pt;font-family:'Courier New'"><br>
</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 19, 2013 at 11:20 AM, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">Hello,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">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="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
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="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">Action: Originate<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">Channel: Local/outbound1@originateDialContext<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">CallerID: 00311234567<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">Context: originateDialContext<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">Exten: outbound1<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">Priority: 1<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">Variable: recipient=0031612345678<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">Timeout: 10000<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New"">[originateDialContext]<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none">
<span style="font-size:9.0pt;font-family:"Courier New"">exten => outbound1,1,Wait(1)<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Courier New"">exten => outbound1,n,Set(recipient=${recipient})<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New"">exten => outbound1,n,Dial(SIP/${recipient}@originateChannel)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal">Anyone have an idea how to fix this?<u></u><u></u></p></div></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>