Hello to all.
Is there a way that I can prepend a couple of digits at an incoming pjsip trunk DID before I pass it to my inbound route.
The case scenario is the below:
Two carriers will both send me calls at a DID number 2222222222. I want at the calls of the first carrier that come from the 1st pjsip trunk to prepend 11 in front of the 2222222222 so that I have 112222222222 DID and make an inbound route so that I can route the call to my sangoma A104 port1.
At the calls from the second carrier which come form the pjsip trunk 2 I want to prepend 33 infront of the DID so that I will have the DID 332222222222 and create another inbound route to route the call in my A104 port 2.
The easy way of course would be to ask my two carriers to prepend the digits and send me the final DID’s but I’m looking for an alternative in case they can’t.
Thank you in advance for any information.