Solved CID Reformatting (Adding prefix +)

Discussion in '3CX Phone System - General' started by mukkacow, Oct 29, 2017.

Thread Status:
Not open for further replies.
  1. mukkacow

    Joined:
    Oct 26, 2017
    Messages:
    44
    Likes Received:
    5
    Hello,

    I'm trying to reformat incoming call CID but can't figure out.
    I would like to add "+" to all incoming calls. I added this INBOUND rule:

    Source pattern: (.*)
    Replace pattern: +\

    But what I get is

    - when ringing numbers are shown as 41xxxxxxxxxxxxx and then when looking in the call histry I see 2 numbers "41xxxxxxxxxxxxx +41xxxxxxxxxxxxx".

    Any idea how to simply add the "+" on every incoming call ?

    Thanks you
     
  2. leejor

    leejor Well-Known Member

    Joined:
    Jan 22, 2008
    Messages:
    10,779
    Likes Received:
    286
    I don't think I've seen a post where someone wanted to add a +. They usually want to remove the + from a directory stored number and convert that to an international prefix so it can be handled by the outbound rules. Many Caller ID devices are not capable of displaying anything other than numeric figures unless it is in the name field.
     
  3. mukkacow

    Joined:
    Oct 26, 2017
    Messages:
    44
    Likes Received:
    5
    Hi leejor,

    I have many DID and all incoming calls are displayed when ringing in 3CX clients as +41... +49... and this for me is okay. Unfortunately for 1 DID incoming number the + is stripped and I need to add it.

    ;-)
     
  4. sip.bg

    sip.bg Active Member

    Joined:
    Nov 7, 2016
    Messages:
    704
    Likes Received:
    219
    At least replace pattern should look like as: +\1
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. mukkacow

    Joined:
    Oct 26, 2017
    Messages:
    44
    Likes Received:
    5
    Hi sip.bg, you're right I forgot the "1" here in the forum but inboud rules in 3CX was correct.
    Patterns add the + as we want but results is like attached images.

    - If iPhone is locked incoming call appears without the +.
    - If you're in 3CX application incoming calls are coming with 2 numbers (one with +41 and one with only 41).
    - Call history will show 2 numbers instead of 1 with +41.

    Any idea how to fix this? ;-)
     

    Attached Files:

  6. sip.bg

    sip.bg Active Member

    Joined:
    Nov 7, 2016
    Messages:
    704
    Likes Received:
    219
    Please note that 3CX client shows caller's name and caller's number on incoming call. If no name is found, the incoming number (without '+' sign) will be used instead. If you have several such cases you may add these numbers in company phonebook.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. mukkacow

    Joined:
    Oct 26, 2017
    Messages:
    44
    Likes Received:
    5
    Hi, I see. This happens only when I use the ""OriginatorCallerID" Original Caller number will be sent" to get patterns to works :((
     
  8. mukkacow

    Joined:
    Oct 26, 2017
    Messages:
    44
    Likes Received:
    5
    Hi, meantime I have solved the problem and all now is displayed correctly with the +.

    As after pattern change I have this:

    From: "41xxxxxxxxx"<sip:+41xxxxxxxxx@127.0.0.1:5060;nf=e>;tag=5b72a163 "​

    In inbound I set caller name as: P-Called-Party-ID : Display Name

    Now all works like a charms ;-)
     
  9. YiannisH_3CX

    YiannisH_3CX Support Team
    Staff Member 3CX Support

    Joined:
    May 10, 2016
    Messages:
    6,016
    Likes Received:
    421
    Glad the issue is resolved and thank you for sharing your solution.
     
Thread Status:
Not open for further replies.