Accessing parameters from IOS config in VXML

Version 1
    This document was generated from CDN thread

    Created by: Steve Bowers on 17-09-2009 09:56:44 AM
    Hi.
     
    Apologies if this is a stupid question but I'm struggling to find the missing link for a VXML app I'm developing.
     
    On my router I have the following configuration:
     
    application
      service srbtest flash:ivr.vxml
      param ServiceMode D
     
    How can I access the value of the ServiceMode parameter from inside the VXML document? I've trawled the docs but can't seem to find an example that doesn't invlove TCL.
     
    Thanks in advance,
     
    Steve Bowers

    Subject: RE: Accessing parameters from IOS config in VXML
    Replied by: VijayPrasad Neelamegam on 17-09-2009 10:59:00 AM
    Hi Steve,
     
    You are looking for a API to read the value give in CLI,is that correct?
     
    Can you try the following command
     
    com.cisco.paramsxxxx
     
    <object>
    name=" "
    classid=""

    <param name=" " expr=" "/>

    <param name="name1" expr="value1" type= "com.cisco.datatype.list"/>

    <param name="name2" expr="value2" type= "com.cisco.datatype.list"/>

    ....

    <param name="nameN" expr="valueN" type= "com.cisco.datatype.list"/>

    </object>

     
    Moreover you are not looking for Hybrid TCL script,you need only in VXml is that correct?
     
    We can just give a try on it
     
    Thanks
    Vijay

    Subject: RE: Accessing parameters from IOS config in VXML
    Replied by: Steve Bowers on 18-09-2009 10:51:13 AM
    Hi Vijay,
     
    Thanks for your help.
     
    I've tried using com.cisco.params.ServiceMode as follows:
     
    <var name="sMode" expr="com.cisco.params.ServiceMode"/>
     
    But I get an error whe trying to use this in a script.
     
    Not sure what you mean by using the <object> element - that seems to allow for setting rather than reading parmaeters for an external library?
     
    Error is as follows from the debug console:
    <var>: namep=sMode expr=com.cisco.params.ServiceMode
    Sep 18 09:45:42.026: //250/DD2AA49C8037/VXML:/vxml_expr_eval:
       expr=(var sMode=com.cisco.params.ServiceMode)
    Sep 18 09:45:42.026: //250/DD2AA49C8037/VXML:/vxml_jse_global_switch:
       switch to scope(application)
    Sep 18 09:45:42.026: //250/DD2AA49C8037/VXML:/vxml_jse_eval:
       CALL_ERROR; flash:ivr.vxml
       expression (var sMode=com.cisco.params.ServiceMode) error
    Sep 18 09:45:42.026: //-1//VXML:/vxml_expr_eval:
     (1) Status not OK, mailto:exit@2220
     
    Thanks again,
    Steve

    Subject: RE: Accessing parameters from IOS config in VXML
    Replied by: Steve Bowers on 18-09-2009 10:52:10 AM
    Also, yes ideally i'd rather not have a hybrid app if at all possible.

    Subject: RE: Accessing parameters from IOS config in VXML
    Replied by: VijayPrasad Neelamegam on 18-09-2009 04:34:16 PM
    Hi Steve,
     
    I wonder do we have only vxml coding to fetch PARAM from CLI.We can get the param value through TCL and we can pass the value to vxml.This can be done through hybrid application.
     
    But let me try to do this only through VXML.Request you to pass me the traces with following debugs enabled


    debug voip application vxml error
    debug voip application vxml events
    debug voip application vxml grammer

    Thanks
    Vijay

    Subject: RE: Accessing parameters from IOS config in VXML
    Replied by: Steve Bowers on 21-09-2009 07:26:05 AM
    Hi Vijay,
     
    Thanks for your assistance.
     
    Debug messages as requested below. I've also included the relevant section of the router config where the application is defined.
     
    Regards,
    Steve
     
     
    VXML:
      debug voip application vxml error software is ON
      debug voip application vxml error call is ON (filter is OFF)
      debug voip application vxml event is ON (filter is OFF)
      debug voip application vxml grammar is ON (filter is OFF)
    voicerouter#
     
     


    voicerouter##-----call placed
    .Sep 21 07:19:34.633: //991/F2A15A7380DC/VXML:/vxml_jse_eval: 
       CALL_ERROR; flash:ivr.vxml
       expression (var sMode=com.cisco.params.ServiceMode) error
    .Sep 21 07:19:34.641: CNG tone sent
    router#
     
     
     


    voicerouter#sh run | b application
    application
      service num2name flash:/num2name/number2name.tcl
      param list-file flash:/num2name/bulklist.txt
      !
      service onramp-app flash:onramp-app.tcl
      !
      service cmm http://a.b.c.d:8080/ccmivr/pages/IVRMainpage.vxml]
      !
      service app_faxmail_offramp flash:app_faxmail_offramp.2.0.1.1.tcl
      !
      service srbtest flash:ivr.vxml
      param ServiceMode D
      !

    Subject: RE: Accessing parameters from IOS config in VXML
    Replied by: VijayPrasad Neelamegam on 22-09-2009 06:26:10 AM
    Hi Steve,


    Thanks for the debugs and configs.


    I would like you to try in the following way


    <param name="sMode" expr="sServiceMode" valuetype="com.cisco.datatype.list"/>



    Thanks
    Vijay

    Subject: RE: Accessing parameters from IOS config in VXML
    Replied by: Kishore Pardasani on 27-12-2010 04:14:52 PM
    Did anyone get this to work?  Is it possible to load the service params in a vxml file without a hybrid tcl integration?

    Subject: RE: Accessing parameters from IOS config in VXML
    Replied by: Heimo Stieg on 10-04-2012 08:28:07 AM
    I know this thread is kinda old, but I'm also searching for a way to get the parameters withouth a hybrid application.

    Subject: RE: Accessing parameters from IOS config in VXML
    Replied by: Anusha Kannappan on 12-04-2012 06:35:24 AM
    Hi Heimo,

    I don't think without hybrid application we will be able to access the parameters set in the CLI. But anyways we will do a thorough search and get back to if we have any updates on the same.

    Thanks,
    Anusha