Thread: Scripting help
View Single Post
  #2  
Old 10-18-2012, 03:30 AM
oleskare oleskare is offline
Hot Shot
 
Join Date: Dec 2010
Posts: 13
oleskare has 10 reputation points
Default

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
Reply With Quote