<div dir="ltr">Hi<div><br></div><div>

<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">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></div><div><br></div><div>I tried, but session.bridge() does not seem to accept uuid</div><div><br></div><div>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><div class="gmail_quote">2018-02-22 0:15 GMT+01:00 Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>></span>:<br><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>
<span class=""><br>
> On Feb 21, 2018, at 6:28 AM, Adam Raszynski <<a href="mailto:netcentrica@gmail.com">netcentrica@gmail.com</a>> wrote:<br>
><br>
> Hi<br>
><br>
> I have user put in valet_park waiting<br>
><br>
> In the meantime I execute lua script to create new session to external number<br>
><br>
> I have uuid of this user in local variable, script is like this:<br>
><br>
> local uuid = "here uuid got from valet_info api call"<br>
> session1 = freeswitch.Session(dialstring)<wbr>;<br>
> if (session1:ready() and session1:answered()) then<br>
>      api:executeString("uuid_<wbr>broadcast " .. uuid .. " say::en\\snumber\\spronounced\<wbr>\s1 aleg");<br>
>      api:executeString("uuid_bridge " .. uuid .. " " .. session1.uuid);<br>
> end<br>
><br>
> But it works sometimes. Most of time I get CS_RESET after uuid_bridge API call<br>
><br>
> What I'm doing wrong here?<br>
><br>
> Maybe there is some other method of bridging my session1 with user waiting in valet_park?<br>
<br>
<br>
</span>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div><br></div>