Avaya Support Forums

Avaya Support Forums (http://support.avaya.com/forums/index.php)
-   Contact Center Applications (http://support.avaya.com/forums/forumdisplay.php?f=3)
-   -   Scripting help (http://support.avaya.com/forums/showthread.php?t=2197)

oleskare 10-17-2012 06:44 AM

Scripting help
 
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!

oleskare 10-18-2012 03:30 AM

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


All times are GMT -7. The time now is 09:17 AM.