[asterisk-bugs] [Asterisk 0016747]: Caller ID info is destroyed after FXS channel is ringed

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Apr 6 13:53:36 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16747 
====================================================================== 
Reported By:                viniciusfontes
Assigned To:                rmudgett
====================================================================== 
Project:                    Asterisk
Issue ID:                   16747
Category:                   Channels/chan_dahdi
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Target Version:             1.6.2.8
Asterisk Version:           SVN 
JIRA:                       SWP-836 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-02-01 13:18 CST
Last Modified:              2010-04-06 13:53 CDT
====================================================================== 
Summary:                    Caller ID info is destroyed after FXS channel is
ringed
Description: 
This is just after Asterisk is started:

pabx*CLI> dahdi show channel 5
Channel: 5
File Descriptor: 24
Span: 2
Extension: 
Dialing: no
Context: ddd
Caller ID: 7025
Calling TON: 0
Caller ID name: ALMOX
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: yes
    Busy Count: 3
    Busy Pattern: 0,0
TDD: no
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
DND: no
Echo Cancellation:
	256 taps
	(unless TDM bridged) currently OFF
Wait for dialtone: 0ms
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Onhook


Then after a call is made to that channel:

pabx*CLI> dahdi show channel 5
Channel: 5
File Descriptor: 24
Span: 2I> 
Extension: 
Dialing: no
Context: ddd
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: noI> 
Busy Detection: yes
    Busy Count: 3
    Busy Pattern: 0,0
TDD: noI> 
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
DND: noI> 
Echo Cancellation:
pabx*CLI256 taps
pabx*CLI(unless TDM bridged) currently OFF
Wait for dialtone: 0ms
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Onhook


Notice how both CID name and number are gone.

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0015985 CallerID problem
related to          0015883 NewChannel AMI event on DAHDI (or Zapte...
has duplicate       0016968 [patch] Callerid  Channel dahdi port FX...
====================================================================== 

---------------------------------------------------------------------- 
 (0120178) svnbot (reporter) - 2010-04-06 13:53
 https://issues.asterisk.org/view.php?id=16747#c120178 
---------------------------------------------------------------------- 
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 https://issues.asterisk.org/view.php?id=16968)
Reported by: grecco
Patches:
      issue16968.patch uploaded by rmudgett (license 664)

(closes issue https://issues.asterisk.org/view.php?id=16747)
Reported by: viniciusfontes

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-06 13:53 svnbot         Checkin                                      
2010-04-06 13:53 svnbot         Note Added: 0120178                          
======================================================================




More information about the asterisk-bugs mailing list