<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">instead of doing a different originate, just transfer the parked call to the dial plan to bridge to the destination?<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 22, 2018, at 5:17 AM, Adam Raszynski <<a href="mailto:netcentrica@gmail.com" class="">netcentrica@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi<div class=""><br class=""></div><div class="">

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline" class="">First user dials-in and waits in valet_park, all done in dialplan. Second call leg is a kind of click-to-call, initiated over http request, so I use lua script</span><br class=""></div><div class=""><br class=""></div><div class="">I tried, but session.bridge() does not seem to accept uuid</div><div class=""><br class=""></div><div class="">Can you please post some example how can I bridge this user waiting in valet_park with new call originated from lua script? </div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2018-02-22 0:15 GMT+01:00 Michael Jerris <span dir="ltr" class=""><<a href="mailto:mike@jerris.com" target="_blank" class="">mike@jerris.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">why this complicated process instead of just bridging the call?<br class="">
<span class=""><br class="">
> On Feb 21, 2018, at 6:28 AM, Adam Raszynski <<a href="mailto:netcentrica@gmail.com" class="">netcentrica@gmail.com</a>> wrote:<br class="">
><br class="">
> Hi<br class="">
><br class="">
> I have user put in valet_park waiting<br class="">
><br class="">
> In the meantime I execute lua script to create new session to external number<br class="">
><br class="">
> I have uuid of this user in local variable, script is like this:<br class="">
><br class="">
> local uuid = "here uuid got from valet_info api call"<br class="">
> session1 = freeswitch.Session(dialstring)<wbr class="">;<br class="">
> if (session1:ready() and session1:answered()) then<br class="">
>      api:executeString("uuid_<wbr class="">broadcast " .. uuid .. " say::en\\snumber\\spronounced\<wbr class="">\s1 aleg");<br class="">
>      api:executeString("uuid_bridge " .. uuid .. " " .. session1.uuid);<br class="">
> end<br class="">
><br class="">
> But it works sometimes. Most of time I get CS_RESET after uuid_bridge API call<br class="">
><br class="">
> What I'm doing wrong here?<br class="">
><br class="">
> Maybe there is some other method of bridging my session1 with user waiting in valet_park?<br class=""></span></blockquote></div></div></div></blockquote></div><br class=""></div></body></html>