[Freeswitch-users] bridge_early_media and bypass_media
Avi Marcus
avi at avimarcus.net
Sat May 19 21:42:10 MSD 2012
The next step would be to pastebin a log -- both the fs_cli on /log 7 and
preferably the siptrace, too, so someone could see what's going on.
-Avi
On Sat, May 19, 2012 at 8:34 PM, Adrian Andrei <koralu at gmail.com> wrote:
> Thx but same result. No codec negotiation.
>
>
> On Sat, May 19, 2012 at 7:46 PM, Vitalie Colosov <vetali100 at gmail.com>wrote:
>
>> Maybe this is the case when it is required to set the variables into the
>> b-leg using {...} in the bridge command (or use "export" instead of "set").
>> Try this: (not sure it will work, but worth to test)
>>
>> <extension name="x3_v1">
>> <condition field="destination_number" expression="^2222([23]\d{7})$">
>> <action application="bridge" data="{inherit_codec=true,bypass_
>> media_after_bridge=true,bridge_early_media=true}xxxx"/>
>> </condition>
>> </extension>
>>
>>
>>
>>
>> 2012/5/19 Adrian Andrei <koralu at gmail.com>
>>
>>> Thank you for the fast answer but doesn't work. The dial plan looks:
>>>
>>> <extension name="x3_v1">
>>> <condition field="destination_number" expression="^2222([23]\d{7})$">
>>> <action application="set" data="inherit_codec=true"/>
>>> <action application="set" data="bypass_media_after_bridge=true"/>
>>>
>>> <action application="set" data="bridge_early_media=true"/>
>>> <action application="bridge" data="xxxx"/>
>>> </condition>
>>> </extension>
>>>
>>> If I set the codec to G711ulaw for endpoints the call is ok. If I change
>>> the codec to something FS doesn't know I receive:
>>>
>>> 2012-05-19 19:50:52.130039 [INFO] mod_dptools.c:2954 Originate Failed.
>>> Cause: INCOMPATIBLE_DESTINATION
>>>
>>> Param inbound_late_negotiation is true in sofia internal profile.
>>>
>>> TY
>>>
>>>
>>> On Sat, May 19, 2012 at 5:16 PM, Anthony Minessale <
>>> anthony.minessale at gmail.com> wrote:
>>>
>>>> The best you can do is set
>>>>
>>>> {inherit_codec=true,bypass_media_after_bridge=true,bridge_early_media=true}
>>>> and use the inbound-late-negotiation sofia profile param.
>>>>
>>>>
>>>> On Sat, May 19, 2012 at 7:15 AM, Adrian Andrei <koralu at gmail.com>
>>>> wrote:
>>>> > Hello,
>>>> >
>>>> > In my dial plan I use bypass_media set to true because I want the
>>>> codec
>>>> > negotiation be made by end points. Also I want the early_media to be
>>>> bridge
>>>> > from Bleg to Aleg. For this setup I design this dialplan:
>>>> >
>>>> > <condition field="destination_number" expression="^1">
>>>> > <action application="set" data="bypass_media=true"/>
>>>> > <action application="set" data="bridge_early_media=true"/>
>>>> > <action application="bridge" data="sofia/external/xxxx"/>
>>>> > </condition>
>>>> >
>>>> > Setting bypass_media and bridge_early_media to true cause no early
>>>> media
>>>> > bridge.
>>>> > If I set only bridge_early_media=true and uncomment bypass_media line
>>>> then
>>>> > early media is bridged but no codec negotiation between end points.
>>>> >
>>>> > How can I have also codec neg. between end points and early media
>>>> bridged?
>>>> >
>>>> > Thank you
>>>> >
>>>> >
>>>> _________________________________________________________________________
>>>> > Professional FreeSWITCH Consulting Services:
>>>> > consulting at freeswitch.org
>>>> > http://www.freeswitchsolutions.com
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > Official FreeSWITCH Sites
>>>> > http://www.freeswitch.org
>>>> > http://wiki.freeswitch.org
>>>> > http://www.cluecon.com
>>>> >
>>>> > Join Us At ClueCon - Aug 7-9, 2012
>>>> >
>>>> > 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
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> Anthony Minessale II
>>>>
>>>> FreeSWITCH http://www.freeswitch.org/
>>>> ClueCon http://www.cluecon.com/
>>>> Twitter: http://twitter.com/FreeSWITCH_wire
>>>>
>>>> AIM: anthm
>>>> MSN:anthony_minessale at hotmail.com
>>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>>>> IRC: irc.freenode.net #freeswitch
>>>>
>>>> FreeSWITCH Developer Conference
>>>> sip:888 at conference.freeswitch.org
>>>> googletalk:conf+888 at conference.freeswitch.org
>>>> pstn:+19193869900
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>>
>>>>
>>>>
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://wiki.freeswitch.org
>>>> http://www.cluecon.com
>>>>
>>>> Join Us At ClueCon - Aug 7-9, 2012
>>>>
>>>> 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
>>>>
>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>>
>>>
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> Join Us At ClueCon - Aug 7-9, 2012
>>>
>>> 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
>>>
>>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> Join Us At ClueCon - Aug 7-9, 2012
>>
>> 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
>>
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> 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/20120519/4ff0526b/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list