I want when users dial 117, that the number that is sent to the Trunk become 117239.
How could this be possible?
Using outbound routes, i could do it for the prefix, but what i need is the other side, to add numbers and not remove them.
Thanks in advanced,
You can do that in the outbound routes. Add the 117 as a prefix and 117239 as a suffix. In the dial pattern add
Here is a screenshot:
Daniel’s method is half right. You must leave the final
X. field empty.
Unless you mean e.g. when 117456 is dialed 117239456 is sent, leave the match pattern blank.
@danielf perfect, worked, without the “X.” as @lgaetz said.
Thank you all!
Hello @lgaetz, @Stewart1
Nice catch, I missed the part that it is a 6 digit pattern. Usually, I do manipulation like that in a separate context and not in the outbound routes module.
Something like that:
exten => 117,1,Log(NOTICE, Adding 239 digits to 117 dial pattern)
same => n,Goto(from-internal,117239,1)
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.