Node: string-switch

String switches allow a CPL script to make decisions based on free-form strings present in a call request.

Parameters: field

  • field - specifies which string to be matched.

    • subject - the subject of the call.
    • organization - the organization of the originator of the call.
    • user-agent - the name of the program or device with which the call request was made.
    • language - the language in which the originator of the call wishes to receive responses. This contains a list of RFC 1766[9] language tags, separated by commas.
    • display - free-form text associated with the call, intended to be displayed to the recipient, with no other semantics defined by the signalling protocol.

Outputs: string

Specific string to match.

Parameters: is, contains

  • is - whole string match.

  • contains - substring match.