Asterisk 13.12.1
When I’m finishing 2 or more calls at the same time through the phone, somehow one of the calls does generate the AMI message. But if I wait like 3 seconds to hangup the second call, the event is generated properly.
Below I do have both events for NewChannel, and just one event for HangupRequestEvent and Hangup, and as you can see I do have AppData calling hangup_handler_push.
Event: Newchannel
Privilege: call,all
Channel: SIP/Elastix Outgoing-00000073
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum: 51999887766
CallerIDName: 51999887766
ConnectedLineNum:
ConnectedLineName:
Language: en
AccountCode:
Context: from-trunk-sip-Elastix Outgoing
Exten: 4800
Priority: 1
Uniqueid: 1623706898.115
Linkedid: 1623706898.115
.....
Event: Newexten
Privilege: call,all
Channel: SIP/Elastix Outgoing-00000073
ChannelState: 4
ChannelStateDesc: Ring
CallerIDNum: 51999887766
CallerIDName: 51999887766
ConnectedLineNum: <unknown>
ConnectedLineName: <unknown>
Language: en
AccountCode:
Context: from-trunk
Exten: 4800
Priority: 22
Uniqueid: 1623706898.115
Linkedid: 1623706898.115
Extension: 4800
Application: ExecIf
AppData: 1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)
.....
Event: Newchannel
Privilege: call,all
Channel: SIP/Elastix Outgoing-00000075
ChannelState: 0
ChannelStateDesc: Down
CallerIDNum: 51999887755
CallerIDName: 51999887755
ConnectedLineNum:
ConnectedLineName:
Language: en
AccountCode:
Context: from-trunk-sip-Elastix Outgoing
Exten: 4800
Priority: 1
Uniqueid: 1623706910.117
Linkedid: 1623706910.117
.....
Event: Newexten
Privilege: call,all
Channel: SIP/Elastix TRUE Outgoing-00000075
ChannelState: 4
ChannelStateDesc: Ring
CallerIDNum: 51999887755
CallerIDName: 51999887755
ConnectedLineNum: <unknown>
ConnectedLineName: <unknown>
Language: en
AccountCode:
Context: from-trunk
Exten: 4800
Priority: 22
Uniqueid: 1623706910.117
Linkedid: 1623706910.117
Extension: 4800
Application: ExecIf
AppData: 1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)
.....
Event: HangupRequest
Privilege: call,all
Channel: SIP/Elastix TRUE Outgoing-00000073
ChannelState: 6
ChannelStateDesc: Up
CallerIDNum: 51999887766
CallerIDName: 51999887766
ConnectedLineNum: 131
ConnectedLineName: TARM 131
Language: en
AccountCode:
Context: from-internal-xfer
Exten: 444
Priority: 39
Uniqueid: 1623706898.115
Linkedid: 1623706898.115
.....
Event: Hangup
Privilege: call,all
Channel: SIP/131-00000074
ChannelState: 6
ChannelStateDesc: Up
CallerIDNum: 131
CallerIDName: TARM 131
ConnectedLineNum: 51992812162
ConnectedLineName: 51992812162
Language: en
AccountCode:
Context: from-internal
Exten: 192
Priority: 1
Uniqueid: 1623706903.116
Linkedid: 1623706898.115
Cause: 16
Cause-txt: Normal Clearing
How can I solve this?
Any other log to look out?