Outbound calls with AMI

Hi, I’n newbie in Freepbx, but many years with Asterisk Vanilla..
Until now, in Asterisk, has many script that connect to my AMI and place a call, first internal extensions and then outgoing number, or first external number and the internal exte/queue..

I need do the same in Freepbx, exec an url, a php script, pass some variables, connecto to AMI, and make first outgoing calls, and when connect redirect to an internal ext/queue.

The problem is that when I try to make the first call, an external call, if I try to do something like that: “Local/${number}@from-internal” no works, this works with first internal call..

In CLI I see that Freepbx set many parameters, many variables that when I make a call with AMI no set…

How can I configure a call using context, for AMI, to make an external call? And when that call was answered rediret to an internal ext/queue?

Thanks

Our product SIP Caller lets you do what you need, in case you are interested in trying a different approach. SIP Caller registers to your FreePBX as a remote extension, and then makes calls to external numbers. It can automatically detect human answer vs answering machine, and send to your queue only calls connected to humans. The platform provides a user friendly UI to configure call flows, campaigns, it provides call reporting out of the box. And you can use a REST API to add numbers to a campaign, in case you want to automate this flow.

Feel free to give it a try, we offer a free trial.

Kind regards.


Ernesto Dos Santos Afonso
Co-Founder - SIP Caller
https://sipcaller.com
Try our cloud based outbound call dialer with FreePBX!

Share your AMI commands. Originating calls thru Asterisk AMI should work just fine using the local dialplan.

I have not here now, tomorrow I’ll can do… But my AMI command is normal, I dial a external numbert in from-internal context. Maybe that is the problem? The context? Which one should it be?
Thanks