Hi, <br><br>You must try to execute the api command uuid_media by setting a variable that coupled with an event.<br>Try looking at the execute_on family :<br><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#The_execute_on_family">http://wiki.freeswitch.org/wiki/Channel_Variables#The_execute_on_family</a><br>
<br>In your case, I think <br><a href="http://wiki.freeswitch.org/wiki/Variable_api_on_answer">http://wiki.freeswitch.org/wiki/Variable_api_on_answer</a><br>or <br>api_after_bridge... maybe more but not documented :).<br>
or<br>bridge_pre_execute_bleg_app<br><br>All this variable/event handler can help you to run command outside script.<br>but, i think the uuid_media off must be called after the media up this FS.<br><br>Hope it helps.<br><br>
<br><div class="gmail_quote">2012/11/9 Víctor Vladimir Chávez Gallardo <span dir="ltr"><<a href="mailto:vivlachaga@gmail.com" target="_blank">vivlachaga@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hi Regis, how you doing?<div><br></div><div>see, i tried your suggestion, setting the uuid_media on both sessions AFTER the bridge, also seting bypass_media_after_bridge = true in the call parameters, if i put the apiExecute, the script is stalled on bridge action until one leg trigger up an release code.. in that moment the instructions apiExecute("uuid_media","off") are executed (the script flow continue), but if i put those instructions BEFORE, i have an a forced release on leg A "inline:1 Session is not active!"</div>
<div><br></div><div>you know something about this issue? there's something wrong with my app logic? will be very useffuly your help, thanks a lot </div><div><br></div><div>originate_options_lega = "bypass_media_after_bridge=true,ignore_early_media=true,origination_caller_id_number=1004,originate_timeout=60,leg=1";</div>
<div>originate_options_legb = "bypass_media_after_bridge=true,ignore_early_media=true,originate_timeout=60,leg=2"; </div><div><br></div><div><div>bridge(lega_session,legb_session);</div><div> apiExecute("uuid_media", "off " + lega_uuid);</div>
<div> apiExecute("uuid_media", "off " + legb_uuid);</div><div class="im"><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><br></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
Hi,<br>IMHO, variables are used only in bridge in dialplan.<br>When doing bridge manualy via JS, you must call api uuid_media off <uuid> after the bridge of the call, maybe with an execute_on_brigde variable.<br>Take care that your A and B legs can "see" each other without funky nat, uuid_media not renegociate RTP port.<br>
Hope i'm right and it helps you ;)<br>regards<br><br><br><blockquote style="margin:0 0 0 40px;border:none;padding:0px">2012/11/7 Víctor Vladimir Chávez Gallardo <<a href="mailto:vivlachaga@gmail.com" target="_blank">vivlachaga@gmail.com</a>></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">Hi, i have an spidermonkey script, the script place two outbound calls, but i need to set the RTP directly between the legs (a-b) but i dont know hoy to set the parameter bypass_media</blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">i tried:</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">lega_session.setVariable('bypass_media', 'true');</blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">bridge(lega_session,legb_session);</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">also</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
lega_session.setVariable('bypass_media', 'true');</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">legb_session.setVariable('bypass_media', 'true');</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
bridge(lega_session,legb_session);</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">and also setting another variable bypass_media_after_bridge</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
lega_session.setVariable('bypass_media_after_bridge', 'true');</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">legb_session.setVariable('bypass_media_after_bridge', 'true');</blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">lega_session.setVariable('bypass_media', 'true');</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">legb_session.setVariable('bypass_media', 'true');</blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">bridge(lega_session,legb_session);</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><br></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
but i dont have the RTP in the correct way, instead my freeswitch it's behind, the rtp flow: LEG-A -----> FREESWITCH -------> LEG-B</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">any idea?</blockquote>
</blockquote><div><br></div><div><br></div></div></div></div></blockquote></div><br>