Hello i want to make a outbound call to my phone with ari on asterisk 16 someone can help how to do it also i am using pjsip
Also do i need to use ari + agi or just ari
import requests
url = ‘http://ip:8088/ari/channels’
auth = (‘user’, ‘pass’)
query_params = {
‘endpoint’: ‘PJSIP/101’,
‘extension’: ‘101’,
‘context’: ‘from-internal’,
‘priority’: ‘1’,
‘callerId’: ‘1110’
}
response = requests.post(url, auth=auth, params=query_params)
print(response.status_code)
print(response.text)
when i tried this on asterisk 16 i got
500
{
“error”: “Allocation failed”
}
You don’t need any of them. You can use call files. The best options depends on the complete picture of what you are trying to do.
You should google “click to call”.
If you just need to make calls, then call files are probably the simplest way. If you need to track the progress of calls, then you need to use AMI or ARI.
I have examples of the latter here.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.