Versions Compared

Key

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

...

When you set one line manually you have to “cut” incoming called number in Gateway group to the pattern that you defined in “Inbound routes”.

...

 

 

 

Prefix    

 

City prefix

 

Number 

 Comment

 

 

 

 0049

 

 2871

 

 2397   

 

 567 

Called number 0049 2871 2397567

 

 

 

+49

 

 2871

 

 2397   

 

 567 

Called number +49 2871 2397567

 

 

 

 49

 

 2871

 

 2397    

 

 567 

Called number 49 2871 2397567

 

 

 

0

 

  2871

 

 2397   

 

 567

 

 

 

 

 

 

 2871

 

2397   

 

 567

 Called number 02871 2397567

 

 

 

 

 

 

 

 2397

 

 567 

Called number 2397567

 

 

(?:

0049|\+49|49|0

)? 

 

 

   

 

 

It will be checked if 0049 or +49 or 49 or 0 is part of incomming number.

If yes, this part will be cut off.

 

(?:

 

 

 

2871

)?

 

 

 

It will be checked if 2871 is part of incomming number.

If yes, this part will be cut off.

^(?:

 

 

 

 

 

 

2397

)?

 

 It will be checked if 2397 is part of incomming number.

If yes, this part will be cut off.

 

 

 

 

 

 

 

 

 

(.*)

All numbers, who are still there, they will be saved in $1

^(?:

(?:

(?:

0049|\+49|49|0

)?

2871

)?

2397

)?

(.*)

Expression.

                                      ^(?: ( ?: (?: 0049|\+49|49|0)?2871)? 2397 )?(.*)     In $1 will be saved 567.

...

 

 

Prefix

 

City prefix

 

Number

Comment

 

 

0049

 

2871

 

 2397567 

Called number 0049 2871 2397567

 

 

+49

 

2871

 

 2397567 

Called number +49 2871 2397567

 

 

49

 

2871

 

 2397567 

Called number 49 2871 2397567

 

 

0

 

2871

 

 2397567

 

 

 

 

 

2871

 

 Called number 02871 2397567

 

 

 

 

 

 

 2397567 

Called number  2397567 

 

(?:

0049|\+49|49|0

)?

 

 

 

It will be checked if 0049 or +49 or 49 or 0 is part of incomming number.

If yes, this part will be cut off.

^(?:

 

 

 

2871

)?

 

It will be checked if 2871 is part of incomming number.

If yes, this part will be cut off.

 

 

 

 

 

 

(.*)

All numbers, who are still there, they will be saved in $1

^(?:

(?:

0049|\+49|49|0

)?

2871

)?

(.*)

Expression.

                                      ^( ?: (?: 0049|\+49|49|0)?2871)?(.*)                       In $1 will be saved  2397567.

 

 

Explanation:

(.*) – all numbers which still are there

...