Outbound caller id rewriting based on dialed number prefix

Status
Not open for further replies.

mitch2k

Joined
Nov 6, 2012
Messages
3
Reaction score
0
Hi,

I have 3 phone numbers (coming into 3CX via other trunks). For example:
+12300000010
+12300000020
+12300000030

What I want is that by adding a code before the phonenumber I dial, to select the caller id that the recipient will see. For example when dialing 0112345678:

1*0112345678 will show +12300000010 on the recipients phone
2*0112345678 will show +12300000020 on the recipients phone
3*0112345678 will show +12300000030 on the recipients phone

According to https://www.3cx.com/docs/cid-reformatting/ I understand this should be possible by adding an outbound pattern. I tried:

Source: 1*(.*)
Replace: +12300000010

That is not working. However, I'm not sure if source refers to the recipient number or not.
To just test the functionality, I tested this rule:

Source: (.*)
Replace: +12300000010

I would assume that this replace all outbound caller id's to +12300000010. But it still shows the default CID of the trunk.

Anyone an idea how to get this working?

I saw some solutions where you can use a different trunk based on outbound rules (and strip the 1*) and then duplicate the trunk with different CID's, but that is not working since you can't have 2 trunks with the same authentication.

PS: I have only 1 SIP trunk where CLIP no screening is activated (so I can set any caller ID I want).

Thanks!
 
Hello @mitch2k

Please note that you can change your outbound caller ID either by setting it under extension settings or in the trunk. In order to be able to select an outbound caller ID using a prefix you need to use multiple trunks.
 
Hello @mitch2k

Please note that you can change your outbound caller ID either by setting it under extension settings or in the trunk. In order to be able to select an outbound caller ID using a prefix you need to use multiple trunks.
Hi,

but that won't work as far as I know since you can't add the same trunk multiple times?

Thanks
 
Absolutely you can but typically only with IP authenticated trunks and you have to have a unique trunk number on each. In your case it doesn't have to be a valid phone number since you are only using the other trunks for outbound call manipulation. Otherwise you need to use something like the CID addon from VoIP Tools.
 
but that won't work as far as I know since you can't add the same trunk multiple times?
That depends if the trunk is register/ authentication or IP based. With authentication trunks you cannot register the same trunk twice as the auth Id of the trunk cannot be the same and you may need to get a second trunk from your provider. With IP based providers however you can add the trunk twice to manipulate the caller ID.
 
Status
Not open for further replies.