Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
TroyD wrote:We have several numbers in various states that are set up for inbound calls to our PBX, what we want to do is change the callerID to the number that we have for a certain State (like FL for example) when we call a person that is in that state. For example if we are dialing a Georgia client, we want to set our caller ID to our Gerogia number and if its a FL cleint we want the caller ID to have our FL number in it for tracking purposes. is it possible to modify some of the code to do this, or can you tell me where I should look to try to accomplish this? Thanks in Advance..
(I know that I could create different campaigns for each state, but would rather handle it without having to have 52 campaigns..And for other obvious reasons..)
Nortelguy wrote:TroyD wrote:We have several numbers in various states that are set up for inbound calls to our PBX, what we want to do is change the callerID to the number that we have for a certain State (like FL for example) when we call a person that is in that state. For example if we are dialing a Georgia client, we want to set our caller ID to our Gerogia number and if its a FL cleint we want the caller ID to have our FL number in it for tracking purposes. is it possible to modify some of the code to do this, or can you tell me where I should look to try to accomplish this? Thanks in Advance..
(I know that I could create different campaigns for each state, but would rather handle it without having to have 52 campaigns..And for other obvious reasons..)
Hrm , set all CID as an 800 # ? What tracking purposes ? There are other ways to track calls then that.
mflorell wrote:We had written an AGI a couple years ago that would change the callerID number for all outgoing calls depending on areacode(which also means you could really do it by state).
It was a hack and everything was hard-coded, but it did work just fine for over a year while the client was doing that campaign.
An example of the script is the agi-VDADselective_CID.agi script available in the release.
mflorell wrote:the campaign callerID value should be your default callerID and everything that you change would be for the specific areacodes that you want to have a different callerID than the default.
mflorell wrote:Towards the top of the script code you will see a list of 3-digit area codes for Florida, this is how you put the state area codes in.
$script = 'agi-VDADselective_CID.agi';
$AGILOG=0;
$FD=0; # force debug for testing
# CLEAR AREA CODE LISTINGS:
# Florida: 239|305|321|352|386|407|561|689|727|754|772|786|813|836|850|861|863|904|941|954
$clear_area_codes = '239|305|321|352|386|407|561|689|727|754|772|786|813|836|850|861|863|904|941|954';
$script = 'agi-VDADselective_CID.agi';
$AGILOG=0;
$FD=0; # force debug for testing
# CLEAR AREA CODE LISTINGS:
# TX AND NM: 806|575
$clear_area_codes = '806|575';
$script = 'agi-VDADselective_CID.agi';
$AGILOG=0;
$FD=0; # force debug for testing
# CLEAR AREA CODE LISTINGS:
# TX AND NM: 806XXXXXXX|575XXXXXXXXXX
$clear_area_codes = '806XXXXXXXXXX|575XXXXXXXXXX';
Users browsing this forum: No registered users and 111 guests