[asterisk-users] Set(CALLERID(name)) when incoming call is "anonymous"
Kevin Shanahan
kmshanah at ucwb.org.au
Thu Feb 16 21:34:41 CST 2012
On Fri, Feb 17, 2012 at 12:56:15PM +1030, Kevin Shanahan wrote:
> I'm trying to figure out why I can't pass through caller ID details
> that I set manually if the incoming call that I am forwarding was
> anonymous.
>
> Our reception staff need to know which number the client was calling
> in on so they can give the right greeting message when answering.
>
> E.g. I have the following in our dialplan for one reception number
> (similar for others):
>
> G_RECEPTION=SIP/1111&SIP/2222
>
> exten => 12345678,1,Set(CALLERID(name)=ORG1)
> exten => 12345678,n,Set(CALLERID(name-pres)=allowed)
> exten => 12345678,n,Dial(${G_RECEPTION},15,i)
> exten => 12345678,n,VoiceMail(12345678,su)
> exten => 12345678,n,Hangup()
>
> Normally this works great with the name "ORG1" and the client's number
> both appearing on the handset (Snom 320). However, if the caller had
> no caller ID this shows up on the screen as "Anonymous".
Okay, it seems to work if I add:
exten => 12345678,n,Set(CALLERID(num-pres)=allowed)
I guess if either of Name or Number aren't allowed then Asterisk
replaces the whole caller id string with the default:
"Anonymous" <sip:Anonymous at anonymous.invalid>
Cheers,
Kevin Shanahan
More information about the asterisk-users
mailing list