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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script help

Status
Not open for further replies.

Skaret

Technical User
Jan 17, 2004
244
NO
Hi!

Need some help collecting CLID and playing it on AACC 6.2 SIP.



/*Collect CLID into variable.*/
ASSIGN CLID TO CBR_InboundNumber_cv /*CBR_InboundNumber_cv = Type CLID */
?
?
?
WAIT 5
/*This GIVE IVR command plays back the CLID*/
ASSIGN c_play_only_gv TO voicexml
ASSIGN c_sip_digits_int_cv TO vars
ASSIGN "YourPhoneNumberIs.wav+%i0" TO prompttoplay
GIVE IVR SERVICE URI serviceuri WITH VXML TREATMENT voicexml PARAMETERS prompttoplay, vars
WAIT 5
DISCONNECT

I'm missing commands (into lines marked with ?) to convert the CLID into vars. Variable vars is a type of Integer.

Thanks!
 
I have found the solution.

/*Collect CLID into variable.*/
ASSIGN CLID TO CBR_InboundNumber_cv

/*Convert variable of type CLID to string*/
CONVERT CBR_InboundNumber_cv TO STRING c_sip_digits_str_cv

WAIT 2

/*This GIVE IVR command plays back the CLID*/
ASSIGN c_play_only_gv TO voicexml
ASSIGN c_sip_digits_str_cv TO varsstr
ASSIGN "YourPhoneNumberIs.wav+%i0" TO prompttoplay
GIVE IVR SERVICE URI serviceuri WITH VXML TREATMENT voicexml PARAMETERS prompttoplay, varsstr
WAIT 2
DISCONNECT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top