3

I want to make a call using Asterisk 13 ARI from my mobile number to another mobile number. I have tried different calls but all return "Allocation failed" response:

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.

How can I initiate a call from my mobile phone to another mobile phone using ARI?

EDIT

arheops answer helped me find the working code:

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

Thank you!

Cumatru Cosu
  • 103
  • 2
  • 7
  • Hi, I do have same question and as I am new to Asterisk ARI. I didn't get how above answer will be implemented. I am using Python requests to use ARI api, but didn't find any of the API that will originate a call to extension, or other Softphone configured on Asterisk. If you have enough time, can you share an example in any languages such as perl, or javascript or python.. Thanks – Gopal Prasad Jun 27 '18 at 05:17

1 Answers1

1

Unfortanly you can't use ARI without understanding asterisk internals. You need read some book for beginners.

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

both variant have be working

arheops
  • 15,544
  • 1
  • 21
  • 27
  • Thank you, your answer helped me find the working code: endpoint:Local/my_mobile_number@from-internal,extension:other_mobile_number,context:from-internal,priority:1 – Cumatru Cosu Mar 05 '15 at 15:02
  • Any book that you recommend for this? – edmz Oct 30 '20 at 20:36