Selecting codec by sample rate
Hello everyone, Does FreeSWITCH support the ability to accept/reject/filter/modify codec by sample rate? I've defined SILK@8000h as the only supported codec in my profile yet clients calling in that prefer SILK@12000h over SILK@8000h are allowed to bring up the call at SILK@12000h. It seems that SILK at any sample rate is allowed as long as SILK at any sample rate is defined in the profile. My profile is set to scrooge and I've tried various combinations of late-negotiation, absolute_codec_string, etc to no avail. Should I be able to accept/reject specific sample rates? If not I'm willing to create a bounty for it... Thanks! -- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
Sounds like you need to define the inbound and outbound codec preferences to make sure that happens. Are you doing that? /b On Aug 20, 2010, at 4:38 PM, Kristian Kielhofner wrote:
Hello everyone,
Does FreeSWITCH support the ability to accept/reject/filter/modify codec by sample rate?
I've defined SILK@8000h as the only supported codec in my profile yet clients calling in that prefer SILK@12000h over SILK@8000h are allowed to bring up the call at SILK@12000h. It seems that SILK at any sample rate is allowed as long as SILK at any sample rate is defined in the profile.
My profile is set to scrooge and I've tried various combinations of late-negotiation, absolute_codec_string, etc to no avail.
Should I be able to accept/reject specific sample rates? If not I'm willing to create a bounty for it...
Thanks!
There is no current way to do this because it will attempt to do the best with what it has to work with. Currently its considered a preference not a requirement which one to use. It probably is possible to invent a way but it's not there now. On Fri, Aug 20, 2010 at 4:38 PM, Kristian Kielhofner <kris@kriskinc.com> wrote:
Hello everyone,
Does FreeSWITCH support the ability to accept/reject/filter/modify codec by sample rate?
I've defined SILK@8000h as the only supported codec in my profile yet clients calling in that prefer SILK@12000h over SILK@8000h are allowed to bring up the call at SILK@12000h. It seems that SILK at any sample rate is allowed as long as SILK at any sample rate is defined in the profile.
My profile is set to scrooge and I've tried various combinations of late-negotiation, absolute_codec_string, etc to no avail.
Should I be able to accept/reject specific sample rates? If not I'm willing to create a bounty for it...
Thanks!
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.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 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
Hi Tony, Thanks for getting back to me. What would it take (time/money) to enforce this down to the ptime? I've created a bounty: http://wiki.freeswitch.org/wiki/Bounty#Enforce_codec_selection_by_sample_rat... http://jira.freeswitch.org/browse/BOUNTY-21 On Fri, Aug 20, 2010 at 2:50 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
There is no current way to do this because it will attempt to do the best with what it has to work with. Currently its considered a preference not a requirement which one to use. It probably is possible to invent a way but it's not there now.
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
The first part is straightforward but the part after the "likewise" with the same codec in many rates may be problematic. I'll have to think about it but it's not at all trivial of a change and will have to be carefully tested to avoid regressions. On Fri, Aug 20, 2010 at 5:08 PM, Kristian Kielhofner <kris@kriskinc.com> wrote:
Hi Tony,
Thanks for getting back to me. What would it take (time/money) to enforce this down to the ptime?
I've created a bounty:
http://wiki.freeswitch.org/wiki/Bounty#Enforce_codec_selection_by_sample_rat... http://jira.freeswitch.org/browse/BOUNTY-21
On Fri, Aug 20, 2010 at 2:50 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
There is no current way to do this because it will attempt to do the best with what it has to work with. Currently its considered a preference not a requirement which one to use. It probably is possible to invent a way but it's not there now.
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.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 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
Tony, Thanks, that's what I was trying to asses (trivial vs. non-trivial). I'm spoiled because most of my requests seem to be trivial and get fixed in an hour or less :). Well the bounty is still up and open. This is something I'm very interested in and if you get any more details let me know. Thanks again! On Fri, Aug 20, 2010 at 3:48 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
The first part is straightforward but the part after the "likewise" with the same codec in many rates may be problematic. I'll have to think about it but it's not at all trivial of a change and will have to be carefully tested to avoid regressions.
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
Hi, I would also be willing to contribute to the bounty as well, let me know. We need something like this for some faulty phones we have that break on 60ms ptime. Cheers, Michael On Sat, Aug 21, 2010 at 1:27 AM, Kristian Kielhofner <kris@kriskinc.com>wrote:
Tony,
Thanks, that's what I was trying to asses (trivial vs. non-trivial). I'm spoiled because most of my requests seem to be trivial and get fixed in an hour or less :).
Well the bounty is still up and open. This is something I'm very interested in and if you get any more details let me know.
Thanks again!
On Fri, Aug 20, 2010 at 3:48 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
The first part is straightforward but the part after the "likewise" with the same codec in many rates may be problematic. I'll have to think about it but it's not at all trivial of a change and will have to be carefully tested to avoid regressions.
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.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
participants (4)
-
Anthony Minessale
-
Brian West
-
Kristian Kielhofner
-
Michael Toop