Upgrade 3CX to v18 and get it hosted free!

Setting Callerid

Author image

Set(CALLERID())

Synopsis

Set(CALLERID(all|name|num|number|ANI|DNID|RDNIS)=”CALLER NAME” <CALLER NUMBER>)

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

Description

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

Example

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

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.