Summary: | ASTERISK-15557: Caller ID info is destroyed after FXS channel is ringed | ||
Reporter: | viniciusfontes (viniciusfontes) | Labels: | |
Date Opened: | 2010-02-01 13:18:52.000-0600 | Date Closed: | 2010-04-06 13:53:36 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_dahdi |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
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. ****** ADDITIONAL INFORMATION ****** Here's the complete chan_dahdi.conf: pabx:/etc/asterisk# cat chan_dahdi.conf [channels] ;context=entrada-e1 ;language=pt_BR ;group=1 ;switchtype=euroisdn ;pridialplan=unknown ;prilocaldialplan=unknown ;priindication=outofband ;signalling=pri_cpe ;echocancel=256 ;txgain=0.0 ;rxgain=0.0 ;echocancelwhenbridged=no ;relaxdtmf=yes ;channel => 1-15 ;channel => 17-31 context=celf language=pt_BR group=2 busydetect=yes busycount=4 relaxdtmf=yes echocancel=256 echocancelwhenbridged=no usecallerid=no callerid=CELF signalling=fxs_ks rxgain=6.0 txgain=0.0 answeronpolarityswitch=yes hanguponpolarityswitch=yes usecallerid=yes cidsignalling=bell cidstart=ring channel => 1-2 context=entrada-numantigo language=pt_BR group=3 busydetect=yes busycount=3 relaxdtmf=yes echocancel=256 echocancelwhenbridged=no callerid=EXTERNA <0000000000> signalling=fxs_ks rxgain=0.0 txgain=0.0 channel => 3 context=interno echocancel=256 echocancelwhenbridged=no usecallerid=yes cidsignalling=dtmf cidstart=ring threewaycalling=yes callwaiting=no transfer=yes relaxdtmf=no txgain=0.0 rxgain=0.0 language=pt_BR cancallforward=yes signalling=fxo_ks group=0 callgroup=1 pickupgroup=1 ;Cadencias padrao cadence=125,125,2000,-4000 cadence=250,250,500,1000,250,250,500,-4000 cadence=125,125,125,125,125,-4000 cadence=1000,500,2500,-5000 ;Chamada interna cadence=500,300,500,3500,500,300,500,-4000 ;Ring continuo cadence=10000,1,60000,1 callerid=ALMOX <7025> context=ddd callwaiting=no callgroup=1 pickupgroup=1 channel => 5 callerid=FAX <7010> context=ddd-fax callwaiting=no callgroup=1 pickupgroup=1 channel => 6 callerid=DANI <7011> context=ddi callwaiting=no callgroup=1 pickupgroup=1 channel => 7 callerid=EVERTON <7014> context=ddi callwaiting=no callgroup=1 pickupgroup=1 channel => 8 ;callerid=RICARDO <7016> ;context=ddi ;callwaiting=no ;callgroup=1 ;pickupgroup=1 ;channel => 9 callerid=VINICIUS VIEIRA <7018> context=ddi callwaiting=no callgroup=1 pickupgroup=1 channel => 10 ;callerid=ALMOX <7025> ;context=ddi ;callwaiting=no ;callgroup=1 ;pickupgroup=1 ;channel => 11 callerid=SALA/COZINHA <7028> context=ddi callwaiting=no callgroup=1 pickupgroup=1 channel => 12 callerid=QUARTO CLECI <7030> context=ddi callwaiting=no callgroup=1 pickupgroup=1 channel => 13 callerid=FABIO <7055> context=ddi callwaiting=no callgroup=1 pickupgroup=1 channel => 14 callerid=SALA DE REUNIAO <7059> context=interno callwaiting=no callgroup=1 pickupgroup=1 channel => 15 callerid=7002 <7002> context=interno callwaiting=no callgroup=1 pickupgroup=1 channel => 16 callerid=COZINHA <7066> context=ddi callwaiting=no callgroup=1 pickupgroup=1 channel => 17 callerid=S. FIO RECEPCAO <7029> context=ddi callwaiting=no callgroup=1 pickupgroup=1 channel => 18 | ||
Comments: | By: Digium Subversion (svnbot) 2010-04-06 13:53:35 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 |