Hello,
how to capture the DDI number from "To" header, in dynamic SIP trunk all incoming calls are landing on the pilot number and the "To" number will be added in the invite message.
any comments??
Do you mean that the INVITE row has the leading number and the actual DDI is in the 'To' header?
And what you want to do is route the call based on the 'To' header?