Change dialled number to another

Howdy,

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,

https://wiki.freepbx.org/display/FPG/Outbound+Routes+Module+User+Guide#OutboundRoutesModuleUserGuide-DialPatternsTab

Hello @jasb,

You can do that in the outbound routes. Add the 117 as a prefix and 117239 as a suffix. In the dial pattern add X.
Here is a screenshot:
image

Thank you,

Daniel Friedman
Trixton LTD.

Daniel’s method is half right. You must leave the final X. field empty.

1 Like

Unless you mean e.g. when 117456 is dialed 117239456 is sent, leave the match pattern blank.

2 Likes

@danielf perfect, worked, without the “X.” as @lgaetz said.

Thank you all!

1 Like

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:

[from-internal-custom]
exten => 117,1,Log(NOTICE, Adding 239 digits to 117 dial pattern)
same => n,Goto(from-internal,117239,1)

Thank you,

Daniel Friedman
Trixton LTD.

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.