keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about A400/800/1200 Analog Interface Card

Elastix Can't Send Caller ID to Client

13 years 8 months ago #5989 by michael880308
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
13 years 8 months ago #5990 by lisa.gao
hi,
First you should confirm this:
which is the format of the caller id, dtmf or fsk?
If the format of caller id is dtmf ,you should set cidsignalling=dtmf;
If the format of caller id is fsk ,you should set cidsignalling=v23

13 years 8 months ago #5991 by james.zhu
hi:
please try:
cidsignalling=v23; if you are using fsk, or try bell
hideallerid=no
cidstart=polarity; try to set it to ring

13 years 8 months ago #5993 by michael880308
Hi
First of all, thanks for your helps, I tried to change the cidsignalling=v23 to dtmt, also the cidstart=polarity to ring, but none of them seems to work, this is what the asterisk log says when I made a call to Elastix after I made the changes and reboot it.
Aug 12 22:46:18 VERBOSE [3022] logger.c: -- Starting simple switch on 'DAHDI/1-1'
Aug 12 22:46:20 NOTICE [3022] chan_dahdi.c: Got event 17 (Polarity Reversal)...
Aug 12 22:46:20 NOTICE [3022] chan_dahdi.c: Got event 18 (Ring Begin)...
Aug 12 22:46:21 NOTICE [3022] chan_dahdi.c: Got event 2 (Ring/Answered)...
Aug 12 22:46:21 VERBOSE [3022] logger.c: -- Executing [s@from-pstn:1] Set("DAHDI/1-1", "__FROM_DID=s") in new stack
Aug 12 22:46:21 VERBOSE [3022] logger.c: -- Executing [s@from-pstn:2] Gosub("DAHDI/1-1", "app-blacklist-check|s|1") in new stack
Aug 12 22:46:21 VERBOSE [3022] logger.c: -- Executing [s@app-blacklist-check:1] LookupBlacklist("DAHDI/1-1", "") in new stack
Aug 12 22:46:21 WARNING [3022] app_lookupblacklist.c: LookupBlacklist is deprecated. Please use ${BLACKLIST()} instead.
Aug 12 22:46:21 VERBOSE [3022] logger.c: -- Executing [s@app-blacklist-check:2] GotoIf("DAHDI/1-1", "0?blacklisted") in new stack
Aug 12 22:46:21 VERBOSE [3022] logger.c: -- Executing [s@app-blacklist-check:3] Return("DAHDI/1-1", "") in new stack
Aug 12 22:46:21 VERBOSE [3022] logger.c: -- Executing [s@from-pstn:3] ExecIf("DAHDI/1-1", "1 |Set|CALLERID(name)=") in new stack
Aug 12 22:46:21 VERBOSE [3022] logger.c: -- Executing [s@from-pstn:4] Set("DAHDI/1-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
Aug 12 22:46:21 VERBOSE [3022] logger.c: -- Executing [s@from-pstn:5] SetCallerPres("DAHDI/1-1", "allowed_not_screened") in new stack
Aug 12 22:46:21 VERBOSE [3022] logger.c: -- Executing [s@from-pstn:6] Goto("DAHDI/1-1", "ivr-3|s|1") in new stack
Aug 12 22:46:21 VERBOSE [3022] logger.c: -- Goto (ivr-3,s,1)
Aug 12 22:46:21 VERBOSE [3022] logger.c: -- Executing [s@ivr-3:1] Set("DAHDI/1-1", "MSG=custom/MainWelcome") in new stack
Aug 12 22:46:21 VERBOSE [3022] logger.c: -- Executing [s@ivr-3:2] Set("DAHDI/1-1", "LOOPCOUNT=0") in new stack
Aug 12 22:46:21 VERBOSE [3022] logger.c: -- Executing [s@ivr-3:3] Set("DAHDI/1-1", "__DIR-CONTEXT=default") in new stack
Aug 12 22:46:21 VERBOSE [3022] logger.c: -- Executing [s@ivr-3:4] Set("DAHDI/1-1", "_IVR_CONTEXT_ivr-3=") in new stack
Aug 12 22:46:21 VERBOSE [3022] logger.c: -- Executing [s@ivr-3:5] Set("DAHDI/1-1", "_IVR_CONTEXT=ivr-3") in new stack
Aug 12 22:46:21 VERBOSE [3022] logger.c: -- Executing [s@ivr-3:6] GotoIf("DAHDI/1-1", "0?begin") in new stack
Aug 12 22:46:21 VERBOSE [3022] logger.c: -- Executing [s@ivr-3:7] Answer("DAHDI/1-1", "") in new stack
Aug 12 22:46:21 DEBUG [3022] chan_dahdi.c: Took DAHDI/1-1 off hook
This time, I didn't even see my phone number in the log, it seems like the setting polarity and v23 is right(Line 2 22:46:20), but it just can't passed to the client, any ideas?
Best regards
Michael Lu
13 years 8 months ago #5996 by lisa.gao
Please email me your SSH, I will check for you. And please add my MSN: This email address is being protected from spambots. You need JavaScript enabled to view it.

13 years 8 months ago #5997 by james.zhu
hi:
maybe you have to recompile the chan_dahdi.conf.

Time to create page: 0.040 seconds
Powered by Kunena Forum