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@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@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Ken Fulmer
Sent: Tuesday, May 04, 2010 8:29 AM

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@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@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.org
pstn:+19193869900