Scripting help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • oleskare
    Hot Shot
    • Dec 2010
    • 13

    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
    Hot Shot
    • Dec 2010
    • 13

    #2
    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

    Comment

    Loading