I run in a weird issue with a BLF application I have written... this
application is just receiving events from Asterisk Manager Interface and
blink the lights accordingly. All almost work perfectly, except when a
pickupexen is used when multiple extensions are dialed.

If extension 105 dials extension 100 and 103 together and extension 104
pickupexten 100, then extension 103 will continue to blink as "ringing"
until the call between 105 and 104 is hangup.

Am I missing something or an event is sent at the wrong time?

Here the events:

105 dials both 100 and 103 using somethign like Dial(SIP-100&SIP-103) ...

    [Event] => Newstate
    [Privilege] => call,all
    [SystemName] => srv01
    [Channel] => SIP/105-DEVEL-00000122
    [ChannelState] => 4
    [ChannelStateDesc] => Ring
    [CallerIDNum] => 105
    [CallerIDName] => Charles P. Boyd
    [ConnectedLineNum] => <unknown>
    [ConnectedLineName] => <unknown>
    [Language] => en
    [AccountCode] => DEVEL
    [Context] => authenticated
    [Exten] => 7654
    [Priority] => 1
    [Uniqueid] => srv01-1458746336.683
    [Linkedid] => srv01-1458746336.683

Extension 100 rings

    [Event] => Newstate
    [Privilege] => call,all
    [SystemName] => srv01
    [Channel] => SIP/100-DEVEL-00000123
    [ChannelState] => 5
    [ChannelStateDesc] => Ringing
    [CallerIDNum] => 100
    [CallerIDName] => Brent B. Myerssss
    [ConnectedLineNum] => 105
    [ConnectedLineName] => Charles P. Boyd
    [Language] => en
    [AccountCode] => DEVEL
    [Context] => authenticated
    [Exten] => sw_14771_RINGALL
    [Priority] => 1
    [Uniqueid] => srv01-1458746336.684
    [Linkedid] => srv01-1458746336.683

Extension 103 rings

    [Event] => Newstate
    [Privilege] => call,all
    [SystemName] => srv01
    [Channel] => SIP/103-DEVEL-00000124
    [ChannelState] => 5
    [ChannelStateDesc] => Ringing
    [CallerIDNum] => 103
    [CallerIDName] => Erica V. Watson
    [ConnectedLineNum] => 105
    [ConnectedLineName] => Charles P. Boyd
    [Language] => en
    [AccountCode] => DEVEL
    [Context] => authenticated
    [Exten] => sw_14771_RINGALL
    [Priority] => 1
    [Uniqueid] => srv01-1458746336.685
    [Linkedid] => srv01-1458746336.683

Until now, all perfect... now Extension 104 uses pickupexten on 100

    [Event] => Newstate
    [Privilege] => call,all
    [SystemName] => srv01
    [Channel] => SIP/104-DEVEL-00000125
    [ChannelState] => 4
    [ChannelStateDesc] => Ring
    [CallerIDNum] => 104
    [CallerIDName] => Christopher C. Andrews
    [ConnectedLineNum] => <unknown>
    [ConnectedLineName] => <unknown>
    [Language] => en
    [AccountCode] => DEVEL
    [Context] => authenticated
    [Exten] => *56100DEVEL
    [Priority] => 1
    [Uniqueid] => srv01-1458746341.686
    [Linkedid] => srv01-1458746341.686

