cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
81
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Nils Hulsch on 10-03-2010 10:20:13 AM
Hello,
 
is there a way to get the current calling type for an incoming call?
I saw the index "originationNumTON" to set it, but not a variable / function to get the type of an incoming call.
 
>>>>SNIP<<<<
    set incNumber [infotag get leg_ani]
    set destNumber [infotag get leg_dnis]
if {$incNumber == "" } {
    set call(originationNum) $incNumber
    set call(displayInfo) "-unkown-"
    set call(notifyEvents) "ev_proceeding ev_alert"
    leg setup $destNumber call leg_outgoing
}
.....
>>>>SNIP<<<<
 
 
Thank you in advance.
 
Best regards,
Nils

Subject: RE: Incoming Calling Party Type
Replied by: Nils Hulsch on 10-03-2010 02:16:16 PM
Hi Anusha,
 
thank you for reply, but sadly i get the following error:
Mar 10 13:57:57.529: TCL script failure
    Result:
             Handle not found or is not GTD type: gtd_inf
Mar 10 13:57:57.529:     TCL script failure errorInfo:
            Handle not found or is not GTD type: gtd_inf
    while executing
"object get gtd gtd_inf cgn.1.noa"
    (procedure "act_Setup" line 27)
    invoked from within
"act_Setup"                            
 
I've checked the tclivr document on the cisco page and found a the handle "setup_gtd_handle" - but thats also not working.
 
I tried to get the gtd handle with
    set temp [infotag get evt_gtd]
but thats throwing me an error too.
 
EDIT: i tried to create a new  handle with    
set gtd_inf_cnt [object create gtd gtd_inf INF]
 
but then the field is not set
 
Would it be possible that you provide me some more informations?
 
Best regards,
Nils

Subject: RE: Incoming Calling Party Type
Replied by: Anusha Kannappan on 10-03-2010 01:42:15 PM
Hi Nils,
 
We can fetch the calling party type for an incoming call using the following
 
set TON [object get gtd gtd_inf cgn.1.noa]
 
Thanks,
Anusha

Subject: RE: Incoming Calling Party Type
Replied by: Yawming Chen on 10-03-2010 06:11:55 PM
Please refer to Tcl IVR API programming guide


    set temp [infotag get evt_gtd]
 
Syntax: infotag get evt_gtd <gtd_handle>


you missed <gtd_handle> here
 
Thanks !
 
evt_gtd

Description:  Associates a handle to the GTD parameters contained in the event.
The application can use the handle to include the associated GTD parameters in
any outgoing call signal message.

Syntax: infotag get evt_gtd <gtd_handle>
Mode: Read
Scope: ev_address_resolved
ev_alert
ev_connected
ev_disconnected
ev_proceeding
ev_progress
ev_setup_indication

Return Type: Number. If a handle can be created from the event, 1 is returned, otherwise 0 is
returned.
Direct Mapping: None
Example: set handle [infotag get evt_gtd gtd_inf]

Subject: RE: Incoming Calling Party Type
Replied by: Nils Hulsch on 10-03-2010 06:25:44 PM
ah, my mistake!
 
It's working - thank you so far!
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links