problem with voice quality
Dear all: The scenario is that, when I use 3CX (PCMA) to call XLite, 3CX will hear loud noise but XLite is fine. And I found that it would only happen when XLite supports PCMA and PCMU simultaneously. If XLite only support PCMA, everything is fine. Maybe it is because of the old version of Freeswitch, I download the latest version yesterday and re-test. The result is that 3CX hear nothing instead of noise. I use Wireshark to survey packages, and the server does not transfer UDP packages to 3CX. I check the log file, it is as below. -----3CX hears nothing----- 2011-02-24 20:17:30.724125 [DEBUG] sofia.c:4683 Channel sofia/internal/1000@thisjoy.x.x:5060 entering state [completed][200] 2011-02-24 20:17:30.724125 [DEBUG] switch_core_session.c:709 Send signal sofia/internal/1000@thisjoy.x.x:5060 [BREAK] 2011-02-24 20:17:30.724125 [DEBUG] switch_channel.c:2790 (sofia/internal/1000@thisjoy.x.x:5060) Callstate Change EARLY -> ACTIVE 2011-02-24 20:17:30.724125 [NOTICE] switch_ivr_originate.c:3363 Channel [sofia/internal/1000@thisjoy.x.x:5060] has been answered 2011-02-24 20:17:30.724125 [DEBUG] switch_ivr_originate.c:3408 Originate Resulted in Success: [sofia/internal/sip:1001@114.24.x.x:56922] 2011-02-24 20:17:30.739750 [DEBUG] switch_ivr_originate.c:3408 Originate Resulted in Success: [sofia/internal/sip:1001@114.24.x.x:56922] 2011-02-24 20:17:30.739750 [DEBUG] switch_core_session.c:709 Send signal sofia/internal/sip:1001@114.24.x.x:56922 [BREAK] 2011-02-24 20:17:30.739750 [DEBUG] switch_core_session.c:709 Send signal sofia/internal/1000@thisjoy.x.x:5060 [BREAK] 2011-02-24 20:17:30.739750 [DEBUG] switch_ivr_bridge.c:1234 (sofia/internal/sip:1001@114.24.x.x:56922) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA 2011-02-24 20:17:30.739750 [DEBUG] switch_core_session.c:1116 Send signal sofia/internal/sip:1001@114.24.x.x:56922 [BREAK] 2011-02-24 20:17:30.739750 [DEBUG] switch_core_state_machine.c:320 (sofia/internal/sip:1001@114.24.x.x:56922) Running State Change CS_EXCHANGE_MEDIA 2011-02-24 20:17:30.739750 [DEBUG] switch_core_state_machine.c:369 (sofia/internal/sip:1001@114.24.x.x:56922) State EXCHANGE_MEDIA 2011-02-24 20:17:30.739750 [DEBUG] mod_sofia.c:552 SOFIA EXCHANGE_MEDIA 2011-02-24 20:17:30.974125 [DEBUG] switch_rtp.c:2985 Correct ip/port confirmed. 2011-02-24 20:17:30.974125 [DEBUG] sofia.c:4683 Channel sofia/internal/1000@thisjoy.x.x:5060 entering state [ready][200] 2011-02-24 20:17:31.021000 [DEBUG] switch_core_session.c:771 Send signal sofia/internal/sip:1001@114.24.x.x:56922 [BREAK] 2011-02-24 20:17:31.021000 [DEBUG] switch_core_session.c:771 Send signal sofia/internal/1000@thisjoy.x.x:5060 [BREAK] -----log end----- When XLite only supports PCMA, it would be an additional log: 2011-02-24 20:16:06.661625 [INFO] switch_rtp.c:2968 Auto Changing port from 192.168.1.1:51508 to 114.24.x.x:51508 And I test it again by using a public VoIP server ( sip.lowratevoip.com), there is no noise or silence situation, everything is fine. Does XLite get bugs? Why the public server can deal with the situation? Could anyone help me? Sincerely yours, thisjoy.
I use X-Lite to call into my local freeswitch for testing and it works fine, but when I call into the weekly conference, everyone hears noise so I use Linphone or Skype for that. It's strange.. ----- Original Message ----- From: "joy this" <thisjoy0528@gmail.com> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Thursday, February 24, 2011 9:49 PM Subject: [Freeswitch-users] problem with voice quality
Dear all:
The scenario is that, when I use 3CX (PCMA) to call XLite, 3CX will hear loud noise but XLite is fine. And I found that it would only happen when XLite supports PCMA and PCMU simultaneously. If XLite only support PCMA, everything is fine.
Maybe it is because of the old version of Freeswitch, I download the latest version yesterday and re-test. The result is that 3CX hear nothing instead of noise. I use Wireshark to survey packages, and the server does not transfer UDP packages to 3CX. I check the log file, it is as below.
-----3CX hears nothing-----
2011-02-24 20:17:30.724125 [DEBUG] sofia.c:4683 Channel sofia/internal/1000@thisjoy.x.x:5060 entering state [completed][200]
2011-02-24 20:17:30.724125 [DEBUG] switch_core_session.c:709 Send signal sofia/internal/1000@thisjoy.x.x:5060 [BREAK]
2011-02-24 20:17:30.724125 [DEBUG] switch_channel.c:2790 (sofia/internal/1000@thisjoy.x.x:5060) Callstate Change EARLY -> ACTIVE
2011-02-24 20:17:30.724125 [NOTICE] switch_ivr_originate.c:3363 Channel [sofia/internal/1000@thisjoy.x.x:5060] has been answered
2011-02-24 20:17:30.724125 [DEBUG] switch_ivr_originate.c:3408 Originate Resulted in Success: [sofia/internal/sip:1001@114.24.x.x:56922]
2011-02-24 20:17:30.739750 [DEBUG] switch_ivr_originate.c:3408 Originate Resulted in Success: [sofia/internal/sip:1001@114.24.x.x:56922]
2011-02-24 20:17:30.739750 [DEBUG] switch_core_session.c:709 Send signal sofia/internal/sip:1001@114.24.x.x:56922 [BREAK]
2011-02-24 20:17:30.739750 [DEBUG] switch_core_session.c:709 Send signal sofia/internal/1000@thisjoy.x.x:5060 [BREAK]
2011-02-24 20:17:30.739750 [DEBUG] switch_ivr_bridge.c:1234 (sofia/internal/sip:1001@114.24.x.x:56922) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
2011-02-24 20:17:30.739750 [DEBUG] switch_core_session.c:1116 Send signal sofia/internal/sip:1001@114.24.x.x:56922 [BREAK]
2011-02-24 20:17:30.739750 [DEBUG] switch_core_state_machine.c:320 (sofia/internal/sip:1001@114.24.x.x:56922) Running State Change CS_EXCHANGE_MEDIA
2011-02-24 20:17:30.739750 [DEBUG] switch_core_state_machine.c:369 (sofia/internal/sip:1001@114.24.x.x:56922) State EXCHANGE_MEDIA
2011-02-24 20:17:30.739750 [DEBUG] mod_sofia.c:552 SOFIA EXCHANGE_MEDIA
2011-02-24 20:17:30.974125 [DEBUG] switch_rtp.c:2985 Correct ip/port confirmed.
2011-02-24 20:17:30.974125 [DEBUG] sofia.c:4683 Channel sofia/internal/1000@thisjoy.x.x:5060 entering state [ready][200]
2011-02-24 20:17:31.021000 [DEBUG] switch_core_session.c:771 Send signal sofia/internal/sip:1001@114.24.x.x:56922 [BREAK]
2011-02-24 20:17:31.021000 [DEBUG] switch_core_session.c:771 Send signal sofia/internal/1000@thisjoy.x.x:5060 [BREAK]
-----log end-----
When XLite only supports PCMA, it would be an additional log:
2011-02-24 20:16:06.661625 [INFO] switch_rtp.c:2968 Auto Changing port from 192.168.1.1:51508 to 114.24.x.x:51508
And I test it again by using a public VoIP server ( sip.lowratevoip.com), there is no noise or silence situation, everything is fine.
Does XLite get bugs? Why the public server can deal with the situation? Could anyone help me?
Sincerely yours,
thisjoy.
I found that the problem is cause by the codec. When someone calls XLite (support PCMA and PCMU simultaneously), and Xlite decide to use PCMA, the problem occurs. In fact, XLite will send the PCMU packages, and I guess it makes the noise because Freeswitch does not trans-code. The public server is without the problem, because it detect XLite does not send PCMA and trans-code for XLite. Even XLite (support PCMA) calls XLite (support PCMA and PCMU), a-leg hears noise. Does Freeswitch support the function which can trans-code the wrong codec? Not everyone knows how to set the codec in the XLite phone, and I want to make sure if Freeswitch can do the same thing like the public server I mentioned. Sincerely yours, thisjoy.
FS will always transcode if the a-leg and b-leg are using different codecs. The only exception is on a small number of passthrough only codecs (g729,g723.1,amr). (That is assuming that one of the legs isn't lying about the type of data it's sending). Can you reproduce the sound problems on the very latest Git? Can you hear speech with noise, or is it just garbage? Can you get a debug-level log for the call with siptrace enabled so we can see what's going on? Also use tcpdump/wireshark/tshark to capture the RTP and analyze it in Wireshark to check for packet loss or jitter. -Steve On 25 February 2011 14:31, joy this <thisjoy0528@gmail.com> wrote:
I found that the problem is cause by the codec. When someone calls XLite (support PCMA and PCMU simultaneously), and Xlite decide to use PCMA, the problem occurs. In fact, XLite will send the PCMU packages, and I guess it makes the noise because Freeswitch does not trans-code. The public server is without the problem, because it detect XLite does not send PCMA and trans-code for XLite. Even XLite (support PCMA) calls XLite (support PCMA and PCMU), a-leg hears noise. Does Freeswitch support the function which can trans-code the wrong codec? Not everyone knows how to set the codec in the XLite phone, and I want to make sure if Freeswitch can do the same thing like the public server I mentioned. Sincerely yours, thisjoy.
_______________________________________________ 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
Can you reproduce the sound problems on the very latest Git?
I downloaded FS at 2/24 last week, but I couldn't see the version. It only shows "FreeSWITCH Version 1.0.head (git-)" when I input "version". Can you
hear speech with noise, or is it just garbage?
I could hear the speech with the luod noise. Can you get a
debug-level log for the call with siptrace enabled so we can see what's going on? Also use tcpdump/wireshark/tshark to capture the RTP and analyze it in Wireshark to check for packet loss or jitter.
I have the log file and the package (by Wireshark), should I share them by the email?
On Mon, Feb 28, 2011 at 7:15 PM, joy this <thisjoy0528@gmail.com> wrote:
Can you reproduce the sound problems on the very latest Git?
I downloaded FS at 2/24 last week, but I couldn't see the version. It only shows "FreeSWITCH Version 1.0.head (git-)" when I input "version".
You have an older version of git. See if you can get up to at least git 1.7
Can you
hear speech with noise, or is it just garbage?
I could hear the speech with the luod noise.
Can you get a
debug-level log for the call with siptrace enabled so we can see what's going on? Also use tcpdump/wireshark/tshark to capture the RTP and analyze it in Wireshark to check for packet loss or jitter.
I have the log file and the package (by Wireshark), should I share them by the email?
Put this out on a web server somewhere so that people can download. (Something like a drop box or a web server that you have.) -MC
joy this wrote:
The scenario is that, when I use 3CX (PCMA) to call XLite, 3CX will hear loud noise but XLite is fine. And I found that it would only happen when XLite supports PCMA and PCMU simultaneously. If XLite only support PCMA, everything is fine. I am just curious if this problem persists if X-Lite is configured with ONLY PCMU and not PCMA?
----- FreeSWITCH hosted on a Seagate DockStar with OpenWRT. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/problem-with-voice-quality-tp6... Sent from the freeswitch-users mailing list archive at Nabble.com.
When a-leg supports only PCMA, and b-leg (XLite) suppourts only PCMU, everything is fine. 2011/2/25 mazilo <Nabble@slickdeals.endjunk.com>
joy this wrote:
The scenario is that, when I use 3CX (PCMA) to call XLite, 3CX will hear loud noise but XLite is fine. And I found that it would only happen when XLite supports PCMA and PCMU simultaneously. If XLite only support PCMA, everything is fine. I am just curious if this problem persists if X-Lite is configured with ONLY PCMU and not PCMA?
----- FreeSWITCH hosted on a Seagate DockStar with OpenWRT. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/problem-with-voice-quality-tp6... Sent from the freeswitch-users mailing list archive at Nabble.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
joy this wrote:
When a-leg supports only PCMA, and b-leg (XLite) suppourts only PCMU, everything is fine. So, if X-Lite is configured with either PCMU or PCMA and not both, the sudden loud voice won't occur, right? The reason I asked this question is I noticed a Linksys SPA3K also produces a sudden loud noise on the callee side during a VoIP/PSTN call and the Linksys SPA3K is configured with all CoDecs, i.e. PCMA, PCMU, G723.1, G726, and G729. Perhaps, by disabling the PCMA or PCMU CoDec, this will eliminate the sudden loud voice.
----- FreeSWITCH hosted on a Seagate DockStar with OpenWRT. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/problem-with-voice-quality-tp6... Sent from the freeswitch-users mailing list archive at Nabble.com.
I think x-lite has had a long standing bug where it does not properly negotiate PCMA. The loud noise is what you get when you say you are using PCMA and sending PCMU instead. On Fri, Feb 25, 2011 at 8:58 AM, mazilo <Nabble@slickdeals.endjunk.com> wrote:
joy this wrote:
When a-leg supports only PCMA, and b-leg (XLite) suppourts only PCMU, everything is fine. So, if X-Lite is configured with either PCMU or PCMA and not both, the sudden loud voice won't occur, right? The reason I asked this question is I noticed a Linksys SPA3K also produces a sudden loud noise on the callee side during a VoIP/PSTN call and the Linksys SPA3K is configured with all CoDecs, i.e. PCMA, PCMU, G723.1, G726, and G729. Perhaps, by disabling the PCMA or PCMU CoDec, this will eliminate the sudden loud voice.
----- FreeSWITCH hosted on a Seagate DockStar with OpenWRT. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/problem-with-voice-quality-tp6... Sent from the freeswitch-users mailing list archive at Nabble.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
participants (6)
-
Anthony Minessale
-
joy this
-
Kris
-
mazilo
-
Michael Collins
-
Steven Ayre