CALLERID(field)
Returns or sets information about the caller. The
field is one of the following:
name
num
number, perhaps depending on the
Asterisk version)all
Robert Cossack
<2125558721>"ani
dnid
dnis, perhaps
depending on the Asterisk version)rdnis
The old channel variable ${CALLERIDNUM} is
replaced by the function ${CALLERID(num)} as of Asterisk
1.4 (Similarly, ${RDNIS} is replaced by
$(CALLERID(rdnis)) etc.). The application
SetCIDName() is replaced by
Set(CALLERID(name)=
(Similarly, Name)SetCallerID() is replaced by
Set(CALLERID(all)=
etc.).Name
<Number>)
; Set the variable foo to the complete caller ID:
exten => 123,1,Set(foo=${CALLERID(all)})
; Set the caller namer to "Robert Cossack":
exten => 123,1,Set(CALLERID(name)="Robert Cossack")
|
|
|
Internal help for this application in Asterisk 1.4: -= Info about function 'CALLERID' =- [Syntax] CALLERID(datatype[,<optional-CID>]) [Synopsis] Gets or sets Caller*ID data on the channel. [Description] Gets or sets Caller*ID data on the channel. The allowable datatypes are "all", "name", "num", "ANI", "DNID", "RDNIS". Uses channel callerid by default or optional callerid, if specified. diff output to internal help in Asterisk 1.2: 5c5 < CALLERID(datatype[,<optional-CID>]) --- > CALLERID(datatype) 13d12 < Uses channel callerid by default or optional callerid, if specified. |