Application instances and sessions

Version 1

    Subject: RE: Application instances and sessions
    Replied by: Anusha Kannappan on 17-02-2012 06:48:04 AM
    Hi Grant,

    In simple words an instance or session of an application executes the script. In general a call initates an application instance which could be viewed with the following details

    3845#sh call application sess
    Session ID 77

                App: queue
               Type: Service
                Url: tftp://tftp/app-b-acd-3.0.0.4.tcl

    The key thing is "A call can initiate a single application instance or multiple application instances, depending on how the system is configured to handle the call. A single application session can manage multiple voice calls." There is nothing specific like "One application instance may have multiple sessions".

    And with respect to the call handoff, In addition to passing the name of an application, the handoff command allows the passing of a handle. For example, assume a Tcl script gathers the caller's account number, then receives a notification that the call is being handled by another instance. The script can hand off the incoming call leg to the other application instance using the handoff command, providing information in the argument string. When the other application instance returns the call leg, this application receives an ev_returned event. The informations could just be shared among the applications rather that storing in a common location.

    Thanks,
    Anusha
    This document was generated from CDN thread

    Created by: Grant Bagdasarian on 17-02-2012 05:19:35 AM
    Hello,
     
    Lets say I have the following scenario: my gateway periodically places a call to a certain destination and when the destination answers an handoff is done to another application, like a voicexml, and this voicexml plays and audio file to the destination. In this scenario there are two applications, a tcl and the voicexml. Is it possible for those two to store certain values somewhere which are accessible to both? Like a global container of some sort.
     
    I've also been reading the TCL IVR 2.0 Programming Guide. There is a brief section on application instances and sessions, but I don't quite understand it. What is a session exactly? One application instance may have multiple sessions? I'd appreciate it if someone could shed some light on this for me.
     
    Thanks,
     
    Grant

    Subject: RE: Application instances and sessions
    Replied by: Grant Bagdasarian on 17-02-2012 09:28:45 AM
    Hi Anusha,

    So an instance and session are pretty much the same thing?

    Yes, I've been using the handoff and passing arguments between applications. I was just wondering of something like the container thing I described existed in Cisco/TCL.

    Thanks,

    Grant

    Subject: RE: Application instances and sessions
    Replied by: Anusha Kannappan on 20-02-2012 01:56:22 AM
    Hi Grant,

    Yeap, Instances of TCL IVR Applications can be referred as Sessions.

    Thanks,
    Anusha