Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If phone number is 02871 2397567 and you want  to let pass only last 3 digits (567) to extension 12, you have to cut off  02871 2397 and in "Inbound routes" set "Pattern" to ^(567) and "Target" to 12.

There are several ways forms how number can come from provider, depending on the provider. That's why you have to check all possibilities.

...

                                      ^(?: ( ?: (?: 0049|\+49|49|0)?2871)? 2397 )?(.*)    567 will be saved in $1 and compared to the pattern in "Inbound routes".

...

                        ^( ?: (?: 0049|\+49|49|0)?2871)?(.*)                      2397567 will be saved  in $1 and compared to the pattern in "Inbound routes".

...

(.*) – all numbers which still are there

$1 – is variable, in this variable will be saved all from (.*)

...