[Freeswitch-users] bypass_media problem

Steven Ayre steveayre at gmail.com
Tue Jun 14 11:02:08 MSD 2011


session:execute("set","inbound-late-negotiation=true")
session:execute("set","inbound-bypass-media=false")

This will have no effect. Once the channel is created drop the inbound-
part, that is only used on the SIP profile.

-Steve



On 13 June 2011 23:59, David Villasmil <david.villasmil.work at gmail.com>wrote:

> Hello Guys,
>
> 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...
>
> Codec is fine as you will see in the pastebin..
>
>
> here's the trace:
>
> http://pastebin.freeswitch.org/16480
>
> and here's the console log:
>
> http://pastebin.freeswitch.org/16481
>
> I'm bridging with a lua script, this is the pertinent part:
>
> gw_sip_username and gw_sip_pwd are just bogus "1234","1234", no
> registration is needed....
>
>
>
>
>
>  session:execute("set","continue_on_fail=NORMAL_TEMPORARY_FAILURE,TIMEOUT,NO_ROUTE_DESTINATION,UNALLOCATED_NUMBER,407")
>
>      session:execute("set","inbound-late-negotiation=true")
>      session:execute("set","inbound-bypass-media=false")
>
>      session:execute("set","proxy_media=false")
>      session:execute("set","bypass_media=false")
>
>
>      --session:execute("bridge","{sip_auth_username=" .. gw_sip_username ..
> ",sip_auth_password=" .. gw_sip_pwd .. "}sofia/external/".. out_number
> .."@".. gw_sip_ip .."")
>
>
>      fsLog("BRIDGE EXECUTE:", "{loop=3}sofia/gateway/${distributor(" ..
> route_name .. ")}" .. out_number .. "")
>      session:execute("bridge","{loop=3}sofia/gateway/${distributor(" ..
> route_name .. ")}".. out_number .."")
>
>      -- hangup
>      session:hangup();
>
>
>
> Thanks guys for your help!
>
>
> David
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110614/b058f43f/attachment.html 


More information about the FreeSWITCH-users mailing list