[asterisk-r2] CID reflect with two leading zero for national call

gil pajaron datelink118 at yahoo.com
Tue Sep 7 07:20:15 CDT 2010


elastix*CLI> core show version
Asterisk 1.4.24 built by root*******on a i686 
running Linux on 2015-03-12 18:14:36 UTC

elastix*CLI> dahdi show status
Description                              Alarms     IRQ        bpviol     CRC4
T2XXP (PCI) Card 0 Span 1                OK         0          0          0
T2XXP (PCI) Card 0 Span 2                OK         0          0          0


on /etc/dahdi/system.conf
loadzone = us
span=1,0,0,cas,hdb3
cas=1-15:1101
dchan=16
cas=17-31:1101
loadzone = us


dahdi-channels.conf
group=2
context=from-internal
signalling=mfcr2
mfcr2_variant=ph
mfcr2_get_ani_first=no
mfcr2_max_ani=18
mfcr2_max_dnis=20
mfcr2_category=national_subscriber
; The next three params are for debuging, you can disable when in production
mfcr2_logdir=span2
mfcr2_call_files=yes
mfcr2_logging=all

channel => 32-46
channel => 48-62

Asterisk openr2 debug:

[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - Attempting to make call 
(ANI=0883879900, DNIS=09165977886, category=National Subscriber)
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - Call started at Mon Aug 23 
21:56:12 2010 on chan 32 [openr2 version 1.2.0, revision (release)]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - CAS Tx >> [SEIZE] 0x00
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - CAS Raw Tx >> 0x01
[Aug 23 21:56:12] VERBOSE[4929] logger.c:     -- Called g2/09165977886
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: bits changed in chan 32
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - Bits changed from 0x08 to 
0x0C
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - CAS Rx << [SEIZE ACK] 0x0C
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending DNIS digit 0
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 0 [ON]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [ON]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 0 [OFF]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [OFF]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending category National 
Subscriber
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 1 [ON]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [ON]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 1 [OFF]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [OFF]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending DNIS digit 9
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 9 [ON]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - Group A DNIS request 
handled
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [ON]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 9 [OFF]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [OFF]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending DNIS digit 1
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 1 [ON]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - Group A DNIS request 
handled
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [ON]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 1 [OFF]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [OFF]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending DNIS digit 6
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 6 [ON]
[Aug 23 21:56:12] DEBUG[4929] chan_dahdi.c: Chan 32 - Group A DNIS request 
handled
[Aug 23 21:56:13] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [ON]
[Aug 23 21:56:13] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 6 [OFF]
[Aug 23 21:56:13] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [OFF]
[Aug 23 21:56:13] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending DNIS digit 5
[Aug 23 21:56:13] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 5 [ON]
[Aug 23 21:56:13] DEBUG[4929] chan_dahdi.c: Chan 32 - Group A DNIS request 
handled
[Aug 23 21:56:13] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [ON]
[Aug 23 21:56:13] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 5 [OFF]
[Aug 23 21:56:13] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [OFF]
[Aug 23 21:56:13] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending DNIS digit 9
[Aug 23 21:56:13] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 9 [ON]
[Aug 23 21:56:13] DEBUG[4929] chan_dahdi.c: Chan 32 - Group A DNIS request 
handled
[Aug 23 21:56:13] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [ON]
[Aug 23 21:56:13] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 9 [OFF]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [OFF]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending DNIS digit 7
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 7 [ON]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - Group A DNIS request 
handled
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [ON]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 7 [OFF]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [OFF]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending DNIS digit 7
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 7 [ON]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - Group A DNIS request 
handled
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [ON]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 7 [OFF]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [OFF]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending DNIS digit 8
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 8 [ON]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - Group A DNIS request 
handled
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [ON]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 8 [OFF]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [OFF]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending ANI digit 0
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 0 [ON]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [ON]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 0 [OFF]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [OFF]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending ANI digit 8
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 8 [ON]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [ON]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 8 [OFF]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [OFF]
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending ANI digit 8
[Aug 23 21:56:14] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 8 [ON]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [ON]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 8 [OFF]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [OFF]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending ANI digit 3
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 3 [ON]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [ON]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 3 [OFF]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [OFF]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending ANI digit 8
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 8 [ON]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [ON]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 8 [OFF]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [OFF]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending ANI digit 7
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 7 [ON]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [ON]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 7 [OFF]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [OFF]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending ANI digit 9
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 9 [ON]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [ON]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 9 [OFF]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [OFF]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending ANI digit 9
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 9 [ON]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [ON]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 9 [OFF]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [OFF]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending ANI digit 0
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 0 [ON]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [ON]
[Aug 23 21:56:15] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 0 [OFF]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [OFF]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending ANI digit 0
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 0 [ON]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [ON]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 0 [OFF]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 5 [OFF]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending more ANI 
unavailable
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> F [ON]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [ON]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> F [OFF]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [OFF]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending DNIS digit 8
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 8 [ON]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - Group A DNIS request 
handled
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [ON]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 8 [OFF]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [OFF]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending DNIS digit 6
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 6 [ON]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - Group A DNIS request 
handled
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [ON]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 6 [OFF]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 1 [OFF]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending unavailable DNIS 
signal
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> F [ON]
[Aug 23 21:56:16] DEBUG[4929] chan_dahdi.c: Chan 32 - Group A DNIS request 
handled
[Aug 23 21:56:24] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 3 [ON]
[Aug 23 21:56:24] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> F [OFF]
[Aug 23 21:56:24] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 3 [OFF]
[Aug 23 21:56:24] DEBUG[4929] chan_dahdi.c: Chan 32 - Sending category National 
Subscriber
[Aug 23 21:56:24] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 1 [ON]
[Aug 23 21:56:25] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 6 [ON]
[Aug 23 21:56:25] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Tx >> 1 [OFF]
[Aug 23 21:56:25] DEBUG[4929] chan_dahdi.c: Chan 32 - MF Rx << 6 [OFF]
[Aug 23 21:56:25] NOTICE[4929] chan_dahdi.c: MFC/R2 call has been accepted on 
chan 32
[Aug 23 21:56:25] NOTICE[4929] chan_dahdi.c: Call accepted on forward channel 32
[Aug 23 21:56:25] VERBOSE[4929] logger.c:     -- DAHDI/32-1 is ringing
[Aug 23 21:56:27] WARNING[4863] chan_sip.c: Maximum retries exceeded on 
transmission NTI0MDNiYTE0YTVhMDM0MGYxOTZmZjYyNGNlNzBmYWU. for seqno 2 (Critical 
Response) -- See doc/sip-retransmit.txt.
[Aug 23 21:56:33] DEBUG[4929] chan_dahdi.c: disconnecting MFC/R2 call on chan 32

here is my asterisk setup: asterisk =>r2=> alcatel-s12 = >r2=> Carrier

I'm using Xlite with stn number 3879900 and my CID set to 0883879900. here is my 
problem when i dialed long distance number
like mobile or landline, my CID reflect with two leading zero infron of it 
(00883879900). the normal should be olny one zero (0883879900). is there 
something I need to adjust on my openr2 config to fix this?  please advise.  



Thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-r2/attachments/20100907/4238e46b/attachment-0001.htm 


More information about the asterisk-r2 mailing list