How to change incoming caller ID from default

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

How to change incoming caller ID from default

Postby mattmacdonald » Tue Mar 13, 2012 3:31 pm

Hello,

My current setup includes Asterisk 1.6 and a digium FXO card. Everything works fine. Caller ID is working. The only problem is that when no caller ID is present, asterisk sends a default FROM address of "asterisk@192.168.1.xx" (where 192.168.1.xx is the SIP server address).
Is there any way to change the default that gets sent when there is no caller ID? I would like to change it from "asterisk" to "Unknown"

Thanks.
mattmacdonald
Newsterisk
 
Posts: 2
Joined: Sun Mar 11, 2012 8:36 pm

Re: How to change incoming caller ID from default

Postby david55 » Wed Mar 14, 2012 1:20 am

I presume you mean the default caller ID sent to SIP peers? I believe that is set in the general section of sip.conf, although youi can always manipulate CALLERID(num) explicitly.
You should not modify the domain part.
david55
Moves Like Spencer
 
Posts: 7694
Joined: Fri Sep 26, 2008 5:03 am

Re: How to change incoming caller ID from default

Postby omid.mohajerani » Wed Mar 14, 2012 1:40 am

you can check the callerID and change it with a simple Gotoif and Set command . you can work on callerid(num) ,callerid(name) , etc

exten => _X,n,GotoIf($["${CALLERID(name)}" != "asterisk" ] ?changecallerID)
exten => _X,n,(changecallerID),Set(CALLERID(name)="yourcallerid")
...
omid.mohajerani
Oldsterisk
 
Posts: 110
Joined: Tue Sep 21, 2010 9:28 am

Re: How to change incoming caller ID from default

Postby david55 » Wed Mar 14, 2012 1:51 am

I think you will find that asterisk is being defaulted after the dialplan code has been run.
david55
Moves Like Spencer
 
Posts: 7694
Joined: Fri Sep 26, 2008 5:03 am


Return to Asterisk Support

Who is online

Users browsing this forum: Google [Bot] and 18 guests