I need to dial phone with custom trunk after the endpoint answers. How i can do that?
Extension and context are where the dialed endpoint goes in the dialplan once answered. You don’t need to put “@MyTrunk” at the end.
After ext400 answer, I need to dial phone with custom trunk. How i can do that?
Define custom trunk. What does that mean?
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.
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.