Solved Dynamically adding country code

Status
Not open for further replies.

MaxL

Customer
Joined
Sep 21, 2021
Messages
50
Reaction score
12
Our current SIP Trunk provider requires a country code to be dialed when making any outbound call. Instead of training my users to dial this code, We just added it to the "prepend" field when creating any outbound rules, so the country code is automatically added before being sent to the SIP Trunk provider.

The problem we are running into is that if someone has made an outbound call by manually dialing the number, the call goes through as expected. It does however leave the country code in the call history listing. Therefore, if they would like to use that call history listing to re-dial the same number, it will not go through as it already has the country code, but the system also adds the country code in the outbound dial.

Is there anyway to dynamically add the country code if it is not detected on the initial outbound dial?
 
You might need to add another inbound rule that will check if the number already has a country code to it and it it has it will leave the number unchanged and if not it will proceed to the existing outbound rules.
It depends on how the numbers are dialed from the users.
 
It looks like by adding an additional outbound rule with the only difference being that the number having a prefix of "1" is an additional condition that must be met to make an outbound call without automatically including the country code.

All this means is I will be creating 2 outbound rules for each of our numbers moving forward. Thanks for the help.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,990
Messages
590,164
Members
164,927
Latest member
tohoken1