- Blue, 1500 points or more
I have a script which uses the Get Call Contact step to read the Calling Number of a contact and store it in a string.
The calling number is manipulated by the H.323 gateway to add the PSTN access code "9" so that users can directly return calls from their phone logs without editing the number. For example, if a caller with the number 02082363299 calls the calling number is set to 902082363299.
This causes me a problem in my script as I want to play the number as a generated prompt to the caller and do not want them to hear the initial 9.
Can anyone tell me how I can manipulate the contents of the string storing the number to strip off the initial digit?
I have thought changing the contents of the string to an integer and subtracting 900000000000 but this would also lose the second digit which would always be a zero.
I anyone can suggest how I can do this I would be most grateful.