« Back to TCL-API

Incoming Calling Party Type

Combination View Flat View Tree View
Threads [ Previous | Next ]
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

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

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

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]

ah, my mistake!
 
It's working - thank you so far!