Note that, as he stated, Robert's example is for taking a 4-digit extension that was dialed and turn it into a full outbound phone number per NANP.
This also requires having your Number Plan set up to send those 4-digit numbers to an Outbound Route that includes this trunk, etc.
For what @Sébastien Arpin asked it is very similar, but you need to use a Match Expression that matches the numbers dialed outbound on your system and pre-pends the correct code. That becomes more complicated if you need to deal with a leading tel:+ in front of the number, and you may need to experiment a bit to hit upon the correct match expression and normalized number expression.
https://help.mypurecloud.com/articles/regular-expression-match-and-replace-examples-for-external-trunk-number-transformation/
------------------------------
George Ganahl GCP (Genesys Cloud), ICCE
Principal PS Consultant
Genesys
------------------------------
Original Message:
Sent: 10-13-2022 07:09
From: Kamil Pawlak
Subject: How to include a tech prefix (5 digit code in front of the destination number)
Hello,
Can you post examples of doing it in outbound trunk settings?
------------------------------
Kamil Pawlak
Peoplefone Polska S.A.
Original Message:
Sent: 03-21-2022 18:24
From: Robert Wakefield-Carl
Subject: How to include a tech prefix (5 digit code in front of the destination number)
Not very difficult. You can do this in the number plan for the site or in the outbound trunk settings under Identity. The former would affect all calls on that site and the later would only affect calls out that trunk.
Essentially, use a regex to match 10 or 11-digit numbers and replace with xxxxx$1.
Let me know if you need examples.
------------------------------
Robert Wakefield-Carl
Avtex Solutions, LLC
Contact Center Innovation Architect
robertwc@avtex.com
https://www.Avtex.com
https://RobertWC.Blogspot.com
Original Message:
Sent: 03-21-2022 13:07
From: Sébastien Arpin
Subject: How to include a tech prefix (5 digit code in front of the destination number)
Hi,
Our SIP provider is asking us if we can add 5 digits in front of the destination number when doing outbound so that they can authenticate our calls based on the tech prefix as well.
Thanks
#SIP/VolP
#SystemAdministration
#Telephony
------------------------------
Sébastien Arpin
Inoria Inc.
------------------------------