VoiceGuide IVR Software Main Page
Jump to content

How Do I Remove The 1 In Front Of A Phone Number?

Recommended Posts

Ted (Manuel) Valdez wrote:

 

Hi there.

 

I registered the 4 line version of VGPro and love it. I have a question

however.

 

I am running an outgoing call campaign. It currently saves the

$RV_CALLEDNUMBER variable using the Command Prompt DOS echo command if the

user want to be removed from further calls which saves to the DoNotCall list

This is the same DNC list that Dialer uses too. It is saving the phone

number with a 1 in front of it, since that is the prefix to dial out.

However, the numbers I load into Dialer do not have the one in front so it

does not reject numbers properly.

 

command.com /c echo $RV_CALLEDNUMBER >> c:\DNC-List.txt

 

Can you please tell me how I can save the $RV_CALLEDNUMBER without the 1 in

front?

 

Much thanks in advance,

Ted (Manuel) Valdez

Share this post


Link to post

You can use the Evaluate Expression module to extract just the part of the number you want from $RV_CALLEDNUMBER, save it in another Result Variable and then append that new RV to the text file.

 

Use the mid() function to extract the number. eg. to extract 10 digits starting from the second digit onwards you would specify an expression like this in the Evaluate Expression module:

 

mid($RV_CALLEDNUMBER, 2, 10)

 

more information on mid() and other functions which can be used in the Evaluate Expression module can be found at http://www.voiceguide.com/vghelp/html/modEvalExpr.htm

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×