# Asterisk Project : Asterisk 13 ManagerEvent_LocalOptimizationBegin

Created by wikibot on Aug 08, 2014

# LocalOptimizationBegin

### Synopsis

Raised when two halves of a Local Channel begin to optimize themselves out of the media path.

### Description

### Syntax

    Event: LocalOptimizationBegin
    LocalOneChannel: <value>
    LocalOneChannelState: <value>
    LocalOneChannelStateDesc: <value>
    LocalOneCallerIDNum: <value>
    LocalOneCallerIDName: <value>
    LocalOneConnectedLineNum: <value>
    LocalOneConnectedLineName: <value>
    LocalOneAccountCode: <value>
    LocalOneContext: <value>
    LocalOneExten: <value>
    LocalOnePriority: <value>
    LocalOneUniqueid: <value>
    LocalTwoChannel: <value>
    LocalTwoChannelState: <value>
    LocalTwoChannelStateDesc: <value>
    LocalTwoCallerIDNum: <value>
    LocalTwoCallerIDName: <value>
    LocalTwoConnectedLineNum: <value>
    LocalTwoConnectedLineName: <value>
    LocalTwoAccountCode: <value>
    LocalTwoContext: <value>
    LocalTwoExten: <value>
    LocalTwoPriority: <value>
    LocalTwoUniqueid: <value>
    SourceChannel: <value>
    SourceChannelState: <value>
    SourceChannelStateDesc: <value>
    SourceCallerIDNum: <value>
    SourceCallerIDName: <value>
    SourceConnectedLineNum: <value>
    SourceConnectedLineName: <value>
    SourceAccountCode: <value>
    SourceContext: <value>
    SourceExten: <value>
    SourcePriority: <value>
    SourceUniqueid: <value>
    DestUniqueId: <value>
    Id: <value>

##### Arguments

- `LocalOneChannel`
- `LocalOneChannelState` - A numeric code for the channel's current state, related to LocalOneChannelStateDesc
- `LocalOneChannelStateDesc`
  - `Down`
  - `Rsrvd`
  - `OffHook`
  - `Dialing`
  - `Ring`
  - `Ringing`
  - `Up`
  - `Busy`
  - `Dialing Offhook`
  - `Pre-ring`
  - `Unknown`
- `LocalOneCallerIDNum`
- `LocalOneCallerIDName`
- `LocalOneConnectedLineNum`
- `LocalOneConnectedLineName`
- `LocalOneAccountCode`
- `LocalOneContext`
- `LocalOneExten`
- `LocalOnePriority`
- `LocalOneUniqueid`
- `LocalTwoChannel`
- `LocalTwoChannelState` - A numeric code for the channel's current state, related to LocalTwoChannelStateDesc
- `LocalTwoChannelStateDesc`
  - `Down`
  - `Rsrvd`
  - `OffHook`
  - `Dialing`
  - `Ring`
  - `Ringing`
  - `Up`
  - `Busy`
  - `Dialing Offhook`
  - `Pre-ring`
  - `Unknown`
- `LocalTwoCallerIDNum`
- `LocalTwoCallerIDName`
- `LocalTwoConnectedLineNum`
- `LocalTwoConnectedLineName`
- `LocalTwoAccountCode`
- `LocalTwoContext`
- `LocalTwoExten`
- `LocalTwoPriority`
- `LocalTwoUniqueid`
- `SourceChannel`
- `SourceChannelState` - A numeric code for the channel's current state, related to SourceChannelStateDesc
- `SourceChannelStateDesc`
  - `Down`
  - `Rsrvd`
  - `OffHook`
  - `Dialing`
  - `Ring`
  - `Ringing`
  - `Up`
  - `Busy`
  - `Dialing Offhook`
  - `Pre-ring`
  - `Unknown`
- `SourceCallerIDNum`
- `SourceCallerIDName`
- `SourceConnectedLineNum`
- `SourceConnectedLineName`
- `SourceAccountCode`
- `SourceContext`
- `SourceExten`
- `SourcePriority`
- `SourceUniqueid`
- `DestUniqueId` - The unique ID of the bridge into which the local channel is optimizing.
- `Id` - Identification for the optimization operation.

### Class

CALL

### See Also

- Asterisk 13 ManagerEvent_LocalOptimizationEnd
- Asterisk 13 ManagerAction_LocalOptimizeAway

### Import Version

This documentation was imported from Asterisk Version SVN-branch-13-r420538