ARI Originate and dial after the endpoint answers with custom trunk


#1

Hi.
I need to dial phone with custom trunk after the endpoint answers. How i can do that?


#2

Extension and context are where the dialed endpoint goes in the dialplan once answered. You don’t need to put “@MyTrunk” at the end.


#3

After ext400 answer, I need to dial phone with custom trunk. How i can do that?


#4

Define custom trunk. What does that mean?


#5

I need to dial 1234567890 with trunk “MyTrunk”, not “AnotherThunk”.
For example, to originate call with trunk “MyTrunk”, i need to write SIP/1234567890@MyTrunk in endpoint.
But I need to dial 1234567890 with trunk “MyTrunk” after the endpoint answers.


#6

You can’t dial directly from the originate. You have to direct it into the dialplan at a spot and do a Dial() from there. If you want it to be dynamic you would set channel variables on the channel which contain information about what trunk and such to use, and then use that in the dialplan logic.