Setting Callerid




Asterisk 1.2 and later- For old usage please see Asterisk cmd SetCallerID


Set Caller*ID on a call to a new value or read the current value.

Options are:

  • all: Both caller's name and number like this: "Joe Smith" <2095551212>
  • name: The caller's name
  • num: The caller's number (without the brackets) Note: can be used as num or number . You can set your caller ID number to text; just make sure not to use spaces, as you'll have unexpected results!
  • ANI: Announced Number Identification - the billing number that made the call (this number is usually the same as num, but it can be different)
  • DNID: Dialed Number IDentifier
  • RDNIS: Redirected Dialed Number Identification Service


exten => _1NXXNXXXXXX/2100,1,Set(CALLERID(all)="Joe Smith" <2095551212>)
exten => _1NXXNXXXXXX/2101,1,Set(CALLERID(all)="Jane Smith" <2095551213>)
exten => _1NXXNXXXXXX/2102,1,Set(CALLERID(num)=2095551214)
exten => _1NXXNXXXXXX,n,Dial(Zap/g1/${EXTEN})

This is a fragment of a context for routing outgoing calls. It sends NANP toll calls to Zap/g1 after first setting the outgoing caller ID depending on the calling internal extension number.

See also

Created by: johnlange, Last modification: Thu 03 of Dec, 2009 (17:28 UTC) by rdailey79
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+