[英]How to channel originate SIP in Asterisk ARI?
I try to make call via Asterisk REST API, I want to make a call like this (CLI command example):我尝试通过 Asterisk REST API 拨打电话,我想拨打这样的电话(CLI 命令示例):
channel originate SIP/4444@sipprovider application playback tt-monkeys
I try to use curl for that:我尝试使用 curl :
curl -v -u admin:pass -X POST "http://127.0.0.1:8085/ari/channels?endpoint=SIP/1000&extension=4444&context=sipprovider"
When I post the request I get this error:当我发布请求时,我收到此错误:
Allocation failed
What did I do wrong?我做错了什么?
If I try using SIP, I get the same error.如果我尝试使用 SIP,我会遇到同样的错误。 You might have PJSIP enabled instead of SIP.
您可能启用了 PJSIP 而不是 SIP。
Try using PJSIP instead of SIP.尝试使用 PJSIP 而不是 SIP。 Example:
例子:
curl -v -u asterisk:asterisk -X POST "http://localhost:8088/ari/channels?endpoint=PJSIP/5001&extension=5002&context=internal"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.