Page 523 - Asterisk™: The Future of Telephony
P. 523

See Also
               DB()


               CALLERID                                        Gets or sets Caller ID data on the channel

               CALLERID(datatype[,optional-CID])
               CALLERID() parses the Caller ID string within the current channel and returns all or part,
               as  specified  by  datatype.  The  allowable  datatypes  are  all,  name,  num,  ani,  dnid,  or
               rdnis. Optionally, an alternative Caller ID may be specified if you wish to parse that
               string instead of the Caller ID set on the channel.
               This function may be both read and set.


               CDR                       Gets or sets CDR information for this call (which will be written to the CDR log)
               CDR(fieldname[,options])

               Here is a list of all the available CDR field names:
               clid
                   Read-only. Use the CALLERID(all) function to set this value.
               lastapp
                   Read-only. Denotes the last application run.
               lastdata
                   Read-only. Denotes the arguments to the last application run.
               src
                   Read-only. Use the CALLERID(ani) function to set this value.
               dst
                   Read-only. Corresponds to the final extension in the dialplan.

               dcontext
                   Read-only. Corresponds to the final context in the dialplan.
               channel
                   Read-only. The name of the channel on which the call originated.

               dstchannel
                   Read-only. The name of the channel on which the call terminated.
               disposition
                   Read-only. Maximum reached state of the channel. If the u option is specified, this
                   value will be returned as an integer, instead of a string: 1 = NO ANSWER, 2 = BUSY, 3 =
                   FAILED, 4 = ANSWERED.
               amaflags
                   Read/write. Billing flags. If the u option is specified, this value will be returned as
                   an integer, instead of a string: 1 = OMIT, 2 = BILLING, 3 = DOCUMENTATION.


                                                                             CALLERID | 495
   518   519   520   521   522   523   524   525   526   527   528