session:execute("set","inbound-late-negotiation=true")<div>session:execute("set","inbound-bypass-media=false")<br><br>This will have no effect. Once the channel is created drop the inbound- part, that is only used on the SIP profile.<br>
<br>-Steve<br></div><div><br></div><br><br><div class="gmail_quote">On 13 June 2011 23:59, David Villasmil <span dir="ltr"><<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello Guys,<div><br></div><div>I have a set where i'm receiving a call from a gw and sending to another gw. Both un-natted. If I set in my (lua) script bypass_media=false, call goes just fine, if i set it to true, FS sends "Temporary unavailable" to the B-side and CANCELs the A-side... </div>
<div><br></div><div>Codec is fine as you will see in the pastebin..</div><div><br></div><div><br></div><div>here's the trace:</div><div><br></div><div><a href="http://pastebin.freeswitch.org/16480" target="_blank">http://pastebin.freeswitch.org/16480</a></div>
<div><br></div><div>and here's the console log:</div><div><br></div><div><a href="http://pastebin.freeswitch.org/16481" target="_blank">http://pastebin.freeswitch.org/16481</a></div><div><br></div><div>I'm bridging with a lua script, this is the pertinent part:</div>
<div><br></div><div>gw_sip_username and gw_sip_pwd are just bogus "1234","1234", no registration is needed....</div><div><br></div><div><br></div><div><br></div><div><br></div><div><div> session:execute("set","continue_on_fail=NORMAL_TEMPORARY_FAILURE,TIMEOUT,NO_ROUTE_DESTINATION,UNALLOCATED_NUMBER,407")</div>
<div><br></div><div> session:execute("set","inbound-late-negotiation=true")</div><div> session:execute("set","inbound-bypass-media=false")</div><div><br></div><div> session:execute("set","proxy_media=false")</div>
<div> session:execute("set","bypass_media=false")</div><div> </div><div> </div><div> --session:execute("bridge","{sip_auth_username=" .. gw_sip_username .. ",sip_auth_password=" .. gw_sip_pwd .. "}sofia/external/".. out_number .."@".. gw_sip_ip .."")</div>
<div> </div><div> </div><div> fsLog("BRIDGE EXECUTE:", "{loop=3}sofia/gateway/${distributor(" .. route_name .. ")}" .. out_number .. "")</div><div> session:execute("bridge","{loop=3}sofia/gateway/${distributor(" .. route_name .. ")}".. out_number .."")</div>
<div> </div><div> -- hangup</div><div> session:hangup();</div><div> </div></div><div><br></div><div><br></div><div>Thanks guys for your help!</div><div><br></div><font color="#888888"><div><br></div><div>
David</div>
</font><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>