[Home]

Summary:ASTERISK-15751: [patch] Callerid Channel dahdi port FXS are empty after the first hangup.
Reporter:grecco (grecco)Labels:
Date Opened:2010-03-05 06:45:25.000-0600Date Closed:2010-04-30 14:48:42
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_dahdi
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) chan_dahdi.conf
( 1) console_debug.txt
( 2) dahdidg.conf
( 3) issue16968.patch
Description:In dahdi channel ports FXS, when the first hangup, the callerid and calleridname are empty.

Checking on TDM400P cards and also channel bank TDMOE. Asterisk version 1.6.2.*.

asterisk-1.6.2.6-rc1;
dahdi-2.2.1;

****** ADDITIONAL INFORMATION ******

Situation occur before the first hangup:

*CLI> dahdi show channel 32
Channel: 32
File Descriptor: 45
Span: 2
Extension:
Dialing: no
Context: celular
Caller ID: 255
Calling TON: 0
Caller ID name: Josiane
Mailbox: none
Destroy: 0
InAlarm: 0
Signalling Type: FXO Kewlstart
Radio: 0
Owner: <None>
Real: <None>
Callwait: <None>
Threeway: <None>
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Busy Detection: no
TDD: no
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
DND: no
Echo Cancellation:
       128 taps
       currently OFF
Wait for dialtone: 0ms
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Onhook

Information soon after the first hangup:

*CLI>
*CLI>
*CLI>     -- Starting simple switch on 'DAHDI/32-1'
   -- Hungup 'DAHDI/32-1'

*CLI> dahdi show channel 32
Channel: 32
File Descriptor: 45
Span: 2
Extension:
Dialing: no
Context: celular
Caller ID:
Calling TON: 0
Caller ID name:
Mailbox: none
Destroy: 0
InAlarm: 0
Signalling Type: FXO Kewlstart
Radio: 0
Owner: <None>
Real: <None>
Callwait: <None>
Threeway: <None>
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Busy Detection: no
TDD: no
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
DND: no
Echo Cancellation:
       128 taps
       currently OFF
Wait for dialtone: 0ms
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Onhook
*CLI>

Comments:By: Leif Madsen (lmadsen) 2010-03-08 09:29:22.000-0600

Huh, well isn't that interesting :)

Would it be possible for you to provide console output with debug level logging when this is occurring? I'm not sure if it will give us anything useful, but it might be good for attempting to reproduce the issue, etc...

Providing your configuration files as well might be useful.

Thanks!

By: evandro (evandro) 2010-03-08 15:37:35.000-0600

I have the same problem with asterisk 1.6.2.4, dahdi-linux-complete-2.2.1+2.2.1 and a TDM2400P card. When module chan_dahdi.so is reloaded it recover the information.
The console debug and dahdi cofig files is attached.

Hope it helps.

By: Russell Bryant (russell) 2010-03-15 10:42:22

I have marked this issue as related to a change that might be related to this problem.

By: Digium Subversion (svnbot) 2010-04-06 13:53:33

Repository: asterisk
Revision: 256368

U   branches/1.6.2/channels/chan_dahdi.c

------------------------------------------------------------------------
r256368 | rmudgett | 2010-04-06 13:53:32 -0500 (Tue, 06 Apr 2010) | 19 lines

CallerID channel DAHDI port FXS are empty after the first call.

The bug is exposed if MFC/R2 support is built into asterisk (i.e.,
openr2.h is present in the include path).  Code that unconditionally
clears the CallerID name and number is included.

Also fixed a malformed if test in mkintf() added by issue 15883.
Converted the if statement to a switch statement for clarity.

Regression of the issue 15883 fix.

(closes issue ASTERISK-15751)
Reported by: grecco
Patches:
     issue16968.patch uploaded by rmudgett (license 664)

(closes issue ASTERISK-15557)
Reported by: viniciusfontes

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=256368