Summary:ASTERISK-20501: Distorted Audio if you Dial multiple numbers at once (DAHDI)
Reporter:Sven Hirschmueller (sodom)Labels:
Date Opened:2012-10-02 06:32:56Date Closed:2012-10-15 15:21:48
Versions: Frequency of
Environment:Debian 6.0, Kernel 26.39.4Attachments:( 0) asterisk.log
( 1) fiallog.log
Description:If you dial multiple numbers(channels) at once via the dial app a dahdi call will have distorted audio if it is tunneled in hardware and not in software.

e.g. You use following ael extension.

1000 => {

If you dial 1000 and you pick up the call via isdn phone 1000 and your caller phone is also a isdn phone on the same BRI-Card the audio will be distorted.
If you pick up the phone via the sip phone the audio is ok.
If you don't use multi dial statements the call is also ok and finaly the call is ok if you add parameters to the dial statement that prevent a route of the audio data via the chips as asterisk need to interpret them. (e.g. parameters t or T)

so following statements are working
1000 => {
also this will work
1000 => {

i guess the problem is that the bridged call need to be masquaraded and in the end the hardware isn't told correctly witch b-channel to be tunneled to witch b-channel.

tested with a openvox b800p, sorry i can't test it with our didium te405p e1 cards as i miss the end point for e1.

Comments:By: Sven Hirschmueller (sodom) 2012-10-02 06:34:36.148-0500

CLI-Log with debug 3

By: Rusty Newton (rnewton) 2012-10-04 20:02:12.754-0500

Sven, please provide the asterisk full log with VERBOSE and DEBUG messages set to level 5 - captured during the issue occurring. https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information

By: Sven Hirschmueller (sodom) 2012-10-06 08:56:11.394-0500

Will do so at monday

By: Sven Hirschmueller (sodom) 2012-10-08 06:42:48.449-0500

So, i attached a log file riped of a testing rig.

Phone with number 21 calls extension 13.
13 is following extension:

13 => {

If i pick up via either phone 11 or phone 20 the audio is distorted.

Phone 11 is SPAN: 7 (Port 4 of the ISDN Card)
Phone 20 is SPAN: 8 (Port 5 of the ISDN Card)
Phone 21 is SPAN: 9 (Port 6 of the ISDN Card)

Setup is :
SPAN 1 => 16 Port Analogue Card
SPAN 2,3 => E1
SPAN 4-11 => 8 Port S0 Card

By: Sven Hirschmueller (sodom) 2012-10-08 06:44:41.620-0500

Logfile of disrupted audio calls.

By: Rusty Newton (rnewton) 2012-10-10 16:17:52.508-0500

Thanks for the debug so far. Can you also provide the output of "pri set debug on span x" for both spans of a call demonstrating the issue?

By: Sven Hirschmueller (sodom) 2012-10-12 02:31:25.322-0500

We just replaced our analogue card in slot 1 as it reported some of it's ports there defect.

After the replacement a number of problems in our system disappeared. As did this issue do. I don't understand why a defect analogue card could have such an impact on the ISDN parts so i will do some further testing.
The only idea i have is that the analogue card was the clock master of the system and as the card was damaged the clock of the various other cards wasn't in sync.

I will take some days to see if the problem is realy solved by this issue as i don't trust this fact.

Sorry for inserting a maybe wrong issue.. i don't mind if you put the issue to unconfirmed i would open it again if it still persist.

By: Rusty Newton (rnewton) 2012-10-15 15:21:35.557-0500

Thanks for following up Sven. No worries.