Hi, 

Try setting bypass_media_after_bridge=true

with <param name="inbound-codec-negotiation" value="greedy"/> in sofia profile and then pass absolute_codec_string 
before bridge on the new leg like 

<action application="export" data="nolocal:absolute_codec_string=PCMA,PCMU"/>

bypass_media_after_bridge=true is a bit similar to canreinvite of asterisk

Regards,
Zohair Raza


On Mon, Jan 23, 2012 at 1:59 PM, Muhammad Shahzad <shaheryarkh@googlemail.com> wrote:
Not sure but i think FS can't initiate re-invite, however if caller (or callee) initiate a re-invite then FS responds accordingly, including codec renegotiation. 

Thank you.


2012/1/23 Roland Hänel <roland@haenel.me>
Hi,

Is there a way to trigger a SIP re-INVITE for a channel that has already been answered, and to make FreeSwitch offer a certain list of codecs to the endpoint?

Let's assume the call is answered with PCMA/PCMU, then the user enters an IVR, now we know that he's going to join a conference. For the conference, I might want to enable G.722 and H.264 video (which should not generally be enabled for all incoming calls). I found stuff about codec-related channel variables, but no 'trigger' to tell FS to make a codec re-negotiation.

Greetings,
Roland



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

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




--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +92 334 422 40 88
MSN: shari_786pk@hotmail.com
Email: shaheryarkh@googlemail.com

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

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