Making an external call using ARI

I would like to make an external call using ARI from one of the extensions. I read that I need to use a dialplan for this, and that’s fine, but when I call the context as my dialplan, it still invokes some default one. What could be the reason for this?

GT is my trunk and macro-outbound-callerid is my dialplan.

It does what you tell it to do, so if it’s not then either you aren’t passing the correct information or your dialplan isn’t working as you think it is. You’d need to actually show what happens using an Asterisk console log with a call attempt.

In the console, nothing else can be seen except this:

image

I also increased the logging levels and still no details.

So, did an outgoing call actually get placed to “PJSIP/GT”? Is it reachable? Do you see the SIP traffic in “pjsip set logger on”?

In sngrep, the sent invite doesn’t contain the number I want to call at all.
I don’t know how to check if it has been forwarded; I can’t find anything in the logs.

The “endpoint” specifies what is called. It contains no number to be called. To specify a number it would be: “PJSIP/number@GT”. Once that call is answered, it is then sent into the dialplan at the location specified by “context”, “extension”, and “priority”.

If this isn’t what you want to do, you’ll need to explain your end goal.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.