Skip to content

CALLERID()

Synopsis

Gets or sets Caller*ID data on the channel.

Description

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 - Unknown

  • iso8859-1 - ISO8859-1

  • withdrawn - Withdrawn

  • iso8859-2 - ISO8859-2

  • iso8859-3 - ISO8859-3

  • iso8859-4 - ISO8859-4

  • iso8859-5 - ISO8859-5

  • iso8859-7 - ISO8859-7

  • bmp - ISO10646 Bmp String

  • utf8 - 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.
    This variable is not automatically set by Asterisk. You are responsible for setting it if/when needed.
    Supporting Caller ID units will display the LDC (Long Distance Call) indicator when they receive this parameter.
    For incoming calls on FXO ports, if the Call Qualifier parameter is received, this variable will also be set to 1.
    This option must be used with a channel driver that allows Asterisk to generate the Caller ID spill, which currently only includes 'chan_dahdi'.

Syntax

CALLERID(datatype,CID)
Arguments
  • datatype - The allowable datatypes are:

    • all

    • name

    • name-valid

    • name-charset

    • name-pres

    • num

    • num-valid

    • num-plan

    • num-pres

    • pres

    • subaddr

    • subaddr-valid

    • subaddr-type

    • subaddr-odd

    • tag

    • priv-all

    • priv-name

    • priv-name-valid

    • priv-name-charset

    • priv-name-pres

    • priv-num

    • priv-num-valid

    • priv-num-plan

    • priv-num-pres

    • priv-subaddr

    • priv-subaddr-valid

    • priv-subaddr-type

    • priv-subaddr-odd

    • priv-tag

    • ANI-all

    • ANI-name

    • ANI-name-valid

    • ANI-name-charset

    • ANI-name-pres

    • ANI-num

    • ANI-num-valid

    • ANI-num-plan

    • ANI-num-pres

    • ANI-tag

    • RDNIS

    • DNID

    • dnid-num-plan

    • dnid-subaddr

    • dnid-subaddr-valid

    • dnid-subaddr-type

    • dnid-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.

Generated Version

This documentation was generated from Asterisk branch 22 using version GIT