<div dir="ltr"><div>Hi John,<br><br>Detailed use case:<br>I have a "contact" call connected to which played the IVR. On "transfer" digit key press I need to transfer it to the predefined "transfer" number. I don't want use the Dial command to do transfer because it will automatically connect "contact" channel with "transfer" channel. Instead I want to put "transfer" channel and "contact" channel in the MeetMe conference.<br>
<br>So I need to use Originate command to originate transfer call in the separate channel. After this command I will put current "contact" channel in MeetMe conference. When "transfer" connects it will be put to the same MeetMe conference as "contact".<br>
<br>Now I'm using the System command to originate call through external executable in dialplan, but it looks ugly, so I'm trying to find a better way to do this.<br><br>What I'm using now:<br>exten => meetme,1,System(/usr/bin/php /etc/asterisk/script/originate_call.php "Channel: Local/+${TRANSFER_NUMBER}@cf3-transfer-dial\,MaxRetries: 0\,RetryTime: 600000\,WaitTime: 640\,CallerID: \<${TO}\>\,Context: cf3-transfer-leg\,Extension: s\,Priority: 1\,Set: ACTIVE_ID=${ACTIVE_ID}\,Set: TERMINATION_IP=${TERMINATION_IP}\,Set: DIAL_TIME=${DIAL_TIME}\,Set: TRANSFER_TEST_NUMBER=${TRANSFER_TEST_NUMBER}\,")</div>
<div><br></div>Igor<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 1, 2014 at 5:23 AM, Josh Metzger <span dir="ltr"><<a href="mailto:joshdmetzger@gmail.com" target="_blank">joshdmetzger@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I'm not sure exactly what your use case is, but you could execute a Dial() and use the "M" option to execute a Macro (or "U" to execute a gosub).  From there, the call routes into the macro/subroutine, and you can process away.  After all of that is completed in the macro/subroutine, you can set "MACRO_RESULT" or "GOSUB_RESULT" (depending on which you used) to "CONTINUE", so your dialplan continues after everything is complete (or, if you finish everything within the routine, just let it end there).<span class="HOEnZb"><font color="#888888"><br>

<br></font></span></div><span class="HOEnZb"><font color="#888888">Josh<br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 30, 2014 at 10:21 PM, Igor Dvorzhak <span dir="ltr"><<a href="mailto:idmedb@gmail.com" target="_blank">idmedb@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thanks, it almost what I need.</div><div>But I can't find a way to pass channel variables to Originate cmd in dialplan.</div>

<div><br></div><div>Is it possible at all?<br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div>On Wed, Apr 30, 2014 at 3:13 PM, Richard Mudgett <span dir="ltr"><<a href="mailto:rmudgett@digium.com" target="_blank">rmudgett@digium.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Wed, Apr 30, 2014 at 4:33 PM, Igor Dvorzhak <span dir="ltr"><<a href="mailto:idmedb@gmail.com" target="_blank">idmedb@gmail.com</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 dir="ltr"><div>Hi all,</div><div><br></div><div>I need a command to originate a new channel from dialplan. I should be able to continue execution of the current context after this command.</div>



<div><br></div><div>How to do this?</div></div></blockquote></div></div><div><br>Look at this application:<br>*CLI> core show application Originate<span><font color="#888888"><br><br></font></span></div>
<span><font color="#888888"><div>Richard<br></div></font></span></div><br></div></div>
<br></div></div><span><font color="#888888">--<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></font></span></blockquote></div><br></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>
</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>