Channels are up (105 caller and 104 who pickup)

    [Event] => Newstate
    [Privilege] => call,all
    [SystemName] => srv01
    [Channel] => SIP/104-DEVEL-00000125
    [ChannelState] => 6
    [ChannelStateDesc] => Up
    [CallerIDNum] => 104
    [CallerIDName] => Christopher C. Andrews
    [ConnectedLineNum] => <unknown>
    [ConnectedLineName] => <unknown>
    [Language] => en
    [AccountCode] => DEVEL
    [Context] => authenticated
    [Exten] => *56100DEVEL
    [Priority] => 4
    [Uniqueid] => srv01-1458746341.686
    [Linkedid] => srv01-1458746341.686

    [Event] => Newstate
    [Privilege] => call,all
    [SystemName] => srv01
    [Channel] => SIP/105-DEVEL-00000122
    [ChannelState] => 6
    [ChannelStateDesc] => Up
    [CallerIDNum] => 105
    [CallerIDName] => Charles P. Boyd
    [ConnectedLineNum] => 104
    [ConnectedLineName] => Christopher C. Andrews
    [Language] => es
    [AccountCode] => DEVEL
    [Context] => ExecHuntList
    [Exten] => sw_14771_RINGALL
    [Priority] => 26
    [Uniqueid] => srv01-1458746336.683
    [Linkedid] => srv01-1458746336.683

An Hangup is sent for extension 100, the one from which the call was
borrowed

    [Event] => Hangup
    [Privilege] => call,all
    [SystemName] => srv01
    [Channel] => SIP/100-DEVEL-00000123
    [ChannelState] => 5
    [ChannelStateDesc] => Ringing
    [CallerIDNum] => 100
    [CallerIDName] => Brent B. Myerssss
    [ConnectedLineNum] => 105
    [ConnectedLineName] => Charles P. Boyd
    [Language] => es
    [AccountCode] => DEVEL
    [Context] => PickupExten
    [Exten] => h
    [Priority] => 2
    [Uniqueid] => srv01-1458746336.684
    [Linkedid] => srv01-1458746336.683
    [Cause] => 26
    [Cause-txt] => Answered elsewhere

But not to extension 103 ... remind both 100 and 103 were ring together.

In the mean time Extension 104 hangup

    [Event] => Hangup
    [Privilege] => call,all
    [SystemName] => srv01
    [Channel] => SIP/104-DEVEL-00000125
    [ChannelState] => 6
    [ChannelStateDesc] => Up
    [CallerIDNum] => 104
    [CallerIDName] => Christopher C. Andrews
    [ConnectedLineNum] => 105
    [ConnectedLineName] => Charles P. Boyd
    [Language] => es
    [AccountCode] => DEVEL
    [Context] => authenticated
    [Exten] =>
    [Priority] => 1
    [Uniqueid] => srv01-1458746341.686
    [Linkedid] => srv01-1458746336.683
    [Cause] => 16
    [Cause-txt] => Normal Clearing

And the hangup is sent also to 105

    [Event] => Hangup
    [Privilege] => call,all
    [SystemName] => srv01
    [Channel] => SIP/105-DEVEL-00000122
    [ChannelState] => 6
    [ChannelStateDesc] => Up
    [CallerIDNum] => 105
    [CallerIDName] => Charles P. Boyd
    [ConnectedLineNum] => 104
    [ConnectedLineName] => Christopher C. Andrews
    [Language] => es
    [AccountCode] => DEVEL
    [Context] => ExecHuntList
    [Exten] => h
    [Priority] => 2
    [Uniqueid] => srv01-1458746336.683
    [Linkedid] => srv01-1458746336.683
    [Cause] => 16
    [Cause-txt] => Normal Clearing

But only now the hangup is sent to 103!!!

    [Event] => Hangup
    [Privilege] => call,all
    [SystemName] => srv01
    [Channel] => SIP/103-DEVEL-00000124
    [ChannelState] => 5
    [ChannelStateDesc] => Ringing
    [CallerIDNum] => 103
    [CallerIDName] => Erica V. Watson
    [ConnectedLineNum] => 105
    [ConnectedLineName] => Charles P. Boyd
    [Language] => en
    [AccountCode] => DEVEL
    [Context] => authenticated
    [Exten] => sw_14771_RINGALL
    [Priority] => 1
    [Uniqueid] => srv01-1458746336.685
    [Linkedid] => srv01-1458746336.683
    [Cause] => 26
    [Cause-txt] => Answered elsewhere
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to