# Asterisk to OpenAI Realtime: The Definitive MVP (In Progress)

**URL:** <https://community.asterisk.org/t/asterisk-to-openai-realtime-the-definitive-mvp-in-progress/107117>\
**Category:** AI\
**Created:** [February 25, 2025, 6:41am UTC](https://community.asterisk.org/t/asterisk-to-openai-realtime-the-definitive-mvp-in-progress/107117 "2025-02-25T06:41:35Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![InfinitoCloud](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/infinitocloud/32/8806_2.png) [@InfinitoCloud](https://community.asterisk.org/u/InfinitoCloud)\
**Post date:** [April 14, 2025, 2:55pm UTC](https://community.asterisk.org/t/asterisk-to-openai-realtime-the-definitive-mvp-in-progress/107117/21 "2025-04-14T14:55:39Z")

</div>

Hello,

I’m the author of the demo. I can offer support services if you need it to work for your specific use case.

Thanks.

---

<div class="post-metadata">

**Author:** ![hiteshjb](https://avatars.discourse-cdn.com/v4/letter/h/a8b319/32.png) [@hiteshjb](https://community.asterisk.org/u/hiteshjb)\
**Post date:** [April 14, 2025, 11:53pm UTC](https://community.asterisk.org/t/asterisk-to-openai-realtime-the-definitive-mvp-in-progress/107117/22 "2025-04-14T23:53:22Z")

</div>

How do I reach out to you? I am new to this community

---

<div class="post-metadata">

**Author:** ![InfinitoCloud](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/infinitocloud/32/8806_2.png) [@InfinitoCloud](https://community.asterisk.org/u/InfinitoCloud)\
**Post date:** [April 26, 2025, 2:39am UTC](https://community.asterisk.org/t/asterisk-to-openai-realtime-the-definitive-mvp-in-progress/107117/23 "2025-04-26T02:39:12Z")

</div>

UPDATES!

8.5. Test and debug. - Done

8.6. Create the FreePBX Module. - Done

8.7. Test and debug. - Done

8.8. Build the second ARI app version 0.2. - Done, better buffers, syncro and debug.

8.9. Test and debug. - Done. Sip Trunks and Remote Extensions.

8.10. Integrate the most popular requested features. - Done, included support for SIP Trunks and Remote Extensions.

1. What can you do? - Share this post please!

Subscribe to this post for updates until the MVP is complete.  
Help me test it and report bugs or issues to the GitHub repo once it’s ready.  
Suggest functionalities! I’ll prioritize the most relevant ones for future versions.

 ![freepbx_module](https://global.discourse-cdn.com/asterisk/original/2X/2/2a8d62a0723c296bed1a32fdac359267940db4ed.png)

To do:

- I’ll make the FreePBX module URL installation package.
- Create a demo of SIP Trunk and Remote Extension support.
- Upgrade the github repo.

Spam:

Do you want to integrate Asterisk with OpenAI in real time for your specific use case?  
Want to save lots time and money on research?  
I can help. I offer support services for Asterisk ARI applications. Free consultation! Guaranteed. Email me at: [hello@infinitocloud.com](mailto:hello@infinitocloud.com)

Thanks.

---

<div class="post-metadata">

**Author:** ![KishoOoOo](https://avatars.discourse-cdn.com/v4/letter/k/2bfe46/32.png) [@KishoOoOo](https://community.asterisk.org/u/KishoOoOo)\
**Post date:** [April 28, 2025, 8:24am UTC](https://community.asterisk.org/t/asterisk-to-openai-realtime-the-definitive-mvp-in-progress/107117/24 "2025-04-28T08:24:43Z")

</div>

This is very good.. I have been trying for a while to connect but with an internal model So that the whole process is local. But there were some problems with the sound transmission.

Do you have a Discord so I can contact you?  
My discord is : KishoOoOo#9664

---

<div class="post-metadata">

**Author:** ![hzapa](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/hzapa/32/8995_2.png) [@hzapa](https://community.asterisk.org/u/hzapa)\
**Post date:** [May 6, 2025, 10:59pm UTC](https://community.asterisk.org/t/asterisk-to-openai-realtime-the-definitive-mvp-in-progress/107117/25 "2025-05-06T22:59:08Z")

</div>

Hi, It’s work like you said, Thanks

I tried in spanish. I’ll make more testing.

Regards

```auto

Running as user 'asterisk'
Running under group 'asterisk'
Connected to Asterisk 20.13.0 currently running on asterisk113 (pid = 463445)
asterisk113*CLI> 

S-0042 | 2025-05-06T22:47:18.766Z [INFO] [Server] Sent audio transcribed for channel 1746571633.9 | Transcript: "Hola, ¿me escuchas?" | Duration: 0.94s | Status: Received
S-0045 | 2025-05-06T22:47:18.822Z [INFO] [Server] Audio delta received for channel 1746571633.9 | Size: 11.72 KB
S-0047 | 2025-05-06T22:47:18.913Z [INFO] [Server] Audio delta received for channel 1746571633.9 | Size: 23.44 KB
S-0049 | 2025-05-06T22:47:19.056Z [INFO] [Server] Audio delta received for channel 1746571633.9 | Size: 35.16 KB
S-0051 | 2025-05-06T22:47:19.117Z [INFO] [Server] Audio delta received for channel 1746571633.9 | Size: 39.84 KB
S-0054 | 2025-05-06T22:47:19.127Z [INFO] [Server] Response received for channel 1746571633.9 | Transcript: "¡Hola! Sí, te escucho. ¿En qué puedo ayudarte hoy?" | Duration: 1.31s | Status: Received
S-0058 | 2025-05-06T22:47:19.130Z [INFO] [Server] Response completed for channel 1746571633.9 | Duration: 0.65s | Audio Fragments: 9 | Text Fragments: 16 | RTP Packets: 74 | RTP Bytes: 8800
C-0003 | 2025-05-06T22:47:19.130Z [INFO] [Client] Cleared OpenAI audio buffer for channel 1746571633.9

```

---

<div class="post-metadata">

**Author:** ![Sscftolicsz](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/sscftolicsz/32/9088_2.png) [@Sscftolicsz](https://community.asterisk.org/u/Sscftolicsz)\
**Post date:** [May 7, 2025, 8:32am UTC](https://community.asterisk.org/t/asterisk-to-openai-realtime-the-definitive-mvp-in-progress/107117/26 "2025-05-07T08:32:36Z")

</div>

hi hzapa do you have any discord? i want to ask something about this

---

<div class="post-metadata">

**Author:** ![InfinitoCloud](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/infinitocloud/32/8806_2.png) [@InfinitoCloud](https://community.asterisk.org/u/InfinitoCloud)\
**Post date:** [May 7, 2025, 4:39pm UTC](https://community.asterisk.org/t/asterisk-to-openai-realtime-the-definitive-mvp-in-progress/107117/27 "2025-05-07T16:39:32Z")

</div>

Well, the Ari app was designed and tested solely for OpenAI Realtime models, which means no other model can work as it does.  
To make it work with another AI model, significant code changes are required.  
Obviously, it’s a huge advantage to work with local models to reduce costs, but you also need to consider whether your local model is multimodal with audio support and the latency of its response. There are many aspects to consider when using a different model than the one the Ari app was designed for.

---

<div class="post-metadata">

**Author:** ![InfinitoCloud](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/infinitocloud/32/8806_2.png) [@InfinitoCloud](https://community.asterisk.org/u/InfinitoCloud)\
**Post date:** [May 7, 2025, 4:40pm UTC](https://community.asterisk.org/t/asterisk-to-openai-realtime-the-definitive-mvp-in-progress/107117/28 "2025-05-07T16:40:31Z")

</div>

Great!

---

<div class="post-metadata">

**Author:** ![hzapa](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/hzapa/32/8995_2.png) [@hzapa](https://community.asterisk.org/u/hzapa)\
**Post date:** [May 9, 2025, 12:07am UTC](https://community.asterisk.org/t/asterisk-to-openai-realtime-the-definitive-mvp-in-progress/107117/29 "2025-05-09T00:07:21Z")

</div>

Course

---

<div class="post-metadata">

**Author:** ![delinecnlin](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/delinecnlin/32/9166_2.png) [@delinecnlin](https://community.asterisk.org/u/delinecnlin)\
**Post date:** [May 30, 2025, 8:34am UTC](https://community.asterisk.org/t/asterisk-to-openai-realtime-the-definitive-mvp-in-progress/107117/30 "2025-05-30T08:34:13Z")

</div>

Does it support Azure OpenAI API?

---

<div class="post-metadata">

**Author:** ![InfinitoCloud](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/infinitocloud/32/8806_2.png) [@InfinitoCloud](https://community.asterisk.org/u/InfinitoCloud)\
**Post date:** [May 30, 2025, 5:23pm UTC](https://community.asterisk.org/t/asterisk-to-openai-realtime-the-definitive-mvp-in-progress/107117/31 "2025-05-30T17:23:39Z")

</div>

Hi, yes, I have a version for Azure OpenAI that works well, with support for SIP trunks. You can contact me at: [hello@infinitocloud.com](mailto:hello@infinitocloud.com)  
Regards.

---

<div class="post-metadata">

**Author:** ![Telestar](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@Telestar](https://community.asterisk.org/u/Telestar)\
**Post date:** [June 9, 2025, 5:11pm UTC](https://community.asterisk.org/t/asterisk-to-openai-realtime-the-definitive-mvp-in-progress/107117/32 "2025-06-09T17:11:50Z")

</div>

Hi, I think you can improve the code by not doing conversions. Open ai realtime excepts g711\_ulaw  
So in session: add  
input\_audio\_format: ‘g711\_ulaw’,  
output\_audio\_format: ‘g711\_ulaw’,  
Remove the conversions muLawToPcm24kHz and pcmToMuLaw

---

<div class="post-metadata">

**Author:** ![InfinitoCloud](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/infinitocloud/32/8806_2.png) [@InfinitoCloud](https://community.asterisk.org/u/InfinitoCloud)\
**Post date:** [June 18, 2025, 5:08pm UTC](https://community.asterisk.org/t/asterisk-to-openai-realtime-the-definitive-mvp-in-progress/107117/33 "2025-06-18T17:08:48Z")

</div>

Yes, I’m working on an improved version to share and update the repository, also focusing on ptime 20 ms and others.

---

<div class="post-metadata">

**Author:** ![InfinitoCloud](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/infinitocloud/32/8806_2.png) [@InfinitoCloud](https://community.asterisk.org/u/InfinitoCloud)\
**Post date:** [June 28, 2025, 10:32am UTC](https://community.asterisk.org/t/asterisk-to-openai-realtime-the-definitive-mvp-in-progress/107117/34 "2025-06-28T10:32:52Z")

</div>

Hi, here is the updated version, please test it and leave your comments. Thanks!

Asterisk to OpenAI Realtime Community Edition

> [@Asterisk to OpenAI Realtime Community Edition](https://community.asterisk.org/t/asterisk-to-openai-realtime-community-edition/108945):
>
> Hi, after receiving your feedback and speaking with customers, I’ve made many improvements and want to share with you the community version of the Asterisk to Open AI Realtime ARI App. Features: AI assistant with ultra-low latency. Supports cloud instances and SIP trunks. Supports system prompts. [[Asterisk to Openai Realtime Community Edition] ](https://www.youtube.com/watch?v=CamoPkQboOw) Repository: Ads: Do you want to integrate Asterisk with real-time AI for your specific use case? Do you want to save a lot of time a…

Asterisk to OpenAI Realtime PRO Edition

> [@Asterisk to OpenAI Realtime PRO Edition](https://community.asterisk.org/t/asterisk-to-openai-realtime-pro-edition/108946):
>
> Asterisk to OpenAI Realtime PRO Edition A paid version with extra functions: Features: Support for System Prompts to enable context and multilingual support. AI Agent for appointment scheduling, transcription, and emailing. Support for OpenAI functions to transfer to IVR or extensions. [[Asterisk to OpenAI Realtime PRO Edition] ](https://www.youtube.com/watch?v=yjVsBWgtlQc) Cost per license: US$250 to support the project. Looking for Sponsors! Email me at: [hello@infinitocloud.com](mailto:hello@infinitocloud.com) Thanks.

[Previous page](https://community.asterisk.org/t/asterisk-to-openai-realtime-the-definitive-mvp-in-progress/107117.md?page=1)
