Facing issue while using uuid_media_reneg on answered call
Hello, I am using freeswitch 1.6.20. it is fresh setup with basic configuration. i want to renegotiate codec when call is answered and i am using uuid_media_reneg for same. SCENARIO: user a calls to user b and both user are using code G722. when i use uuid_meida_reneg to change codec to G729 for A leg it is working fine but when using same api with bleg uuid for B leg it is using G722 for renegotiate. Here are console log for same. https://pastebin.freeswitch.org/view/342e4eed Any suggestions for this or setting needed to be done in freeswitch. -- *Thanks and Regards,* *Ravindrakumar Bhatt* Jr. Software Developer Ecosmob Technologies Ltd Ahmedabad Mo:*+918460692402*
Hi Ravindrakumar, Why don't you limit them to G729 to begin with instead of changing them once the call is established? On Mon, Sep 17, 2018 at 7:46 AM Ravindrakumar Bhatt < ravindra.bhatt@ecosmob.com> wrote:
Hello, I am using freeswitch 1.6.20. it is fresh setup with basic configuration.
i want to renegotiate codec when call is answered and i am using uuid_media_reneg for same.
SCENARIO: user a calls to user b and both user are using code G722. when i use uuid_meida_reneg to change codec to G729 for A leg it is working fine but when using same api with bleg uuid for B leg it is using G722 for renegotiate. Here are console log for same. https://pastebin.freeswitch.org/view/342e4eed Any suggestions for this or setting needed to be done in freeswitch.
--
*Thanks and Regards,*
*Ravindrakumar Bhatt* Jr. Software Developer Ecosmob Technologies Ltd Ahmedabad Mo:*+918460692402* _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
Hi Joel, I am providing only g722 and g729 both codec to user. if both users uses same codec it's ok but if either of user is using G729 than i want to renegotiate g729 as audio codec for both leg instead of using transcoding.Here G722 is high bandwidth and g729 is low bandwidth. On Tue 18 Sep, 2018, 2:29 AM Joel Serrano, <joel@textplus.com> wrote:
Hi Ravindrakumar,
Why don't you limit them to G729 to begin with instead of changing them once the call is established?
On Mon, Sep 17, 2018 at 7:46 AM Ravindrakumar Bhatt < ravindra.bhatt@ecosmob.com> wrote:
Hello, I am using freeswitch 1.6.20. it is fresh setup with basic configuration.
i want to renegotiate codec when call is answered and i am using uuid_media_reneg for same.
SCENARIO: user a calls to user b and both user are using code G722. when i use uuid_meida_reneg to change codec to G729 for A leg it is working fine but when using same api with bleg uuid for B leg it is using G722 for renegotiate. Here are console log for same. https://pastebin.freeswitch.org/view/342e4eed Any suggestions for this or setting needed to be done in freeswitch.
--
*Thanks and Regards,*
*Ravindrakumar Bhatt* Jr. Software Developer Ecosmob Technologies Ltd Ahmedabad Mo:*+918460692402* _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
Have a look at inbound-late-negotiation: https://freeswitch.org/confluence/plugins/servlet/mobile#content/view/288375... I think it might help you On Tue, Sep 18, 2018 at 13:21 RAVI bhatt <bhattravi4@gmail.com> wrote:
Hi Joel, I am providing only g722 and g729 both codec to user. if both users uses same codec it's ok but if either of user is using G729 than i want to renegotiate g729 as audio codec for both leg instead of using transcoding.Here G722 is high bandwidth and g729 is low bandwidth.
On Tue 18 Sep, 2018, 2:29 AM Joel Serrano, <joel@textplus.com> wrote:
Hi Ravindrakumar,
Why don't you limit them to G729 to begin with instead of changing them once the call is established?
On Mon, Sep 17, 2018 at 7:46 AM Ravindrakumar Bhatt < ravindra.bhatt@ecosmob.com> wrote:
Hello, I am using freeswitch 1.6.20. it is fresh setup with basic configuration.
i want to renegotiate codec when call is answered and i am using uuid_media_reneg for same.
SCENARIO: user a calls to user b and both user are using code G722. when i use uuid_meida_reneg to change codec to G729 for A leg it is working fine but when using same api with bleg uuid for B leg it is using G722 for renegotiate. Here are console log for same. https://pastebin.freeswitch.org/view/342e4eed Any suggestions for this or setting needed to be done in freeswitch.
--
*Thanks and Regards,*
*Ravindrakumar Bhatt* Jr. Software Developer Ecosmob Technologies Ltd Ahmedabad Mo:*+918460692402* _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
If you offer the codecs in your preferred order (G.729, G.722), and both clients support them, they should choose G729. from RFC 3264: In all cases, the formats in the "m=" line MUST be listed in order of preference, with the first format listed being preferred. In this case, preferred means that the recipient of the offer SHOULD use the format with the highest preference that is acceptable to it. Guillermo On Tue, Sep 18, 2018 at 6:06 PM RAVI bhatt <bhattravi4@gmail.com> wrote:
Hi Joel, I am providing only g722 and g729 both codec to user. if both users uses same codec it's ok but if either of user is using G729 than i want to renegotiate g729 as audio codec for both leg instead of using transcoding.Here G722 is high bandwidth and g729 is low bandwidth.
On Tue 18 Sep, 2018, 2:29 AM Joel Serrano, <joel@textplus.com> wrote:
Hi Ravindrakumar,
Why don't you limit them to G729 to begin with instead of changing them once the call is established?
On Mon, Sep 17, 2018 at 7:46 AM Ravindrakumar Bhatt < ravindra.bhatt@ecosmob.com> wrote:
Hello, I am using freeswitch 1.6.20. it is fresh setup with basic configuration.
i want to renegotiate codec when call is answered and i am using uuid_media_reneg for same.
SCENARIO: user a calls to user b and both user are using code G722. when i use uuid_meida_reneg to change codec to G729 for A leg it is working fine but when using same api with bleg uuid for B leg it is using G722 for renegotiate. Here are console log for same. https://pastebin.freeswitch.org/view/342e4eed Any suggestions for this or setting needed to be done in freeswitch.
--
*Thanks and Regards,*
*Ravindrakumar Bhatt* Jr. Software Developer Ecosmob Technologies Ltd Ahmedabad Mo:*+918460692402* _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
-- Guillermo Ruiz Camauer
Isn't that what priorities are for? You offer first 729, then 722. If both ends have both, they should use 729. On Tue, Sep 18, 2018, 22:13 RAVI bhatt <bhattravi4@gmail.com> wrote:
Hi Joel, I am providing only g722 and g729 both codec to user. if both users uses same codec it's ok but if either of user is using G729 than i want to renegotiate g729 as audio codec for both leg instead of using transcoding.Here G722 is high bandwidth and g729 is low bandwidth.
On Tue 18 Sep, 2018, 2:29 AM Joel Serrano, <joel@textplus.com> wrote:
Hi Ravindrakumar,
Why don't you limit them to G729 to begin with instead of changing them once the call is established?
On Mon, Sep 17, 2018 at 7:46 AM Ravindrakumar Bhatt < ravindra.bhatt@ecosmob.com> wrote:
Hello, I am using freeswitch 1.6.20. it is fresh setup with basic configuration.
i want to renegotiate codec when call is answered and i am using uuid_media_reneg for same.
SCENARIO: user a calls to user b and both user are using code G722. when i use uuid_meida_reneg to change codec to G729 for A leg it is working fine but when using same api with bleg uuid for B leg it is using G722 for renegotiate. Here are console log for same. https://pastebin.freeswitch.org/view/342e4eed Any suggestions for this or setting needed to be done in freeswitch.
--
*Thanks and Regards,*
*Ravindrakumar Bhatt* Jr. Software Developer Ecosmob Technologies Ltd Ahmedabad Mo:*+918460692402* _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
Thanks to all for your replies. I am using priority for supporting codec and it's working fine for most of scenarios but it is not working for one scenario where aleg has priority as g722,g729 while bleg has g729,g722.In this scenario g722 is negotiated but as low bandwidth codec I want to provide G729 as negotiated codec. And this is the main question how should I achieve this? because I am not able to renegotiate codecs using uuid_media_reneg. On Thu 20 Sep, 2018, 12:59 AM David Villasmil, < david.villasmil.work@gmail.com> wrote:
Isn't that what priorities are for? You offer first 729, then 722. If both ends have both, they should use 729.
On Tue, Sep 18, 2018, 22:13 RAVI bhatt <bhattravi4@gmail.com> wrote:
Hi Joel, I am providing only g722 and g729 both codec to user. if both users uses same codec it's ok but if either of user is using G729 than i want to renegotiate g729 as audio codec for both leg instead of using transcoding.Here G722 is high bandwidth and g729 is low bandwidth.
On Tue 18 Sep, 2018, 2:29 AM Joel Serrano, <joel@textplus.com> wrote:
Hi Ravindrakumar,
Why don't you limit them to G729 to begin with instead of changing them once the call is established?
On Mon, Sep 17, 2018 at 7:46 AM Ravindrakumar Bhatt < ravindra.bhatt@ecosmob.com> wrote:
Hello, I am using freeswitch 1.6.20. it is fresh setup with basic configuration.
i want to renegotiate codec when call is answered and i am using uuid_media_reneg for same.
SCENARIO: user a calls to user b and both user are using code G722. when i use uuid_meida_reneg to change codec to G729 for A leg it is working fine but when using same api with bleg uuid for B leg it is using G722 for renegotiate. Here are console log for same. https://pastebin.freeswitch.org/view/342e4eed Any suggestions for this or setting needed to be done in freeswitch.
--
*Thanks and Regards,*
*Ravindrakumar Bhatt* Jr. Software Developer Ecosmob Technologies Ltd Ahmedabad Mo:*+918460692402*
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
Did you try with <param name="inbound-late-negotiation" value="true"/> and <action application="set" data="inherit_codec=true"/> ? Guillermo On Thu, Sep 20, 2018 at 1:14 PM RAVI bhatt <bhattravi4@gmail.com> wrote:
Thanks to all for your replies.
I am using priority for supporting codec and it's working fine for most of scenarios but it is not working for one scenario where aleg has priority as g722,g729 while bleg has g729,g722.In this scenario g722 is negotiated but as low bandwidth codec I want to provide G729 as negotiated codec.
And this is the main question how should I achieve this? because I am not able to renegotiate codecs using uuid_media_reneg.
On Thu 20 Sep, 2018, 12:59 AM David Villasmil, < david.villasmil.work@gmail.com> wrote:
Isn't that what priorities are for? You offer first 729, then 722. If both ends have both, they should use 729.
On Tue, Sep 18, 2018, 22:13 RAVI bhatt <bhattravi4@gmail.com> wrote:
Hi Joel, I am providing only g722 and g729 both codec to user. if both users uses same codec it's ok but if either of user is using G729 than i want to renegotiate g729 as audio codec for both leg instead of using transcoding.Here G722 is high bandwidth and g729 is low bandwidth.
On Tue 18 Sep, 2018, 2:29 AM Joel Serrano, <joel@textplus.com> wrote:
Hi Ravindrakumar,
Why don't you limit them to G729 to begin with instead of changing them once the call is established?
On Mon, Sep 17, 2018 at 7:46 AM Ravindrakumar Bhatt < ravindra.bhatt@ecosmob.com> wrote:
Hello, I am using freeswitch 1.6.20. it is fresh setup with basic configuration.
i want to renegotiate codec when call is answered and i am using uuid_media_reneg for same.
SCENARIO: user a calls to user b and both user are using code G722. when i use uuid_meida_reneg to change codec to G729 for A leg it is working fine but when using same api with bleg uuid for B leg it is using G722 for renegotiate. Here are console log for same. https://pastebin.freeswitch.org/view/342e4eed Any suggestions for this or setting needed to be done in freeswitch.
--
*Thanks and Regards,*
*Ravindrakumar Bhatt* Jr. Software Developer Ecosmob Technologies Ltd Ahmedabad Mo:*+918460692402*
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
-- Guillermo Ruiz Camauer
No, this is not accurate, you can choose a lower codec in your answer if you choose to, this is why our codec negotiation prefs have a 'greedy' option. On Wed, Sep 19, 2018 at 2:15 AM, David Villasmil < david.villasmil.work@gmail.com> wrote:
Isn't that what priorities are for? You offer first 729, then 722. If both ends have both, they should use 729.
-- Brian West | Co-founder and Developer Need Commercial support? email sales@freeswitch.com FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g> Email: brian@freeswitch.com Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/> [image: https://www.facebook.com/signalwireinc?src=email] <https://www.facebook.com/freeswitch> [image: https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
participants (6)
-
Brian West
-
David Villasmil
-
Guillermo Ruiz Camauer
-
Joel Serrano
-
RAVI bhatt
-
Ravindrakumar Bhatt