I’m using asterisk 20 with AMI, wrote a dialer application using python3 / Panoramisk and Asyncio. The basic operation is the sales rep joins a conference bridge as a staff and bridge admin, when on the bridge without a caller the dialer starts dialing and transfers any answered call to the bridge. When the bridge has a caller, it is marked as inactive, if there are no active bridges the dialer stops. Where I am looking to expand the app, we have a need for an outside server to inject a call into the dialer with top priority, this is a customer who has requested a call. I send the call to an ext@context that does the dialing and it connects the caller to a caller context to be processed into the bridge.
Looking for ideas / thoughts on how i’m doing this, any better methods?
What would be the best way to inject the request for a call into the system? If I sent a message event I could have the dialer pick it up and act on it or I can just skip the dialer and do the originate execution the dialer does for calls. We have n8n / nodered available, what’s the best way to send this call request into asterisk? ARI? AMI?
I know this post is a bit all over the place, but getting some progress over here and wanted to get some input.