CallerID on Indian PSTN is not working

Hi,

I am using asterisknow 1.5.0 (freepbx 2.6.0.1) and Wildcard TDM410P card. Everything is working fine except the caller ID of incoming call from PSTN line. The phone display is showing "Unknown" when there is an incoming call. I think the same problem listed here:  https://issues.asterisk.org/view.php?id=6683

There is one patch on this link but i don’t know how to apply patch on asterisknow. Is this patch will resolve my issue? Kindly help me to fix this issue.

My log file showing this while an incoming call on PSTN

[Jan 5 18:14:59] DEBUG[9938] dsp.c: dsp busy pattern set to 0,0
[Jan 5 18:14:59] VERBOSE[9986] logger.c: – Starting simple switch on ‘DAHDI/1-1’
[Jan 5 18:15:01] NOTICE[9986] chan_dahdi.c: Got event 18 (Ring Begin)…
[Jan 5 18:15:02] NOTICE[9986] chan_dahdi.c: Got event 2 (Ring/Answered)…
[Jan 5 18:15:04] NOTICE[9986] chan_dahdi.c: Got event 18 (Ring Begin)…
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Executing [[email protected]:1] Set(“DAHDI/1-1”, “__FROM_DID=s”) in new stack
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Executing [[email protected]:2] Gosub(“DAHDI/1-1”, “app-blacklist-check|s|1”) in new stack
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Executing [[email protected]:1] LookupBlacklist(“DAHDI/1-1”, “”) in new stack
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Executing [[email protected]:2] GotoIf(“DAHDI/1-1”, “0?blacklisted”) in new stack
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Executing [[email protected]:3] Set(“DAHDI/1-1”, “CALLED_BLACKLIST=1”) in new stack
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Executing [[email protected]:4] Return(“DAHDI/1-1”, “”) in new stack
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Executing [[email protected]:3] ExecIf(“DAHDI/1-1”, “1 |Set|CALLERID(name)=”) in new stack
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Executing [[email protected]:4] Set(“DAHDI/1-1”, “FAX_RX=disabled”) in new stack
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Executing [[email protected]:5] Set(“DAHDI/1-1”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Executing [[email protected]:6] SetCallerPres(“DAHDI/1-1”, “allowed_not_screened”) in new stack
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Executing [[email protected]:7] Goto(“DAHDI/1-1”, “from-did-direct|104|1”) in new stack
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Goto (from-did-direct,104,1)
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Executing [[email protected]:1] Macro(“DAHDI/1-1”, “exten-vm|104|104”) in new stack
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Executing [[email protected]:1] Macro(“DAHDI/1-1”, “user-callerid”) in new stack
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Executing [[email protected]:1] Set(“DAHDI/1-1”, “AMPUSER=”) in new stack
[Jan 5 18:15:04] DEBUG[9986] app_macro.c: Executed application: Set
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Executing [[email protected]:2] GotoIf(“DAHDI/1-1”, “0?report”) in new stack
[Jan 5 18:15:04] DEBUG[9986] app_macro.c: Executed application: GotoIf
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Executing [[email protected]:3] ExecIf(“DAHDI/1-1”, “1|Set|REALCALLERIDNUM=”) in new stack
[Jan 5 18:15:04] DEBUG[9986] app_macro.c: Executed application: ExecIf
[Jan 5 18:15:04] DEBUG[9986] app_macro.c: Last app: Set|REALCALLERIDNUM=
[Jan 5 18:15:04] DEBUG[9986] func_db.c: DB: DEVICE//user not found in database.
[Jan 5 18:15:04] VERBOSE[9986] logger.c: – Executing [[email protected]:4] Set(“DAHDI/1-1”, “AMPUSER=”) in new stack
[Jan 5 18:15:04] DEBUG[9986] app_macro.c: Executed application: Set

And in asterisk console

– Starting simple switch on ‘DAHDI/1-1’
– Executing [[email protected]:1] Set(“DAHDI/1-1”, “__FROM_DID=s”) in new stack
– Executing [[email protected]:2] Gosub(“DAHDI/1-1”, “app-blacklist-check|s|1”) in new stack
– Executing [[email protected]:1] LookupBlacklist(“DAHDI/1-1”, “”) in new stack
– Executing [[email protected]:2] GotoIf(“DAHDI/1-1”, “0?blacklisted”) in new stack
– Executing [[email protected]:3] Set(“DAHDI/1-1”, “CALLED_BLACKLIST=1”) in new stack
– Executing [[email protected]:4] Return(“DAHDI/1-1”, “”) in new stack
– Executing [[email protected]:3] ExecIf(“DAHDI/1-1”, “1 |Set|CALLERID(name)=”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/1-1”, “FAX_RX=disabled”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/1-1”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
– Executing [[email protected]:6] SetCallerPres(“DAHDI/1-1”, “allowed_not_screened”) in new stack
– Executing [[email protected]:7] Goto(“DAHDI/1-1”, “from-did-direct|104|1”) in new stack
– Goto (from-did-direct,104,1)
– Executing [[email protected]:1] Macro(“DAHDI/1-1”, “exten-vm|104|104”) in new stack
– Executing [[email protected]:1] Macro(“DAHDI/1-1”, “user-callerid”) in new stack
– Executing [[email protected]:1] Set(“DAHDI/1-1”, “AMPUSER=”) in new stack
– Executing [[email protected]:2] GotoIf(“DAHDI/1-1”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“DAHDI/1-1”, “1|Set|REALCALLERIDNUM=”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/1-1”, “AMPUSER=”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/1-1”, “AMPUSERCIDNAME=”) in new stack
– Executing [[email protected]:6] GotoIf(“DAHDI/1-1”, “1?report”) in new stack
– Goto (macro-user-callerid,s,10)
– Executing [[email protected]:10] GotoIf(“DAHDI/1-1”, “0?continue”) in new stack
– Executing [[email protected]:11] Set(“DAHDI/1-1”, “__TTL=64”) in new stack
– Executing [[email protected]:12] GotoIf(“DAHDI/1-1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [[email protected]:19] NoOp(“DAHDI/1-1”, “Using CallerID “” <>”) in new stack

My zapata.conf is like this

[channels]
language=en
hanguponpolarityswitch=yes
answeronpolarityswitch=yes
busydetect=yes
busycount=3
callprogress=yes
callerid=asreceived
hidecallerid=no
immediate=yes
cidsignalling=dtmf
;cidsignalling=bell
;cidsignalling=v23
;cidstart=polarity
cidstart=polarity_in
;cidstart=ring
useincomingcalleridonzaptransfer=yes
; include dahdi extensions defined in FreePBX
#include chan_dahdi_additional.conf

; XTDM20B Port #1,2 plugged into PSTN
;AMPLABEL:Channel %c - Button %n
context=from-pstn
signalling=fxs_ks
faxdetect=incoming
usecallerid=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
group=0
channel=1-2

Please Help me…

Thanks,
Aruns

hi:
make sure, the pstn has cid featured.