[Freeswitch-users] Different codecs for different devices?

João Mesquita jmesquita at freeswitch.org
Tue May 4 14:50:46 PDT 2010


I think you can also use another variable on the A leg SDP to make it easier
on the regex. ep_codec_string.

This will contain the parsed version of the A leg SDP and that's what I use
most of the times for these tricks. Also, can you document that? :-)

Regards,
João Mesquita


On Tue, May 4, 2010 at 1:52 PM, Anthony Minessale <
anthony.minessale at gmail.com> wrote:

> you can regex the SDP for something specific and use that to set the
> absolute_codec_string in a standalone extension that comes first in the
> stack and has continue=true on it
>
>
>
> On Tue, May 4, 2010 at 11:32 AM, Ken Fulmer <
> kenfulmer at icstechnologysolutions.com> wrote:
>
>>  Just in case others are interested, this is possible with the following
>> parameters:
>>
>>
>>
>> SIP Profile:
>>
>>
>>
>>     <param name="inbound-late-negotiation" value="true"/>
>>
>>
>>
>> Dial-Plan:
>>
>>
>>
>>       <action application="set" data="inherit_codec=true"/>
>>
>>
>>
>> The codec negotiated in Call Leg B, is forced onto Call Leg A. This is
>> possible due to the “inbound late negotiation” parameter in the sip profile.
>>
>>
>>
>> Hope this helps someone else.
>>
>>
>>
>> Ken
>>
>>
>>
>>
>>
>>
>>
>> *From:* freeswitch-users-bounces at lists.freeswitch.org [mailto:
>> freeswitch-users-bounces at lists.freeswitch.org] *On Behalf Of *Ken Fulmer
>> *Sent:* Tuesday, May 04, 2010 8:29 AM
>>
>> *To:* freeswitch-users at lists.freeswitch.org
>> *Subject:* [Freeswitch-users] Different codecs for different devices?
>>
>>
>>
>> This may be a far out question but here goes:
>>
>>
>>
>> Our fax machines that are connected to ATA’s need to be g.711 on both Call
>> Leg A and Call Leg B (in either direction).
>>
>>
>>
>> However, our phones need to be g.711 on the internal side that faces our
>> PBX. On the side facing our SIP provider, the calls should be transcoded to
>> g.729. Inbound the calls to phones (not ATA’s) need to be g.729 on the
>> inbound call leg and g.711 on the outbound call leg.
>>
>>
>>
>> I realize we can set inbound / outbound codec preferences in single or
>> multiple profiles and we can set the “absolute_codec_string” value for the
>> outbound call leg.
>>
>>
>>
>> However, I’ve yet to determine how to set the inbound call leg’s codec
>> differently depending on the device. Is this possible?
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Ken Fulmer
>>
>>
>>
>> _______________________________________________
>> 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 <MSN%3Aanthony_minessale at hotmail.com>
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
> pstn:+19193869900
>
> _______________________________________________
> 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/20100504/4680fd3b/attachment.html 


More information about the FreeSWITCH-users mailing list