[Asterisk-Users] AAH: DNID not set if caller suppresses CID?

Hans J. Martin hans at hako2006.de
Sun Mar 26 10:44:56 MST 2006


Hi,

using asterisk at home, with quadBri from junghanns.net I am facing a 
strange problem:
I have set incoming routes for some extension / DID:
[ext-did]
include => ext-did-custom
exten => 23,1,SetVar(FROM_DID=23)
exten => 23,2,Goto(ext-local,23,1)
exten => 57,1,SetVar(FROM_DID=57)
exten => 57,2,Goto(ext-local,57,1)
exten => 66,1,SetVar(FROM_DID=66)
exten => 66,2,Goto(ext-local,66,1)

If I call from external to my * with ext 57 eveything works as expected, 
as long as I don't suppress my clid. Doing this, my call will not be 
routed to ext 57, but instead to the 'default' extension.
Asterisk full log with clid:

Mar 26 18:02:21 DEBUG[3582] chan_sip.c: Auto destroying call 
'zukv2Ul4VuP5lU1w at 192.168.149.123'
Mar 26 18:02:32 VERBOSE[3572] logger.c:     -- Accepting voice call from 
'177XXXX' to '57' on channel 0/1, span 3
Mar 26 18:02:32 DEBUG[3572] chan_zap.c: Enabled echo cancellation on 
channel 7
Mar 26 18:02:32 VERBOSE[7387] logger.c:     -- Executing 
SetVar("Zap/7-1", "FROM_DID=57") in new stack
Mar 26 18:02:32 VERBOSE[7387] logger.c:     -- Executing Goto("Zap/7-1", 
"ext-local|57|1") in new stack
[...]
the same w/o CLID:
Mar 26 17:27:37 VERBOSE[3570] logger.c:     -- Accepting voice call from 
'' to 's' on channel 0/1, span 1
Mar 26 17:27:37 DEBUG[3570] chan_zap.c: Enabled echo cancellation on 
channel 1
Mar 26 17:27:37 DEBUG[7284] pbx.c: Expression result is '1'
Mar 26 17:27:37 VERBOSE[7284] logger.c:     -- Executing 
GotoIf("Zap/1-1", "1?from-pstn-reghours|s|1:") in new stack
Mar 26 17:27:37 VERBOSE[7284] logger.c:     -- Goto (from-pstn-reghours,s,1)
Mar 26 17:27:37 DEBUG[7284] pbx.c: Expression result is '0'
Mar 26 17:27:37 VERBOSE[7284] logger.c:     -- Executing 
GotoIf("Zap/1-1", "0?from-pstn-reghours-nofax|s|1:2") in new stack
Mar 26 17:27:37 VERBOSE[7284] logger.c:     -- Goto (from-pstn-reghours,s,2)
Mar 26 17:27:37 VERBOSE[7284] logger.c:     -- Executing 
Answer("Zap/1-1", "") in new stack
Mar 26 17:27:37 DEBUG[7284] chan_zap.c: Engaged echo training on channel 1
Mar 26 17:27:37 VERBOSE[7284] logger.c:     -- Executing Wait("Zap/1-1", 
"1") in new stack
Mar 26 17:27:38 VERBOSE[7284] logger.c:     -- Executing 
SetVar("Zap/1-1", "intype=EXT-23") in new stack
Mar 26 17:27:38 VERBOSE[7284] logger.c:     -- Executing Cut("Zap/1-1", 
"intype=intype|-|1") in new stack

Can someone give me a hint what went wrong?
TIA,

Rgds,
Hans



More information about the asterisk-users mailing list