Summary:ASTERISK-10222: One way sound on calls between mISDN and SIP
Reporter:Igor Goncharovsky (igorg)Labels:
Date Opened:2007-09-03 02:06:21Date Closed:2007-11-16 04:10:15.000-0600
Versions:Frequency of
Environment:Attachments:( 0) misdn_good_incoming.txt
( 1) misdn_good_outgoing.txt
( 2) misdn_oneway_incoming.txt
( 3) misdn_oneway_outgoing.txt
( 4) misdn-one-audio-incoming.txt
( 5) misdnoneway-87971-1.patch
( 6) misdnoneway-87971-2.patch
Description:I have updated to latest SVN and found that calls between misdn channel and sip devices now have one way audio:
* When I have in call with mISDN, I can't hear party from city. mISDN side hear me normal.
* When I call to SIP from SIP phone all is normal.


SVN revision 81326 works normal
SVN revision 81430 ????

I think that bug introduced in r81368.
Comments:By: Igor Goncharovsky (igorg) 2007-09-03 22:28:56

I have tested two more revisions:
SVN revision 81361 works normal
SVN revision 81434 (latest) have problem

I'll test 81368 and report.

By: Igor Goncharovsky (igorg) 2007-09-04 02:14:02

Confirmed: this bug introduced in r81368, it may also exist in 1.4 (science r81367).

By: crich (crich) 2007-09-05 04:39:00

Does it happen on inbound or outbound calls? Can you please attach a misdn log with verbosity of 3.

By: Igor Goncharovsky (igorg) 2007-09-05 04:57:44

It is the same situation on inbound and outbound calls.
mISDN log attached for both incoming and outgoing.

By: crich (crich) 2007-09-05 06:15:51

when i'm back in the office i'll check that.. i'll be back tommorrow or friday.

By: crich (crich) 2007-09-06 10:27:41

I tried with Asterisk 1.4 and i could successfully make inbound and outbound calls with SIP and ISDN. Unfortunately asterisk-trunk seems not to work today, there's an undefined symbol or so..

Could you also try with 1.4 please.

btw. the logs look very normal..

By: Igor Goncharovsky (igorg) 2007-09-06 10:36:41

Ok, I'll install latest SVN 1.4 and try this. Also i'll make same logs for r81361, may be some difference in logs helps.

By: Igor Goncharovsky (igorg) 2007-09-06 23:09:28

Ok, latest really 1.4 works.

Latest trunk r81858 still have this issue.
I have attached misdn debug for r81361 that works normal.

By: crich (crich) 2007-09-10 11:12:38

I can confirm the problem happening in Trunk. Interestingly even the Alerting is not heared when i use a ISDN Telephone to call a SIP Phone..

I have no idea yet where this comes from.

By: Juan Carlos Valero (eb3dgz) 2007-09-18 04:29:20

I'm affecting with the same bug, Asterisk 1.4.11 /mISDN 1.1.5. If I put an outgoing call all is OK, but in incoming calls there are one-way audio (incoming audio channel muted, outgoing audio channel is OK). Any solution for this ?

By: crich (crich) 2007-09-19 03:03:58


i've tried with latest 1.4 from svn, which works both with incoming and outgoing calls from and to a SIP Phone with fullduplex audio.

Can you please attach a trace of your "one way audio" problem.

By: Juan Carlos Valero (eb3dgz) 2007-09-19 08:24:25

I upload a misdn set debug 4 file (named misdn-one-audio-incoming.txt) a few minutes ago.

By: Juan Carlos Valero (eb3dgz) 2007-09-21 05:13:19

A new data:

If a incoming call has no audio, transfer this call to another phone via ATXFER reestablish the audio.

By: rosa (rosa) 2007-10-31 16:02:03

Well we stil have this problems with all the version of Asterisk on 1.4 including the svn versions and it seems does't happen on 1.2

In all the cases that I've seen 3 at the moment, the ISDNs are point-multipoint.
On 1.4 with point-to-point we don't see this issue.
I hope this information could be interesting to resolv this bug.

If you need more information please, ask for.


By: Igor Goncharovsky (igorg) 2007-11-01 00:58:58

Now I have time to test. I've download latest trunk and make changes to revert back most of changes (http://svn.digium.com/view/asterisk/trunk/channels/chan_misdn.c?r1=79841&r2=81368), introduced in r81368. Now I have sound in both way. I'll try to get what exactly change broke sound.

Patch uploaded.

By: Igor Goncharovsky (igorg) 2007-11-01 05:40:51

Ok, I find one string from 81368 that cause this bug. Patch attached.

By: rosa (rosa) 2007-11-01 08:05:21

Thanks IgorG! I'll test the patch on Monday and I'll comment the results, I hope works success.

By: Igor Goncharovsky (igorg) 2007-11-01 08:22:24

rosa, this is patch for SVN trunk. 1.4 have this string. This issue not affect 1.4 branch, only trunk.

By: Juan Carlos Valero (eb3dgz) 2007-11-01 14:14:07

IgorG, I have a system affected not SVN. In 1.4.11 and 1.4.12 is the one-way audio issue. Can be applied this patch to 1.4 branch ?

By: Igor Goncharovsky (igorg) 2007-11-01 21:43:26

No, I look yesterday for 1.4 branch - it already include string from patch. I've recomended to search revision of 1.4 branch that break sound for you and post here or as different bug report.

By: Igor Goncharovsky (igorg) 2007-11-16 02:58:45.000-0600

crich, ping. Can you see to latest patch?

By: crich (crich) 2007-11-16 03:54:18.000-0600

Is it just necessary to apply the patch -2 or do we need to remove the FD/select stuff too ?

By: crich (crich) 2007-11-16 04:04:01.000-0600

obviously patch-2 seems to be sufficient, just tested and works.

By: Digium Subversion (svnbot) 2007-11-16 04:05:02.000-0600

Repository: asterisk
Revision: 89321

U   trunk/channels/chan_misdn.c

r89321 | crichter | 2007-11-16 04:05:00 -0600 (Fri, 16 Nov 2007) | 1 line

fixed ASTERISK-10222, about one way audio. thanks IgorG again.

By: Igor Goncharovsky (igorg) 2007-11-16 04:06:31.000-0600

Only misdnoneway-87971-2.patch patch. I think this line was deleted by accident in 81368. I using this patch for two weeks and have no problem with mISDN.

By: crich (crich) 2007-11-16 04:10:14.000-0600

resolved in -r89321 thanks IgorG for finding this!