When we receive a call (with caller id) we can set the caller name to “Dept 1” or "Dept 2 " or “Dept 3” depending on the sip account (and the number) dialed, so we know which number they have phoned.
But when an anonymous call comes in and I try to set the name it doesn’t come through on the phone. It just shows “Unknown”.
I have seen this also. Your callerID on your phone is 1) seeing “Unknown” as the callerID NUMBER and treating it as an anonymous call display, or 2) some ‘bit’ is set somewhere signaling your phone to display an anonymous call.
exten => s,190,NoOp(${CALLERIDNUM})
exten => s,191,Set(CALLERID(number)=${ANONYMOUSNUM}) ; Anonymous call
exten => s,192,Set(CALLERID(name)=${ANONYMOUSNAME})
; …
[/code]
My phones, ATA driven analog phones as well as IP phones, display the globals as I would expect.
Dec 21 10:11:11 VERBOSE[3124] logger.c: -- Executing NoOp("SIP/213.166.5.134-089fff80", "anonymous") in new stack
Dec 21 10:11:11 VERBOSE[3124] logger.c: -- Executing NoOp("SIP/213.166.5.134-089fff80", "") in new stack
Dec 21 10:11:11 VERBOSE[3124] logger.c: -- Executing Set("SIP/213.166.5.134-089fff80", "CALLERID(name)=Sales Department") in new stack
Dec 21 10:11:11 VERBOSE[3124] logger.c: -- Executing Set("SIP/213.166.5.134-089fff80", "CALLERID(number)=999999999") in new stack
Dec 21 10:11:11 VERBOSE[3124] logger.c: -- Executing NoOp("SIP/213.166.5.134-089fff80", "Sales Department") in new stack
Dec 21 10:11:11 VERBOSE[3124] logger.c: -- Executing NoOp("SIP/213.166.5.134-089fff80", "999999999") in new stack
Dec 21 10:11:11 VERBOSE[3124] logger.c: -- Executing Goto("SIP/213.166.5.134-089fff80", "menu-phones|s|1") in new stack
With this it still shows Unknown on both the Name and Number.
exten => s,20,VoiceMail(9000@default)
exten => s,21,Hangup()[/quote]Thank you for your suggestion, but I’m having problems setting the name on anonymous calls. I don’t need to transfer them to voicemail.