# AMI queue events sample code

**URL:** <https://community.asterisk.org/t/ami-queue-events-sample-code/97627>\
**Category:** Asterisk APIs\
**Created:** [July 2, 2023, 12:36pm UTC](https://community.asterisk.org/t/ami-queue-events-sample-code/97627 "2023-07-02T12:36:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anas27](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@anas27](https://community.asterisk.org/u/anas27)\
**Post date:** [July 2, 2023, 12:36pm UTC](https://community.asterisk.org/t/ami-queue-events-sample-code/97627/1 "2023-07-02T12:36:57Z")

</div>

iam using ARI code for manage the call flow. how can i get queue events using AMI.

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [July 2, 2023, 1:46pm UTC](https://community.asterisk.org/t/ami-queue-events-sample-code/97627/2 "2023-07-02T13:46:33Z")

</div>

ARI and AMI are two separate things. This question is also extremely broad and vague. You connect to the AMI socket, log in, and get events.

If you want example code you’d also want to specify a programming language, or alternatively find an existing package for the language and use that to connect.

---

<div class="post-metadata">

**Author:** ![anas27](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@anas27](https://community.asterisk.org/u/anas27)\
**Post date:** [July 3, 2023, 4:47am UTC](https://community.asterisk.org/t/ami-queue-events-sample-code/97627/3 "2023-07-03T04:47:57Z")

</div>

Thanks for your replay…

Queue event sample AMI code for python.

---

<div class="post-metadata">

**Author:** ![ldo](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@ldo](https://community.asterisk.org/u/ldo)\
**Post date:** [July 3, 2023, 11:33pm UTC](https://community.asterisk.org/t/ami-queue-events-sample-code/97627/4 "2023-07-03T23:33:55Z")

</div>

I have examples of both AMI and ARI event listeners [here](https://github.com/ldo/seaskirt_examples). And also an Asterisk console monitor, just for fun.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [August 2, 2023, 11:34pm UTC](https://community.asterisk.org/t/ami-queue-events-sample-code/97627/5 "2023-08-02T23:34:19Z")

</div>

Closed on August 2, 2023, 11:34pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
