<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).<br>
<br></div>Josh<br></div><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 class="h5">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 class="h5">
<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 class="HOEnZb"><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>