I have the following setup: voip.ms < (external profile) > freeswitch < (internal profile)> my devices. On my internal profile, the only inbound and outbound codec I allow is iLBC (I tried 20ms and 30ms), and on my external profile the only inbound and outbound codec I allow is PCMU. All my internal settings are compatible with the devices that I'm using, and everything works well when I call from outside in, and freeswitch now correctly transcodes from PCMU to iLBC. However, when I call from my internal devices to outside, the iLBC codec is offered on outbound leg B, not PCMU like I have on my external profile. Looking at wireshark voip call flow, my machine is sending iLBC to voip.msand voip.ms is sending me PCMU RTP.
What is your dialstring? Are you dialing out through a user/gateway registered on internal, or using sofia/internal/ prefix? A debug-level log with siptrace would also be useful. -Steve On 4 February 2011 16:45, Marcin Wojtowicz <marcin321@gmail.com> wrote:
I have the following setup: voip.ms < (external profile) > freeswitch < (internal profile)> my devices. On my internal profile, the only inbound and outbound codec I allow is iLBC (I tried 20ms and 30ms), and on my external profile the only inbound and outbound codec I allow is PCMU. All my internal settings are compatible with the devices that I'm using, and everything works well when I call from outside in, and freeswitch now correctly transcodes from PCMU to iLBC. However, when I call from my internal devices to outside, the iLBC codec is offered on outbound leg B, not PCMU like I have on my external profile. Looking at wireshark voip call flow, my machine is sending iLBC to voip.msand voip.ms is sending me PCMU RTP.
_______________________________________________ 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
try putting your dial string to your provider like this: {absolute_codec_string=PCMU}sofia/foo/foo@bar.com On Fri, Feb 4, 2011 at 10:45 AM, Marcin Wojtowicz <marcin321@gmail.com> wrote:
I have the following setup: voip.ms < (external profile) > freeswitch < (internal profile)> my devices. On my internal profile, the only inbound and outbound codec I allow is iLBC (I tried 20ms and 30ms), and on my external profile the only inbound and outbound codec I allow is PCMU. All my internal settings are compatible with the devices that I'm using, and everything works well when I call from outside in, and freeswitch now correctly transcodes from PCMU to iLBC. However, when I call from my internal devices to outside, the iLBC codec is offered on outbound leg B, not PCMU like I have on my external profile. Looking at wireshark voip call flow, my machine is sending iLBC to voip.ms and voip.ms is sending me PCMU RTP.
_______________________________________________ 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
Thank you, the absolute codec string addition worked. My original dialstring was <action application="bridge" data="sofia/gateway/voip.ms/1$1"/>, BTW (where voip.ms is imported by the external profile). I just have one more unrelated question about voice sample times. If one leg is using 20ms and the other 30ms, does freeswitch introduce a buffer and if so, how much delay is it? On Fri, Feb 4, 2011 at 12:07 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
try putting your dial string to your provider like this:
{absolute_codec_string=PCMU}sofia/foo/foo@bar.com
On Fri, Feb 4, 2011 at 10:45 AM, Marcin Wojtowicz <marcin321@gmail.com> wrote:
I have the following setup: voip.ms < (external profile) > freeswitch < (internal profile)> my devices. On my internal profile, the only inbound and outbound codec I allow is iLBC (I tried 20ms and 30ms), and on my external profile the only inbound and outbound codec I allow is PCMU. All my internal settings are compatible with the devices that I'm using, and everything works well when I call from outside in, and freeswitch now correctly transcodes from PCMU to iLBC. However, when I call from my internal devices to outside, the iLBC codec is offered on outbound leg B, not PCMU like I have on my external profile. Looking at wireshark voip call flow, my machine is sending iLBC to voip.ms and voip.ms is sending me PCMU RTP.
_______________________________________________ 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 <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
_______________________________________________ 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 (3)
-
Anthony Minessale
-
Marcin Wojtowicz
-
Steven Ayre