How can I set CALLERID when using DIAL() with ARI?

Hello.

I’m trying to connect the call to the outside line using asternisk.
I’m currently using astirisk 16.
I succeeded in making a call by referring to bridge-dial.
(https://wiki.asterisk.org/wiki/display/AST/ARI+and+Bridges:+Basic+Mixing+Bridges)
But all I wanted was a connection before I called outside.
I found out early bridge by searching.
(https://blogs.asterisk.org/2016/08/24/asterisk-14-ari-create-bridge-dial/)
After that, I was able to make a successful call using early bridge.

However, I don’t know how to set up a dialing number.

When using originate, CALLERID was used to set the dialing number.
However, CALLERID cannot be set when using create and dial.

I want a way to set CALLERID or P-Assigned-Identity.
I need help to know which method to set CALLERID or P-Asserted-Identity.

If you use the CONNECTEDLINE dialplan function[1] in variables I believe that may do as you wish. Specifically setting the name and num.

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Function_CONNECTEDLINE

I’m sorry but I didn’t understand.
How can I use CONNECTEDLINE in ARI?

The variables option takes dialplan functions, you can use that to set CONNECTEDLINE information.

Thank you very much.
Now I know setChannelVar is to set.
I didn’t know the explanation in detail, but I realized it because of you.

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