Inbound CID reformat

Status
Not open for further replies.

jreddy

Forum User
Joined
Jun 20, 2017
Messages
45
Reaction score
4
I have a simple rule set up to strip the + and the '1' from the incoming number, but it is not working. My provider sends +12145551212 and I want it to display the 10 digits only. Essentially, all US calls should display 10 digits. Here is the way it is setup.

Source pattern - +(1)(...)(.*)
Replace pattern - \2\3

So according to the documentation the displayed number in the above example should be 2145551212. But it is still displayed on the Yealink T58 phone as +12145551212. So how should this be setup.
 
Have a look at scenario 1 in this link. But note, they are deleting 3 digits (...). Also see the replace pattern.

https://www.3cx.com/docs/cid-reformatting/
That is the exact example I looked at and hence kept \2\3 the 2nd and 3rd variable giving it 10 digits. Here is what the call log shows - +12145551212(2145551212). So not sure if it is telling me that it is stripping the + and the '1'. However on the Yealink call history the number is displayed as +12145551212.
 
But you want to eliminate the first and second variable and keep the third only, which is the entire 10 digit number.
 
But you want to eliminate the first and second variable and keep the third only, which is the entire 10 digit number.
That is incorrect...according to the documentation -

WM3dgJetbOhcGMl54YA2Ifmnw-1-vrEaO9asF6g75kiEwdtOAaU_lnAu4wZBDJ_1Q-PjXe7cfYZMIUTdaj30c57u7QJKjPSvscLcJ99pXDqsTVp3QSjSYjfacO0gTInLhg



In this example:

  • + will be removed,
  • (1) refers to the country code for USA and is considered the first variable – \1
  • (…) refers to a 3 digit area code and is the second variable – \2
  • (.*) The remaining number and therefore this is the third variable – \3
This means is that we are keeping only the 3rd variable – the local number only. So an incoming number that is presented like this: +18135910130 will be shown as 5910130.

Notice \3 only keeps the 7 digits. See my attached screenshot of the call log. Also, when the call comes in the Yealink and the grandstream both display both number formats. But after the call, the call history just shows the original +1 format. The system does not retain the number without the + and 1 - just the 10 digits. So what am I missing?
 

Attachments

  • inbound CID.jpeg
    inbound CID.jpeg
    41.3 KB · Views: 43
So try +(1)(.*) /2

You are not removing the area code as in the example, so only two variables, and you want the entire 2nd variable (the remaining number), only removing the + and 1
 
Hello @jreddy

According to documentation
  • These rules will not rewrite the incoming From:Display value,which means that if the call has been received with +18135910130, the display will still show these numbers, but the “core part” of the number to be dialed has been updated.
Make sure that this is not the case and that the number is not also received in the From:Display Name
https://www.3cx.com/docs/cid-reformatting/
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,894
Messages
589,600
Members
164,763
Latest member
Techmansam