Skip to content

VarSet

Synopsis

Raised when a variable local to the gosub stack frame is set due to a subroutine call.

Syntax

    Event: VarSet
    Channel: <value>
    ChannelState: <value>
    ChannelStateDesc: <value>
    CallerIDNum: <value>
    CallerIDName: <value>
    ConnectedLineNum: <value>
    ConnectedLineName: <value>
    Language: <value>
    AccountCode: <value>
    Context: <value>
    Exten: <value>
    Priority: <value>
    Uniqueid: <value>
    Linkedid: <value>
    Variable: <value>
    Value: <value>
Arguments
  • Channel

  • ChannelState - A numeric code for the channel's current state, related to ChannelStateDesc

  • ChannelStateDesc

    • Down

    • Rsrvd

    • OffHook

    • Dialing

    • Ring

    • Ringing

    • Up

    • Busy

    • Dialing Offhook

    • Pre-ring

    • Unknown

  • CallerIDNum

  • CallerIDName

  • ConnectedLineNum

  • ConnectedLineName

  • Language

  • AccountCode

  • Context

  • Exten

  • Priority

  • Uniqueid

  • Linkedid - Uniqueid of the oldest channel associated with this channel.

  • Variable - The LOCAL variable being set.

    Note

    The variable name will always be enclosed with 'LOCAL()'

  • Value - The new value of the variable.

Class

DIALPLAN

See Also

Synopsis

Raised when a variable is shared between channels.

Syntax

    Event: VarSet
    Channel: <value>
    ChannelState: <value>
    ChannelStateDesc: <value>
    CallerIDNum: <value>
    CallerIDName: <value>
    ConnectedLineNum: <value>
    ConnectedLineName: <value>
    Language: <value>
    AccountCode: <value>
    Context: <value>
    Exten: <value>
    Priority: <value>
    Uniqueid: <value>
    Linkedid: <value>
    Variable: <value>
    Value: <value>
Arguments
  • Channel

  • ChannelState - A numeric code for the channel's current state, related to ChannelStateDesc

  • ChannelStateDesc

    • Down

    • Rsrvd

    • OffHook

    • Dialing

    • Ring

    • Ringing

    • Up

    • Busy

    • Dialing Offhook

    • Pre-ring

    • Unknown

  • CallerIDNum

  • CallerIDName

  • ConnectedLineNum

  • ConnectedLineName

  • Language

  • AccountCode

  • Context

  • Exten

  • Priority

  • Uniqueid

  • Linkedid - Uniqueid of the oldest channel associated with this channel.

  • Variable - The SHARED variable being set.

    Note

    The variable name will always be enclosed with 'SHARED()'

  • Value - The new value of the variable.

Class

DIALPLAN

See Also

Synopsis

Raised when a variable is set to a particular value.

Syntax

    Event: VarSet
    Channel: <value>
    ChannelState: <value>
    ChannelStateDesc: <value>
    CallerIDNum: <value>
    CallerIDName: <value>
    ConnectedLineNum: <value>
    ConnectedLineName: <value>
    Language: <value>
    AccountCode: <value>
    Context: <value>
    Exten: <value>
    Priority: <value>
    Uniqueid: <value>
    Linkedid: <value>
    Variable: <value>
    Value: <value>
Arguments
  • Channel

  • ChannelState - A numeric code for the channel's current state, related to ChannelStateDesc

  • ChannelStateDesc

    • Down

    • Rsrvd

    • OffHook

    • Dialing

    • Ring

    • Ringing

    • Up

    • Busy

    • Dialing Offhook

    • Pre-ring

    • Unknown

  • CallerIDNum

  • CallerIDName

  • ConnectedLineNum

  • ConnectedLineName

  • Language

  • AccountCode

  • Context

  • Exten

  • Priority

  • Uniqueid

  • Linkedid - Uniqueid of the oldest channel associated with this channel.

  • Variable - The variable being set.

  • Value - The new value of the variable.

Class

DIALPLAN

Generated Version

This documentation was generated from Asterisk branch certified/18.9 using version GIT