[asterisk-users] CallerID on Indian PSTN is not working.

Arun Sasidhar arun.sasidhar at cabotsolutions.com
Tue Jan 5 07:24:18 CST 2010


Hi,

    I am using asterisknow 1.5.0 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 [s at from-pstn:1]
Set("DAHDI/1-1", "__FROM_DID=s") in new stack
[Jan  5 18:15:04] VERBOSE[9986] logger.c:     -- Executing [s at from-pstn:2]
Gosub("DAHDI/1-1", "app-blacklist-check|s|1") in new stack
[Jan  5 18:15:04] VERBOSE[9986] logger.c:     -- Executing
[s at app-blacklist-check:1] LookupBlacklist("DAHDI/1-1", "") in new stack
[Jan  5 18:15:04] VERBOSE[9986] logger.c:     -- Executing
[s at app-blacklist-check:2] GotoIf("DAHDI/1-1", "0?blacklisted") in new stack
[Jan  5 18:15:04] VERBOSE[9986] logger.c:     -- Executing
[s at app-blacklist-check:3] Set("DAHDI/1-1", "CALLED_BLACKLIST=1") in new
stack
[Jan  5 18:15:04] VERBOSE[9986] logger.c:     -- Executing
[s at app-blacklist-check:4] Return("DAHDI/1-1", "") in new stack
[Jan  5 18:15:04] VERBOSE[9986] logger.c:     -- Executing [s at from-pstn:3]
ExecIf("DAHDI/1-1", "1 |Set|CALLERID(name)=") in new stack
[Jan  5 18:15:04] VERBOSE[9986] logger.c:     -- Executing [s at from-pstn:4]
Set("DAHDI/1-1", "FAX_RX=disabled") in new stack
[Jan  5 18:15:04] VERBOSE[9986] logger.c:     -- Executing [s at from-pstn:5]
Set("DAHDI/1-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
[Jan  5 18:15:04] VERBOSE[9986] logger.c:     -- Executing [s at from-pstn:6]
SetCallerPres("DAHDI/1-1", "allowed_not_screened") in new stack
[Jan  5 18:15:04] VERBOSE[9986] logger.c:     -- Executing [s at from-pstn: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
[104 at from-did-direct:1] Macro("DAHDI/1-1", "exten-vm|104|104") in new stack
[Jan  5 18:15:04] VERBOSE[9986] logger.c:     -- Executing [s at macro-exten-vm:1]
Macro("DAHDI/1-1", "user-callerid") in new stack
[Jan  5 18:15:04] VERBOSE[9986] logger.c:     -- Executing
[s at macro-user-callerid: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
[s at macro-user-callerid: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
[s at macro-user-callerid: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
[s at macro-user-callerid: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 [s at from-pstn:1] Set("DAHDI/1-1", "__FROM_DID=s") in new
stack
    -- Executing [s at from-pstn:2] Gosub("DAHDI/1-1",
"app-blacklist-check|s|1") in new stack
    -- Executing [s at app-blacklist-check:1] LookupBlacklist("DAHDI/1-1", "")
in new stack
    -- Executing [s at app-blacklist-check:2] GotoIf("DAHDI/1-1",
"0?blacklisted") in new stack
    -- Executing [s at app-blacklist-check:3] Set("DAHDI/1-1",
"CALLED_BLACKLIST=1") in new stack
    -- Executing [s at app-blacklist-check:4] Return("DAHDI/1-1", "") in new
stack
    -- Executing [s at from-pstn:3] ExecIf("DAHDI/1-1", "1
|Set|CALLERID(name)=") in new stack
    -- Executing [s at from-pstn:4] Set("DAHDI/1-1", "FAX_RX=disabled") in new
stack
    -- Executing [s at from-pstn:5] Set("DAHDI/1-1",
"__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [s at from-pstn:6] SetCallerPres("DAHDI/1-1",
"allowed_not_screened") in new stack
    -- Executing [s at from-pstn:7] Goto("DAHDI/1-1", "from-did-direct|104|1")
in new stack
    -- Goto (from-did-direct,104,1)
    -- Executing [104 at from-did-direct:1] Macro("DAHDI/1-1",
"exten-vm|104|104") in new stack
    -- Executing [s at macro-exten-vm:1] Macro("DAHDI/1-1", "user-callerid") in
new stack
    -- Executing [s at macro-user-callerid:1] Set("DAHDI/1-1", "AMPUSER=") in
new stack
    -- Executing [s at macro-user-callerid:2] GotoIf("DAHDI/1-1", "0?report")
in new stack
    -- Executing [s at macro-user-callerid:3] ExecIf("DAHDI/1-1",
"1|Set|REALCALLERIDNUM=") in new stack
    -- Executing [s at macro-user-callerid:4] Set("DAHDI/1-1", "AMPUSER=") in
new stack
    -- Executing [s at macro-user-callerid:5] Set("DAHDI/1-1",
"AMPUSERCIDNAME=") in new stack
    -- Executing [s at macro-user-callerid:6] GotoIf("DAHDI/1-1", "1?report")
in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s at macro-user-callerid:10] GotoIf("DAHDI/1-1",
"0?continue") in new stack
    -- Executing [s at macro-user-callerid:11] Set("DAHDI/1-1", "__TTL=64") in
new stack
    -- Executing [s at macro-user-callerid:12] GotoIf("DAHDI/1-1",
"1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s at macro-user-callerid: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100105/40fc5609/attachment.htm 


More information about the asterisk-users mailing list