【问题标题】:Asterisk ARI call from external to external从外部到外部的 Asterisk ARI 调用
【发布时间】:2015-02-27 11:34:37
【问题描述】:

我想使用 Asterisk 13 ARI 从我的手机号码拨打另一个手机号码。 我尝试了不同的调用,但都返回“Allocation failed”响应:

endpoint:my_mobile_number,extension:other_mobile_number,context:from-trunk

endpoint:SIP/my_mobile_number,extension:other_mobile_number,context:from-trunk

endpoint:SIP/my_mobile_number,extension:other_mobile_number,context:from-external

endpoint:my_mobile_number,extension:other_mobile_number,context:from-external

etc.

如何使用 ARI 从我的手机向另一部手机发起呼叫?

编辑

arheops 的回答帮助我找到了工作代码:

endpoint:Local/my_mobile_number@from-internal,extension:other_mobile_number,context:from-internal,priority:1

谢谢!

【问题讨论】:

  • 嗨,我有同样的问题,因为我是 Asterisk ARI 的新手。我没有得到上述答案将如何实施。我正在使用 Python 请求来使用 ARI api,但没有找到任何将发起对扩展程序的调用的 API,或在 Asterisk 上配置的其他软电话。如果你有足够的时间,你能分享一个任何语言的例子,如 perl,或 javascript 或 python.. 谢谢

标签: asterisk sip pbx


【解决方案1】:

不幸的是,如果不了解星号的内部结构,您将无法使用 ARI。你需要为初学者读一些书。

endpoint:Local/my_mobile_number@out_context,extension:other_mobile_number,context:out_context,priority:1

endpoint:SIP/my_mobile_number@myprovider_sip,extension:other_mobile_number,context:out_context,priority:1

两种变体都在工作

【讨论】:

  • 谢谢,您的回答帮助我找到了工作代码:endpoint:Local/my_mobile_number@from-internal,extension:other_mobile_number,context:from-internal,priority:1
  • 你有什么推荐的书吗?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-03-30
  • 1970-01-01
  • 2011-04-11
  • 2018-07-08
  • 2021-09-18
  • 1970-01-01
相关资源
最近更新 更多