Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you convert a CLID variable into an INTEGER one? 3

Status
Not open for further replies.

DancingDave

Technical User
Aug 11, 2003
341
GB
We are trying to create a script that plays the callers CLID back to them. We're using this so engineers working with old 2216/2616 phones don't need to speak to an engineer to get the extension number of the phone. This takes time, engineers work out of hours, not always someone to phone etc.

My initial plan was to read the CLID into a variable and then manipulate that to break it into its constituent numbers e.g. extension 12345 becomes 1,2,3,4,5. We would then play these numbers back using a voice session.

The problem I have is that you cannot assign CLID to anything other than a CLID variable, however, you cannot do mathematical operations on a CLID variable. Does anyone know how or if you can convert/assign a CLID variable to an INTEGER one? I've tried ASSIGN cv_CLID to cv_INTEGER, but it won't validate.

We're on SCCS 4.2 (moving to CC6 next year) and we don't have any HDX infrastructure or similar.

Thanks

DD
 
This will do what you want:
Code:
OPEN VOICE SESSION
   PLAY PROMPT NUMBERBYDIGIT CLID NUMBERBYDIGIT CLID
END VOICE SESSION

DISCONNECT

...assuming that all your voice segments for digits have been recorded.

Steamer
 
Stanley, many thanks for the that. Well worth a star!!

DD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top