Re: [asterisk-users] clicking sound with alaw codec

2013-01-24 Thread Danny Nicholas
Your sounds might be too loud.  We use a lot of custom sounds here and when
the volume approaches 0 db (asterisk standard is -3 db) we get fuzz and
clicks.

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Richard Kenner
Sent: Thursday, January 24, 2013 2:45 PM
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] clicking sound with alaw codec

I'm trying to interface Asterisk with an Alcatel PABX and trying to find a
code that works well.  It says it doesn't support ulaw, though it doesn't
reject it.  It supports G.729, and that works fine, but we'd prefer not to
use compression.

When I use alaw, the path from Asterisk to the Alcatel is completely clean,
but the other way has a set of clicks that kind of sound like old-fashioned
audio noise.

The outgoing SDP looks like this:

v=0
o=root 1691755711 1691755711 IN IP4 205.232.38.178 s=Asterisk PBX 10.7.1
c=IN IP4 205.232.38.178
t=0 0
m=audio 11432 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv

The reply SDP is:

v=0
o=default 1359060187 1359060187 IN IP4 10.10.22.246 s=Asterisk PBX 10.7.1
c=IN IP4 10.10.22.246
t=0 0
m=audio 32000 RTP/AVP 8 101
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=maxptime:90

Any suggestions on how to debug what's causing this?

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] clicking sound with alaw codec

2013-01-24 Thread Richard Kenner
 Your sounds might be too loud.  We use a lot of custom sounds here and when
 the volume approaches 0 db (asterisk standard is -3 db) we get fuzz and
 clicks.

Sorry I wasn't clear.  This is *always*.  I hear it over the call when
there's talking and when there's dead silence (e.g., an empty MeetMe room).

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] clicking sound with alaw codec

2013-01-24 Thread Patrick Lists

On 01/24/2013 09:44 PM, Richard Kenner wrote:
[snip]

When I use alaw, the path from Asterisk to the Alcatel is completely
clean, but the other way has a set of clicks that kind of sound like
old-fashioned audio noise.

[snip]

It's been ages since I experienced that but things to check that come to 
mind in no particular order are:


- DAHDI settings (sync source)
- Asterisk server not properly grounded
- timing is off (check logs)
- shared interrupts (make sure nic/TDM card have their own)
- jitterbuffer settings (try on/off)
- echo cancellation going bonkers (OSLEC?)
- QoS (proper priority for voice packets?)
- PCI slot (if you have a card, try changing the slot it's in)

Use Wireshark to see the difference between a good call and a bad one. 
If you see a lot of time jumps on the bad call then look at your 
network/QoS.


Regards,
Patrick


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] clicking sound with alaw codec

2013-01-24 Thread Richard Kenner
  When I use alaw, the path from Asterisk to the Alcatel is completely
  clean, but the other way has a set of clicks that kind of sound like
  old-fashioned audio noise.
 [snip]
 
 It's been ages since I experienced that but things to check that come to 
 mind in no particular order are:

Remember: this is only *one* particular SIP trunk.

 Use Wireshark to see the difference between a good call and a bad one. 
 If you see a lot of time jumps on the bad call then look at your 
 network/QoS.

jumps?  Note that a good call is G.729 and bad is G.711, so I
wouldn't expect them to be at all similar.

We throw a lot more bandwidth than even G.711 down the pipe between
the two sites in terms of data each evening, so I don't think it's that
kind of issue.

I'm thinking in terms of distortion caused by transcoding someplace.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] clicking sound with alaw codec

2013-01-24 Thread Richard Kenner
 - jitterbuffer settings (try on/off)

I added
  jbenable=yes

and get lots of:

[Jan 24 17:53:41] WARNING[12317]: abstract_jb.c:284 ast_jb_put: 
DAHDI/i1/2128518396-6c7 received frame with invalid timing info: 
has_timing_info=1, len=0, ts=371371424, src=RTP
[Jan 24 17:53:41] WARNING[12317]: abstract_jb.c:284 ast_jb_put: 
DAHDI/i1/2128518396-6c7 received frame with invalid timing info: 
has_timing_info=1, len=0, ts=371371434, src=RTP

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] clicking sound with alaw codec

2013-01-24 Thread Patrick Lists

On 01/24/2013 11:57 PM, Richard Kenner wrote:

- jitterbuffer settings (try on/off)


I added
   jbenable=yes

and get lots of:

[Jan 24 17:53:41] WARNING[12317]: abstract_jb.c:284 ast_jb_put: 
DAHDI/i1/2128518396-6c7 received frame with invalid timing info: 
has_timing_info=1, len=0, ts=371371424, src=RTP
[Jan 24 17:53:41] WARNING[12317]: abstract_jb.c:284 ast_jb_put: 
DAHDI/i1/2128518396-6c7 received frame with invalid timing info: 
has_timing_info=1, len=0, ts=371371434, src=RTP


Check https://issues.asterisk.org/jira/browse/ASTERISK-12042

Regards,
Patrick


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] clicking sound with alaw codec

2013-01-24 Thread Richard Kenner
 Check https://issues.asterisk.org/jira/browse/ASTERISK-12042

I did.  But that was with an unofficial G.729.  This is with the supplied
alaw codec.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users