Kevin Shanahan
2012-Feb-17 02:26 UTC
[asterisk-users] Set(CALLERID(name)) when incoming call is "anonymous"
Hi,
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".
Setting name-pres actually doesn't have noticable effect. I added that
later when trying to find a solution.
How can I make "ORG1" show up on the screen when the caller has no
caller ID?
TIA,
Kevin Shanahan
Mark Engelhardt
2012-Feb-17 03:31 UTC
[asterisk-users] Set(CALLERID(name)) when incoming call is "anonymous"
Kevin,
You might have luck changing the callerid number so its not empty, that might
override the Anonymous label.
exten => 12345678,1,GotoIf,$[${LEN(${CALLERID(num)})} != 0]?3
exten => 12345678,2,Set(CALLERID(num)=0)
exten => 12345678,3, <Your code starts here>
Good luck!
Mark
On Feb 16, 2012, at 9:26 PM, Kevin Shanahan wrote:
> Hi,
>
> 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".
>
> Setting name-pres actually doesn't have noticable effect. I added that
> later when trying to find a solution.
>
> How can I make "ORG1" show up on the screen when the caller has
no
> caller ID?
>
> TIA,
> Kevin Shanahan
Kevin Shanahan
2012-Feb-17 03:34 UTC
[asterisk-users] Set(CALLERID(name)) when incoming call is "anonymous"
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