Hi,
I’m using Asterisk16 and I have a problem with syncting status between queue and queuemembers.
I have created a queue named ‘5000’ and add a member ‘4001’ to it on my pbx server.
When I called 5000 and sent a AMI request ‘Action:Status’ to confirm extension status before the queuemember ‘4001’ answered
I got a response below:
Event: Status
Privilege: Call
Channel: SIP/4001-0000025f
ChannelState: 5
ChannelStateDesc: Ringing
CallerIDNum: 4001
CallerIDName: 4001
ConnectedLineNum: xxxxxx
ConnectedLineName: xxxxxx
Language: en
AccountCode:
Context: from-internal
Exten: 4001
…
Event: Status
Privilege: Call
Channel: SIP/sip.nexmo.com-0000025e
ChannelState: 6
ChannelStateDesc: Up
CallerIDNum: xxxxxx
CallerIDName: xxxxxx
ConnectedLineNum:
ConnectedLineName:
Language: en
AccountCode:
Context: ext-queues
Exten: 5000
…
I realized that the status of 5000 has already changed to ‘Up’ before the queuemember answered.
In my bussiness logic I need to make sure the status of 5000 same as ‘4001’.
Can someone tel how to Syncting them.