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 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.