Hi,
I am in Taiwan and I have A400P installed in Elastix 1.6, I can make out-going call to PSTN and receive call from PSTN correctly.
But the in-comming calls from PSTN always show "Unknown" on my sip phone! When I view the log I found something funny, it seems like Elastix can get the caller ID correctly, then it disappears, never passed to the phone!
I don't know if this is caused by wrong configuration of A400P or something else.
I am posting my chan_dahdi.conf and log file up, any help will be very appreciated.
chan_dahdi.conf
[trunkgroups]
[channels]
context=from-pstn
context=from-zaptel
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
usecallerid=yes
useincommingcalleridonzaptransfer=yes
useincomingcalleridondahditransfer=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
faxdetect=incoming
lechotraining=800
rxgain=9.0
txgain=5.0
callgroup=1
pickupgroup=1
callerid=asreceived
usecallerid=yes
cidsignalling=v23
hideallerid=no
cidstart=polarity
busydetect=yes
busycount=3
;Uncomment these lines if you have problems with the disconection of your analog lines
;busydetect=yes
;busycount=3
immediate=no
#include dahdi-channels.conf
#include chan_dahdi_additional.conf
Asterisk Log
Aug 7 16:10:08 VERBOSE [2867] logger.c: == Starting post polarity CID detection on channel 1
Aug 7 16:10:08 VERBOSE [3018] logger.c: -- Starting simple switch on 'DAHDI/1-1'
Aug 7 16:10:09 NOTICE [3018] chan_dahdi.c: CallerID number:
092*******(
It's my phone number here!), name: (null), flags=4
Aug 7 16:10:11 WARNING [3018] chan_dahdi.c: CID timed out waiting for ring. Exiting simple switch
Aug 7 16:10:11 VERBOSE [3018] logger.c: -- Hungup 'DAHDI/1-1'
Aug 7 16:10:13 VERBOSE [2867] logger.c: == Starting post polarity CID detection on channel 1
Aug 7 16:10:13 VERBOSE [3019] logger.c: -- Starting simple switch on 'DAHDI/1-1'
Aug 7 16:10:14 NOTICE [3019] chan_dahdi.c: Got event 2 (Ring/Answered)...
Aug 7 16:10:16 DEBUG [3019] chan_dahdi.c: Ignoring Polarity switch to IDLE on channel 1, state 9
Aug 7 16:10:16 DEBUG [3019] chan_dahdi.c: Polarity Reversal event occured - DEBUG 2: channel 1, state 9, pol= 0, aonp= 0, honp= 0, pdelay= 600, tv= 1268362119
Aug 7 16:10:16 WARNING [3019] chan_dahdi.c: CID timed out waiting for ring. Exiting simple switch
Aug 7 16:10:16 VERBOSE [3019] logger.c: -- Hungup 'DAHDI/1-1'
Aug 7 16:10:19 VERBOSE [2867] logger.c: == Starting post polarity CID detection on channel 1
Aug 7 16:10:19 VERBOSE [3020] logger.c: -- Starting simple switch on 'DAHDI/1-1'
Aug 7 16:10:19 NOTICE [3020] chan_dahdi.c: Got event 18 (Ring Begin)...
Aug 7 16:10:20 VERBOSE [3020] logger.c: -- Executing [s@from-pstn:1] Set("DAHDI/1-1", "__FROM_DID=s") in new stack
Best regards
Michael Lu
i] Last edited by michael880308 at 2010-8-11 17:51 [/i