[Asterisk-Users] Caller-ID via database lookup

Doug Lytle support at drdos.info
Wed Oct 19 09:04:06 MST 2005


Hey everybody,

I'm having issues with one of our facilities, concerning caller-id.   
The system is a Definity that hits a second Definity.  The 2nd Definity 
trunks the call to my Asterisk server via a TE110P.  I can only get 
Caller-ID name.  Nothing in the From: field.  I thought I would be able 
to do a database lookup against name to match extension, but....

When doing this and setting Caller-ID number, it still shows on the 
Polycom IP501 as Unknown/Unknown. Dial plan below:

exten => s,1,Set(dnd=${DB(DND/${ARG1})})
exten => s,2,Set(CIDNUMB=${DB(cidname/${CALLERIDNAME})})
exten => s,3,Set(CALLERID(Name)=${CALLERIDNAME})
exten => s,4,Set(CALLERID(Number)=${CIDNUMB})


CLI output below:

CLI> -- Accepting AUTHENTICATED call from 192.168.101.10:
       > requested format = gsm,
       > requested prefs = (),
       > actual format = gsm,
       > host prefs = (gsm),
       > priority = mine
    -- Executing Macro("IAX2/bc-asterisk-16384", "sip.extensions|4483|") 
in new stack
    -- Executing Set("IAX2/bc-asterisk-16384", "dnd=") in new stack
    -- Executing Set("IAX2/bc-asterisk-16384", "CIDNUMB=5574") in new stack
    -- Executing Set("IAX2/bc-asterisk-16384", "CALLERID(Name)=Lytle, 
Doug") in new stack
    -- Executing Set("IAX2/bc-asterisk-16384", "CALLERID(Number)=5574") 
in new stack
    -- Executing GotoIf("IAX2/bc-asterisk-16384", "0?8:6") in new stack
    -- Goto (macro-sip.extensions,s,6)
    -- Executing SetMusicOnHold("IAX2/bc-asterisk-16384", "epi-cd") in 
new stack
    -- Executing Dial("IAX2/bc-asterisk-16384", "SIP/4483|28|t") in new 
stack
    -- Called 4483
    -- SIP/4483-04ba is ringing

Debug output from the 'receiving Asterisk' server via IAX below:


    -- SIP/4483-14d3 is ringing
Reliably Transmitting (no NAT) to 192.168.101.64:5060:
CANCEL sip:4483 at 192.168.101.64 SIP/2.0
Via: SIP/2.0/UDP 192.168.104.40:5060;branch=z9hG4bK73d230ce;rport
From: "Unknown" <sip:Unknown at 192.168.104.40>;tag=as23c39fbe
To: <sip:4483 at 192.168.101.64>
Contact: <sip:Unknown at 192.168.104.40>
Call-ID: 3a6d8b1419e2d4c03bc7e6e80ba014fa at 192.168.104.40
CSeq: 102 CANCEL
User-Agent: Asterisk PBX
Content-Length: 0

What variable needs to be set to change it from "Unknown" to 5574?

Any help would be appreciated.

Doug

-- 
 
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."





More information about the asterisk-users mailing list