Tcl to control call reception

Version 1
    This document was generated from CDN thread

    Created by: CLAUDIO RIVAS on 05-10-2011 08:45:19 PM
    Hi,
     
    I'm newbie to Tcl scripting, but i have a particular feature that i would like to give to an application, what i need to do is to receive the call and without answering it be able to keep the ANI of the caller somewere to place a callback without any phone charge for the user on their cell phone bills. What i particuarelly need is to run a tcl script or vxml application without answering the call, i have another mechanism to see a MYSQL database (CVP Standalone) so the particular question here is can i trigger a tcl application and get the ani of the call without answering a call?
    Any help is appreciated.
     
    Regards,
    Claudio.

    Subject: RE: Tcl to control call reception
    Replied by: Yaw-Ming Chen on 06-10-2011 10:43:12 AM
    In order to get ANI or DNSI we need to issue "leg connect leg_incoming" so even we don't call out to destination but to incoming leg is connected already.
    It means to the caller call is "answered"

    Subject: RE: Tcl to control call reception
    Replied by: CLAUDIO RIVAS on 06-10-2011 11:00:07 AM
    What i need to do is to get the ani whitout answering the call, can i reach this by using tcl?
    with the leg connect leg_incomming?

    Regards,
    Claudio.

    Subject: RE: Tcl to control call reception
    Replied by: Yaw-Ming Chen on 06-10-2011 11:05:21 AM
    "leg connect leg_incomming" is Cisco Tcl IVR command. We won't be able to get ANI unless we issue that command.
    So on the voice gateway there is no way to use Tcl to get ANI without connecting incoming leg

    Subject: RE: Tcl to control call reception
    Replied by: CLAUDIO RIVAS on 06-10-2011 11:10:45 AM
    Thank you very much Yaw-Ming, it's much more clear for me, so do you think this is reachable by any other mechanism to deny the call but keep the ANI on a log or DB?

    Regards,
    Claudio.

    Subject: RE: Tcl to control call reception
    Replied by: Yaw-Ming Chen on 06-10-2011 11:14:32 AM
    Yes, once you connect incoming leg you need to get DNIS to continue call setup so destination phone will ring or you can deny the call and to something else.

    Subject: RE: Tcl to control call reception
    Replied by: CLAUDIO RIVAS on 06-10-2011 11:29:34 AM
    Again thank you very much for your quick response. The option you commented means that i need to connect the call to get the ani, right? I think i didn't explained the idea on the better way, I want to receive the ani without answering the call to avoid toll charges to the people that is calling to the gateway so i can get the ani to place a callback to the user. Is there any way on the call setup to get the ani without answering that call?

    Regards,
    Claudio.

    Subject: RE: Tcl to control call reception
    Replied by: Yaw-Ming Chen on 06-10-2011 11:31:34 AM
    Answer is NO

    Thanks

    Subject: RE: Tcl to control call reception
    Replied by: CLAUDIO RIVAS on 06-10-2011 11:38:34 AM
    Nothing more clear than that! Thank you very much for your time and patience.

    Regards,
    Claudio.

    Subject: RE: Tcl to control call reception
    Replied by: LEON MCCALLA on 06-10-2011 11:50:36 AM
    Yaw is wrong.

    "infotag get leg_ani"  can get the ANI before the call is connected. I wrote a callback TCL app years ago but it works only with my billing system. Here are the basic steps you need to do in your script..

    1) get the ANI and DNIS
    2) disconnect the incoming leg  (without answering it)
    3) setup a new call to the ANI.
    4) when its connected, conference it with a setup to the DNIS.

    Leon

    you can reach me offline at leonmccalla@hotmail.com

    Subject: RE: Tcl to control call reception
    Replied by: Yaw-Ming Chen on 06-10-2011 12:12:18 PM
    Leon is right, looks like we don't need "leg connect" to get ani and dnis.

    This is a Cisco sample script for callback you can check it out.


    http://www.cisco.com/cisco/software/release.html?mdfid=277641082&catid=278875240&softwareid=283451126&release=2.0.0.1&rellifecycle=&relind=AVAILABLE&reltype=all

    Subject: RE: Tcl to control call reception
    Replied by: CLAUDIO RIVAS on 06-10-2011 12:48:53 PM
    Thank you very much folks, it's right the information that i've needed, i just need to register the callback on a database, the steps 3 and 4 are done by using the CVP Standalone Outbound Script. This answered my question about this topic.
    I suppose that from a Tcl script i can trigger an http link so i can use my old CVP or maybe place the call to another application with the ANI and DNIS so the gateway can register the call by ussing my old CVP Scritp to insert the call. This is very time consumming, but I'm interested on this issue. One step at a time, first get the ani without disconnecting the call.
    I'll let you know how i've solved this.

    Regards,
    Claudio.

    Subject: Re: New Message from CLAUDIO RIVAS in Voice Gateway API (VGAPI) - TCL-API:
    Replied by: LEON MCCALLA on 06-10-2011 03:24:30 PM
    I have the TCL use radius to query my application which subsequently does an SQL query. although not documented, it may be possible to have TCL do an HTTP query directly to an SQL server but this is outside of my area of expertise. we know IOS has a TCL compiler built in so perhaps you can install custom packages to allow this TCL->SQL queries.

    Leon

    From: Cisco Developer Community Forums
    Sent: Thursday, October 06, 2011 12:48 PM
    To: cdicuser@developer.cisco.com
    Subject: New Message from CLAUDIO RIVAS in Voice Gateway API (VGAPI) - TCL-API: RE: Tcl to control call reception

    CLAUDIO RIVAS has created a new message in the forum "TCL-API":

    --------------------------------------------------------------
    Thank you very much folks, it's right the information that i've needed, i just need to register the callback on a database, the steps 3 and 4 are done by using the CVP Standalone Outbound Script. This answered my question about this topic.
    I suppose that from a Tcl script i can trigger an http link so i can use my old CVP or maybe place the call to another application with the ANI and DNIS so the gateway can register the call by ussing my old CVP Scritp to insert the call. This is very time consumming, but I'm interested on this issue. One step at a time, first get the ani without disconnecting the call.
    I'll let you know how i've solved this.

    Regards,
    Claudio.
    --
    To respond to this post, please click the following link:

    <http://developer.cisco.com/web/vgapi/forums/-/message_boards/view_message/4578339>

    or simply reply to this email.