Channel Originate Setting Caller ID

asterisk
Tags: #<Tag:0x00007f7025a3eed0>

(Tanmoy) #1

I need to place two calls and connect them both through API. I’ not simulating the following command to achieve that through an API.

channel originate local/1234567890@from-internal extension 2345678901@from-internal

This is working fine. But I need to set Caller ID.
I have the caller IDs set at the extension level. If I can call from the extension, then caller id can be set. So I tried to use 3117 extension without any success

channel originate local/1234567890@3117 extension 2345678901@3117

I also tried with the trunk name after @ but that was also failed.

Can you guys guide me to place the calls through an extension or custom dialplan to make a call by setting a caller ID?

Thanks in advanced.


(Communication Technologies) #2

Can you build a set caller ID function and point to that in your dialplan?
https://wiki.freepbx.org/display/F2/Set+CallerID+User+Guide


(Tanmoy) #3

I’ve solved it by creating custom dial plan.


(system) closed #4

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