CALLERID(datatype[,CID])
Gets or sets Caller*ID data on the channel. Uses channel callerid by default or optional callerid, if specified.
The pres field gets/sets a combined value for name-pres and num-pres.
The allowable values for the name-charset field are the following:
unknown- Unknowniso8859-1- ISO8859-1withdrawn- Withdrawniso8859-2- ISO8859-2iso8859-3- ISO8859-3iso8859-4- ISO8859-4iso8859-5- ISO8859-5iso8859-7- ISO8859-7bmp- ISO10646 Bmp Stringutf8- ISO10646 UTF-8 String
The allowable values for the num-pres, name-pres, and pres fields are the following:
allowed_not_screened- Presentation Allowed, Not Screened.allowed_passed_screen- Presentation Allowed, Passed Screen.allowed_failed_screen- Presentation Allowed, Failed Screen.allowed- Presentation Allowed, Network Number.prohib_not_screened- Presentation Prohibited, Not Screened.prohib_passed_screen- Presentation Prohibited, Passed Screen.prohib_failed_screen- Presentation Prohibited, Failed Screen.prohib- Presentation Prohibited, Network Number.-
unavailable- Number Unavailable. -
CALL_QUALIFIER - This is a special Caller ID-related variable that can be used to enable sending the Call Qualifier parameter in MDMF (Multiple Data Message Format) Caller ID spills.
datatyperequired - The allowable datatypes are:allnamename-validname-charsetname-presnumnum-validnum-plannum-prespressubaddrsubaddr-validsubaddr-typesubaddr-oddtagpriv-allpriv-namepriv-name-validpriv-name-charsetpriv-name-prespriv-numpriv-num-validpriv-num-planpriv-num-prespriv-subaddrpriv-subaddr-validpriv-subaddr-typepriv-subaddr-oddpriv-tagANI-allANI-nameANI-name-validANI-name-charsetANI-name-presANI-numANI-num-validANI-num-planANI-num-presANI-tagRDNISDNIDdnid-num-plandnid-subaddrdnid-subaddr-validdnid-subaddr-typednid-subaddr-odd
CID- Optional CallerID to parse instead of using the CallerID from the channel. This parameter is only optional when reading the Caller*ID.
User Notes
No notes yet. Be the first to contribute a tip or example.
Contribute a note
Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.