<div dir="ltr">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.<div><br></div><div>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.</div><div><br></div><div>Am I missing something or an event is sent at the wrong time?</div><div><br></div><div>Here the events:</div><div><br></div><div>105 dials both 100 and 103 using somethign like Dial(SIP-100&SIP-103) ...</div><div><br></div><div><div>    [Event] => Newstate</div><div>    [Privilege] => call,all</div><div>    [SystemName] => srv01</div><div>    [Channel] => SIP/105-DEVEL-00000122</div><div>    [ChannelState] => 4</div><div>    [ChannelStateDesc] => Ring</div><div>    [CallerIDNum] => 105</div><div>    [CallerIDName] => Charles P. Boyd</div><div>    [ConnectedLineNum] => <unknown></div><div>    [ConnectedLineName] => <unknown></div><div>    [Language] => en</div><div>    [AccountCode] => DEVEL</div><div>    [Context] => authenticated</div><div>    [Exten] => 7654</div><div>    [Priority] => 1</div><div>    [Uniqueid] => srv01-1458746336.683</div><div>    [Linkedid] => srv01-1458746336.683</div></div><div><br></div><div>Extension 100 rings</div><div><br></div><div><div>    [Event] => Newstate</div><div>    [Privilege] => call,all</div><div>    [SystemName] => srv01</div><div>    [Channel] => SIP/100-DEVEL-00000123</div><div>    [ChannelState] => 5</div><div>    [ChannelStateDesc] => Ringing</div><div>    [CallerIDNum] => 100</div><div>    [CallerIDName] => Brent B. Myerssss</div><div>    [ConnectedLineNum] => 105</div><div>    [ConnectedLineName] => Charles P. Boyd</div><div>    [Language] => en  </div><div>    [AccountCode] => DEVEL</div><div>    [Context] => authenticated</div><div>    [Exten] => sw_14771_RINGALL</div><div>    [Priority] => 1   </div><div>    [Uniqueid] => srv01-1458746336.684</div><div>    [Linkedid] => srv01-1458746336.683</div></div><div><br></div><div>Extension 103 rings</div><div><br></div><div><div>    [Event] => Newstate</div><div>    [Privilege] => call,all</div><div>    [SystemName] => srv01</div><div>    [Channel] => SIP/103-DEVEL-00000124</div><div>    [ChannelState] => 5</div><div>    [ChannelStateDesc] => Ringing</div><div>    [CallerIDNum] => 103</div><div>    [CallerIDName] => Erica V. Watson</div><div>    [ConnectedLineNum] => 105</div><div>    [ConnectedLineName] => Charles P. Boyd</div><div>    [Language] => en  </div><div>    [AccountCode] => DEVEL</div><div>    [Context] => authenticated</div><div>    [Exten] => sw_14771_RINGALL</div><div>    [Priority] => 1   </div><div>    [Uniqueid] => srv01-1458746336.685</div><div>    [Linkedid] => srv01-1458746336.683</div></div><div><br></div><div>Until now, all perfect... now Extension 104 uses pickupexten on 100</div><div><br></div><div><div>    [Event] => Newstate</div><div>    [Privilege] => call,all</div><div>    [SystemName] => srv01</div><div>    [Channel] => SIP/104-DEVEL-00000125</div><div>    [ChannelState] => 4</div><div>    [ChannelStateDesc] => Ring</div><div>    [CallerIDNum] => 104</div><div>    [CallerIDName] => Christopher C. Andrews</div><div>    [ConnectedLineNum] => <unknown></div><div>    [ConnectedLineName] => <unknown></div><div>    [Language] => en  </div><div>    [AccountCode] => DEVEL</div><div>    [Context] => authenticated</div><div>    [Exten] => *56100DEVEL</div><div>    [Priority] => 1   </div><div>    [Uniqueid] => srv01-1458746341.686</div><div>    [Linkedid] => srv01-1458746341.686</div></div><div><br></div><div>Channels are up (105 caller and 104 who pickup)</div><div><br></div><div><div>    [Event] => Newstate</div><div>    [Privilege] => call,all</div><div>    [SystemName] => srv01</div><div>    [Channel] => SIP/104-DEVEL-00000125</div><div>    [ChannelState] => 6</div><div>    [ChannelStateDesc] => Up</div><div>    [CallerIDNum] => 104</div><div>    [CallerIDName] => Christopher C. Andrews</div><div>    [ConnectedLineNum] => <unknown></div><div>    [ConnectedLineName] => <unknown></div><div>    [Language] => en  </div><div>    [AccountCode] => DEVEL</div><div>    [Context] => authenticated</div><div>    [Exten] => *56100DEVEL</div><div>    [Priority] => 4   </div><div>    [Uniqueid] => srv01-1458746341.686</div><div>    [Linkedid] => srv01-1458746341.686</div></div><div><br></div><div><div>    [Event] => Newstate</div><div>    [Privilege] => call,all</div><div>    [SystemName] => srv01</div><div>    [Channel] => SIP/105-DEVEL-00000122</div><div>    [ChannelState] => 6</div><div>    [ChannelStateDesc] => Up</div><div>    [CallerIDNum] => 105</div><div>    [CallerIDName] => Charles P. Boyd</div><div>    [ConnectedLineNum] => 104</div><div>    [ConnectedLineName] => Christopher C. Andrews</div><div>    [Language] => es  </div><div>    [AccountCode] => DEVEL</div><div>    [Context] => ExecHuntList</div><div>    [Exten] => sw_14771_RINGALL</div><div>    [Priority] => 26  </div><div>    [Uniqueid] => srv01-1458746336.683</div><div>    [Linkedid] => srv01-1458746336.683</div></div><div><br></div><div>An Hangup is sent for extension 100, the one from which the call was borrowed</div><div><br></div><div><div>    [Event] => Hangup </div><div>    [Privilege] => call,all</div><div>    [SystemName] => srv01</div><div>    [Channel] => SIP/100-DEVEL-00000123</div><div>    [ChannelState] => 5</div><div>    [ChannelStateDesc] => Ringing</div><div>    [CallerIDNum] => 100</div><div>    [CallerIDName] => Brent B. Myerssss</div><div>    [ConnectedLineNum] => 105</div><div>    [ConnectedLineName] => Charles P. Boyd</div><div>    [Language] => es  </div><div>    [AccountCode] => DEVEL</div><div>    [Context] => PickupExten</div><div>    [Exten] => h</div><div>    [Priority] => 2   </div><div>    [Uniqueid] => srv01-1458746336.684</div><div>    [Linkedid] => srv01-1458746336.683</div><div>    [Cause] => 26</div><div>    [Cause-txt] => Answered elsewhere</div></div><div><br></div><div>But not to extension 103 ... remind both 100 and 103 were ring together.</div><div><br></div><div>In the mean time Extension 104 hangup</div><div><div><br></div><div>    [Event] => Hangup </div><div>    [Privilege] => call,all</div><div>    [SystemName] => srv01</div><div>    [Channel] => SIP/104-DEVEL-00000125</div><div>    [ChannelState] => 6</div><div>    [ChannelStateDesc] => Up</div><div>    [CallerIDNum] => 104</div><div>    [CallerIDName] => Christopher C. Andrews</div><div>    [ConnectedLineNum] => 105</div><div>    [ConnectedLineName] => Charles P. Boyd</div><div>    [Language] => es  </div><div>    [AccountCode] => DEVEL</div><div>    [Context] => authenticated</div><div>    [Exten] =></div><div>    [Priority] => 1   </div><div>    [Uniqueid] => srv01-1458746341.686</div><div>    [Linkedid] => srv01-1458746336.683</div><div>    [Cause] => 16</div><div>    [Cause-txt] => Normal Clearing</div></div><div><br></div><div>And the hangup is sent also to 105</div><div><br></div><div><div>    [Event] => Hangup </div><div>    [Privilege] => call,all</div><div>    [SystemName] => srv01</div><div>    [Channel] => SIP/105-DEVEL-00000122</div><div>    [ChannelState] => 6</div><div>    [ChannelStateDesc] => Up</div><div>    [CallerIDNum] => 105</div><div>    [CallerIDName] => Charles P. Boyd</div><div>    [ConnectedLineNum] => 104</div><div>    [ConnectedLineName] => Christopher C. Andrews</div><div>    [Language] => es  </div><div>    [AccountCode] => DEVEL</div><div>    [Context] => ExecHuntList</div><div>    [Exten] => h</div><div>    [Priority] => 2   </div><div>    [Uniqueid] => srv01-1458746336.683</div><div>    [Linkedid] => srv01-1458746336.683</div><div>    [Cause] => 16</div><div>    [Cause-txt] => Normal Clearing</div></div><div><br></div><div>But only now the hangup is sent to 103!!!</div><div><br></div><div><div>    [Event] => Hangup </div><div>    [Privilege] => call,all</div><div>    [SystemName] => srv01</div><div>    [Channel] => SIP/103-DEVEL-00000124</div><div>    [ChannelState] => 5</div><div>    [ChannelStateDesc] => Ringing</div><div>    [CallerIDNum] => 103</div><div>    [CallerIDName] => Erica V. Watson</div><div>    [ConnectedLineNum] => 105</div><div>    [ConnectedLineName] => Charles P. Boyd</div><div>    [Language] => en  </div><div>    [AccountCode] => DEVEL</div><div>    [Context] => authenticated</div><div>    [Exten] => sw_14771_RINGALL</div><div>    [Priority] => 1   </div><div>    [Uniqueid] => srv01-1458746336.685</div><div>    [Linkedid] => srv01-1458746336.683</div><div>    [Cause] => 26</div><div>    [Cause-txt] => Answered elsewhere</div></div><div><br></div><div><br></div><div><br></div><div><br></div></div>