Systemmanagement
2018-Nov-26 16:30 UTC
[asterisk-users] Send QueueMemberAdded Event via AMI
Hello everybody, we are using asterisk 16 with a realtime config and have a problem with FOP2. We have developed a webinterface for managing the queues. If we add a member to a queue, everything works fine but the user is not shown in the queue in FOP2 Panel. The problem is that the FOP2 Panel does not receive the QueueMemberAdded Event. This will only be sent if the QueueAdd Function is used (QueueMemberAdded>Raised when a member is added to the queue). My idea is to send the event with the help of a script via AMI. First i tried to do this manually connected to the AMI via telnet and pasted it in: Event: QueueMemberAdded Privilege: agent,all Queue: 905 MemberName: SIP/599 Interface: SIP/599 StateInterface: SIP/599 Membership: realtime Penalty: 0 CallsTaken: 0 LastCall: 0 LastPause: 0 InCall: 0 Status: 1 Paused: 0 PausedReason: 0 Ringinuse: 0 This generates an error: Response: Error Message: Missing action in request I wasn´t able to find the correct action for sending events. Should this action listed in "actions:commands"? How can i sent the "QueueMemberAdded" Event? and what is the correct format? best regards, Frank Koch -- B.Sc. Frank Koch Systemmanagement DECOIT GmbH Fahrenheitstraße 9 D-28359 Bremen Tel.: +49-421-596064-20 Fax: +49-421-596064-09 E-Mail: koch at decoit.de Web: https://www.decoit.de Amtsgericht Bremen, HRB 21533 Geschäftsführer: Prof. Dr.-Ing. Kai-Oliver Detken -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20181126/3a1a218c/attachment.html>
On Mon, Nov 26, 2018, at 12:30 PM, Systemmanagement wrote:> Hello everybody, > > we are using asterisk 16 with a realtime config and have a problem with > FOP2. We have developed a webinterface for managing the queues. If we > add a member to a queue, everything works fine but the user is not shown > in the queue in FOP2 Panel. The problem is that the FOP2 Panel does not > receive the QueueMemberAdded Event. This will only be sent if the > QueueAdd Function is used (QueueMemberAdded>Raised when a member is > added to the queue). > > My idea is to send the event with the help of a script via AMI. First i > tried to do this manually connected to the AMI via telnet and pasted it in: > > Event: QueueMemberAdded > Privilege: agent,all > Queue: 905 > MemberName: SIP/599 > Interface: SIP/599 > StateInterface: SIP/599 > Membership: realtime > Penalty: 0 > CallsTaken: 0 > LastCall: 0 > LastPause: 0 > InCall: 0 > Status: 1 > Paused: 0 > PausedReason: 0 > Ringinuse: 0 > > This generates an error: > Response: Error > Message: Missing action in request > > I wasn´t able to find the correct action for sending events. Should this > action listed in "actions:commands"? How can i sent the > "QueueMemberAdded" Event? and what is the correct format?AMI does not allow you to send events like this. They can only be generated and sent by the C code in Asterisk itself. -- Joshua C. Colp Digium - A Sangoma Company | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Systemmanagement
2018-Nov-27 06:18 UTC
[asterisk-users] Send QueueMemberAdded Event via AMI
Hi Joshua, thank you for the quick answer. We will take a look at the code and maybe patch it for this purpose for us. best regards Am 26.11.18 um 17:34 schrieb Joshua C. Colp:> On Mon, Nov 26, 2018, at 12:30 PM, Systemmanagement wrote: >> Hello everybody, >> >> we are using asterisk 16 with a realtime config and have a problem with >> FOP2. We have developed a webinterface for managing the queues. If we >> add a member to a queue, everything works fine but the user is not shown >> in the queue in FOP2 Panel. The problem is that the FOP2 Panel does not >> receive the QueueMemberAdded Event. This will only be sent if the >> QueueAdd Function is used (QueueMemberAdded>Raised when a member is >> added to the queue). >> >> My idea is to send the event with the help of a script via AMI. First i >> tried to do this manually connected to the AMI via telnet and pasted it in: >> >> Event: QueueMemberAdded >> Privilege: agent,all >> Queue: 905 >> MemberName: SIP/599 >> Interface: SIP/599 >> StateInterface: SIP/599 >> Membership: realtime >> Penalty: 0 >> CallsTaken: 0 >> LastCall: 0 >> LastPause: 0 >> InCall: 0 >> Status: 1 >> Paused: 0 >> PausedReason: 0 >> Ringinuse: 0 >> >> This generates an error: >> Response: Error >> Message: Missing action in request >> >> I wasn´t able to find the correct action for sending events. Should this >> action listed in "actions:commands"? How can i sent the >> "QueueMemberAdded" Event? and what is the correct format? > AMI does not allow you to send events like this. They can only be generated and sent by the C code in Asterisk itself. >-- B.Sc. Frank Koch Systemmanagement DECOIT GmbH Fahrenheitstraße 9 D-28359 Bremen Tel.: +49-421-596064-20 Fax: +49-421-596064-09 E-Mail: koch at decoit.de Web: https://www.decoit.de Amtsgericht Bremen, HRB 21533 Geschäftsführer: Prof. Dr.-Ing. Kai-Oliver Detken