Versions Compared

Key

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

 

 

When you set one up an outside line manually you have to “cut” incoming caller-ID in "Gateway groups" to the incoming number in Gateway group to match the pattern that you have defined in “Inbound routes”.

 

Image Added

E.g. the incoming If phone number is 02871 2397567 and we like to let pass only you want to map the last 3 digit digits (567) we to extension 12, you have to “cut”

02871 2397.

 

cut off  02871 2397. First step would be to set the "Pattern" in "Inbound routes" to ^(567) and "Target" to 12. The next step is to define the filtering rules in "Gateway groups".

Depending on provider, incoming numbers can be formatted in different ways. Therefore, all possible formats should be checkedThere are sever way how can number come in, that way we have to check all possibility’s.

 

 

 

 

 

 

Prefix    

 

City prefix

 

Number 

 Comment

 

 

 

 0049

 

 2871

 

 2397   

 

 567 

 567

Incoming number 0049 2871 2397567 

 

 

 

+49

 

 2871

 

 2397   

 

 567 

 567

Incoming number +49 2871 2397567 

 

 

 

 49

 

 2871

 

 2397    

 

 567

 567

Incoming number 49 2871 2397567 

 

 

 

0

 

  2871

 

 2397   

  567

 567 

Incoming number 02871 2397567

 

 

 

 

 2871

 

2397   

  567

  

 2397

 

 567 

Incoming number 2397567

 

 

 

2397

 

 567

 

 

 

(?:

0049|\+49|49|0

)? 

 

 

   

 

 

 Will be checkt if Check wether 0049 or +49 or 49 or 0 is part of incomming the incoming number.

If yes, this part will be cut off.

 

(?:

 

 

 

2871

)?

 

 

 

 Will be checkt if Check wether 2871 is part of incomming the incoming number.

If yes, this part will be cut off.

^(?:

 

 

 

 

 

 

2397

)?

 

 Will be checkt if Check wether 2397 is part of incomming the incoming number.

If yes, this part will be cut off.

 

 

 

 

 

 

 

 

 

(.*)

 All number those are still there All numbers that are left, will be saved in $1

^(?:

(?:

(?:

0049|\+49|49|0

)?

2871

)?

2397

)?

(.*)

ExpressionComplete expression.

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

  

Image Added

 

 

 

 

 

 

 

 

 

If we what If you want to use the complete number 2397567 in “Inbound routes” that .

Image Added

 

The filtering rules should look like this:

 

 

 

 

 

Prefix

 

City prefix

 

Number

Comment

 

 

0049

 

2871

 

 2397567

 2397567

Incoming number 0049 2871 2397567 

 

 

+49

 

2871

 

 2397567

 2397567

Incoming number +49 2871 2397567 

 

 

49

 

2871

 

 2397567

 2397567

Incoming number 49 2871 2397567 

 

 

0

 

2871

 

 2397567

 

 2397567 

Incoming number 02871 2397567

 

 

2871

  2397567

 

 

 

 2397567 

Incoming number  2397567

 

 

 2397567

 

 

(?:

0049|\+49|49|0

)?

 

 

 

Will be checkt if Check wether 0049 or +49 or 49 or 0 is part of incomming the incoming number.

If yes, this part will be cut off.

^(?:

 

 

 

2871

)?

 

Will be checkt if Check wether 2871 is part of incomming the incoming number.

If yes, this part will be cut off.

 

 

 

 

 

 

(.*)

All number those are still there numbers that are left, will be saved in $1

^(?:

(?:

0049|\+49|49|0

)?

2871

)?

(.*)

ExpressionComplete expression.

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

 

Image Added

 

Explanation:

(.*) – all numbers which are still are there

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

(?:XXXXX)? – means if XXXXX exist exists, this part will be “cut”.

| – ist is "or"