Hey,
i am currently trying to trigger an outbound call via the agi in python.
The relevant lines look something like this:
agi = AGI()
...
self.agi.exec_command("Dial", f"SIP/{self.receiver_phone_number},30)")
Just running this script doesnt work tho. I already read through some other topics and it seems doing this doesnt really work with agi.
However apparently this would work when i already had an active inbound call ( i assume at least ) and then the inbound call would be “rerouted” to the new one.
Could it be possible to just create some kind of dummy inbound call and then it works? Or is there a better solution?
My usecase is a little computer assistant which answers some questions on the phone. Now i want this assistant to be able to make calls itself and receive information.
So basically i want to achieve the same functionality which i would get by this:
same = n,EAGI(/home/asterisk/main.py)
So complete control over the call via python, only now with an outgoing call.
Its not important for me to be able to trigger the call via python, if i can do it through the terminal or similar somehow that would be enough.
Greetings