<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:&#39;Courier New&#39;">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:&#39;Courier New&#39;">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:&#39;Courier New&#39;">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:&#39;Courier New&#39;">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:&#39;Courier New&#39;">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:&#39;Courier New&#39;">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:&#39;Courier New&#39;">Variable: recipient=0031612345678,callerid1=<u></u><u></u></span><span style="font-family:&#39;Courier New&#39;;font-size:12px">00311234567</span></p>
<p class="" style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:&#39;Courier New&#39;;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:&#39;Courier New&#39;">[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:&#39;Courier New&#39;">exten =&gt; 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:&#39;Courier New&#39;">exten =&gt; 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:&#39;Courier New&#39;">exten =&gt; outbound1,n,Dial(SIP/${recipient}@originateChannel)<u></u><u></u></span></p></div><div>
<span style="font-size:9pt;font-family:&#39;Courier New&#39;"><br></span></div><div><p class="" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:9pt;font-family:&#39;Courier New&#39;">[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:&#39;Courier New&#39;">exten =&gt; 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:&#39;Courier New&#39;;font-size:9pt">exten =&gt; outbound1,n,Dial(SIP/${callerid1</span><span style="font-family:&#39;Courier New&#39;;font-size:9pt">}@originateChannel)</span><br></p></div><div><span style="font-size:9pt;font-family:&#39;Courier New&#39;"><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">&lt;<a href="mailto:GB@cm.nl" target="_blank">GB@cm.nl</a>&gt;</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:&quot;Courier New&quot;">Action: Originate<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">Channel: Local/outbound1@originateDialContext<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">CallerID: 00311234567<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">Context: originateDialContext<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">Exten: outbound1<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">Priority: 1<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">Variable: recipient=0031612345678<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">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:&quot;Courier New&quot;">[originateDialContext]<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none">
<span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">exten =&gt; 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:&quot;Courier New&quot;">exten =&gt; outbound1,n,Set(recipient=${recipient})<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">exten =&gt; outbound1,n,Dial(SIP/${recipient}@originateChannel)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;"><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>