Codec Reset Issue With Media Bug Invoked On Both Call Legs
Hi, We are utilizing a module that performs processing on audio using a media bug. We are finding that if the media bug is invoked on only one call leg, we are seeing very frequent codec resets on the call leg that doesn’t have the media bug invoked leading to very choppy audio. If the media bug is on both call legs we don’t see the issue or the number of codec resets is much lower. Any thoughts on what may be causing this and why having the media bug on both call legs would make a difference? Thanks. -Jon
What is a codec reset? On Friday, June 24, 2016, Jon Lederman <jonlederman@gmail.com> wrote:
Hi,
We are utilizing a module that performs processing on audio using a media bug. We are finding that if the media bug is invoked on only one call leg, we are seeing very frequent codec resets on the call leg that doesn’t have the media bug invoked leading to very choppy audio. If the media bug is on both call legs we don’t see the issue or the number of codec resets is much lower.
Any thoughts on what may be causing this and why having the media bug on both call legs would make a difference?
Thanks.
-Jon _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <javascript:;> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <javascript:;> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬ ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+ <http://freeswitch.org/g+>* ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org ☎ +19193869900 https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA
Hi, By codec reset I mean the following: 2016-05-04 03:51:32.464652 [DEBUG] mod_opus.c:661 Opus decoder stats: Frames[0] PLC[0] FEC[0] 2016-05-04 03:51:32.464652 [DEBUG] mod_opus.c:559 Opus encoder: set bitrate to local settings [72000bps] Thanks Jon Sent from my iPhone
On Jun 24, 2016, at 6:34 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
What is a codec reset?
On Friday, June 24, 2016, Jon Lederman <jonlederman@gmail.com> wrote: Hi,
We are utilizing a module that performs processing on audio using a media bug. We are finding that if the media bug is invoked on only one call leg, we are seeing very frequent codec resets on the call leg that doesn’t have the media bug invoked leading to very choppy audio. If the media bug is on both call legs we don’t see the issue or the number of codec resets is much lower.
Any thoughts on what may be causing this and why having the media bug on both call legs would make a difference?
Thanks.
-Jon _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
-- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬
☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH ☞ irc.freenode.net #freeswitch ☞ http://freeswitch.org/g+
ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org ☎ +19193869900
https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
Hello. Asked it sometimes ago, but unfortunately I didn't get any answer. Is it possible to route inbound calls from the gateways described in SIP profile in other way but <condition field="network_addr" expression="^1\.2\.3\.4$" break="never"> ? context variable in gateway parameters seems to be totally ignored by FS, but it works for password-protected users. Or why it's impossible to just auth that calls in FS by peer name-peer IP pair, like Asterisk does?
Personally for ip auth i do it in the dialplan either like the network_addr you do below or via xml curl and have a back end return the dialplan for any given ip. You can also get fancy with the acl api in the condition Sent from my iPhone
On Jun 24, 2016, at 6:00 PM, Yu Boot <yu@yu-boot.ru> wrote:
Hello. Asked it sometimes ago, but unfortunately I didn't get any answer.
Is it possible to route inbound calls from the gateways described in SIP profile in other way but <condition field="network_addr" expression="^1\.2\.3\.4$" break="never"> ?
context variable in gateway parameters seems to be totally ignored by FS, but it works for password-protected users.
Or why it's impossible to just auth that calls in FS by peer name-peer IP pair, like Asterisk does?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
I'm curious about this too -any thoughts? On Fri, Jun 24, 2016 at 6:45 PM, Jon Lederman <jonlederman@gmail.com> wrote:
Hi,
By codec reset I mean the following:
2016-05-04 03:51:32.464652 [DEBUG] mod_opus.c:661 Opus decoder stats: Frames[0] PLC[0] FEC[0] 2016-05-04 03:51:32.464652 [DEBUG] mod_opus.c:559 Opus encoder: set bitrate to local settings [72000bps]
Thanks
Jon
Sent from my iPhone
On Jun 24, 2016, at 6:34 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
What is a codec reset?
On Friday, June 24, 2016, Jon Lederman <jonlederman@gmail.com> wrote:
Hi,
We are utilizing a module that performs processing on audio using a media bug. We are finding that if the media bug is invoked on only one call leg, we are seeing very frequent codec resets on the call leg that doesn’t have the media bug invoked leading to very choppy audio. If the media bug is on both call legs we don’t see the issue or the number of codec resets is much lower.
Any thoughts on what may be causing this and why having the media bug on both call legs would make a difference?
Thanks.
-Jon _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
-- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬
☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+ <http://freeswitch.org/g+>*
ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org ☎ +19193869900
https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
-- mandra c:410.258.5281
you could try uuid_codec_debug <uuid> audio 10 and look for some hints. On Wed, Jun 29, 2016 at 12:44 PM, Chris Mandra <mandra@gmail.com> wrote:
I'm curious about this too -any thoughts? On Fri, Jun 24, 2016 at 6:45 PM, Jon Lederman <jonlederman@gmail.com> wrote:
Hi,
By codec reset I mean the following:
2016-05-04 03:51:32.464652 [DEBUG] mod_opus.c:661 Opus decoder stats: Frames[0] PLC[0] FEC[0] 2016-05-04 03:51:32.464652 [DEBUG] mod_opus.c:559 Opus encoder: set bitrate to local settings [72000bps]
Thanks
Jon
Sent from my iPhone
On Jun 24, 2016, at 6:34 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
What is a codec reset?
On Friday, June 24, 2016, Jon Lederman <jonlederman@gmail.com> wrote:
Hi,
We are utilizing a module that performs processing on audio using a media bug. We are finding that if the media bug is invoked on only one call leg, we are seeing very frequent codec resets on the call leg that doesn’t have the media bug invoked leading to very choppy audio. If the media bug is on both call legs we don’t see the issue or the number of codec resets is much lower.
Any thoughts on what may be causing this and why having the media bug on both call legs would make a difference?
Thanks.
-Jon _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
-- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬
☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+ <http://freeswitch.org/g+>*
ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org ☎ +19193869900
https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
-- mandra c:410.258.5281
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
-- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬ ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+ <http://freeswitch.org/g+>* ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org ☎ +19193869900 https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA
participants (5)
-
Anthony Minessale
-
Chris Mandra
-
Jon Lederman
-
Ken Rice
-
Yu Boot