« Back to TCL-API

RE: Call ID information

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi team,
 
The call-ID is called "call identifier". I must be a unique string that identifies a call.

Can I show the "call ID" of the each call via Tcl script?

like this:
 
proc ActionPlayWelcome { } {
    puts "IT7: playing audio Welcome"

    global WelcomePrompt
    global CallID
 
    leg setupack leg_incoming
    leg proceeding leg_incoming
    leg connect leg_incoming

    set CallID [infotag get evt_proto_headers “CallID”]

    puts "CallID is $CallID"

    media play leg_incoming $WelcomePrompt

    puts " Audio played Welcome"
}
 
thanks.

Don't know what you mean -- show the "call ID" --  and show to who ?
if you just need to print it out on debug using puts command you can use "infotag get leg_guid "
 to get that string.
 
Thanks !

Hey Yaw,
 
Show on debug...

You have already answered my doubt with leg_guid.
 
thanks.

Hi Yaw,
I´ve been looking for the "call ID" of call.
I´ve found the follow topic in the book: TCL IVR Version 1 programming guide.

The callID command is used for debugging purposes only. It can be used in problem determination
for a particular call. This command returns the call ID (which is used in the IOS debug messages) of
the incoming or outgoing call leg. This call ID has no meaning outside the router that is handling the
call.
Syntax
callID

But, I´m working with a IOS 15.0(1r)M9. 
The call ID is a incremental number like this: 17050, 17051... But with the command "infotag get leg_guid" I´m receiving something like this: 00C0C742.3199D211.8B019F3B.3BB84202
 
Are there possibilities to convert the number 00C0C742.3199D211.8B019F3B.3BB84202 to 17050... ?
 
thanks.
 

If you like to refer to programming guide please use version 2
http://www.cisco.com/en/US/docs/ios/voice/tcl/developer/guide/tclivrv2.html
version 1 is really out of date.
 
The incremental number you refer to I think is sequence number you see in debug output like:
Mar 26 17:58:49.765: //891//TCL :/tcl_CallCloseObjCmd:  close
Mar 26 17:59:47.630: //900//TCL :/tcl_PutsObjCmd: proc act_Setup
The guid is the same as we see in SIP call-id.  The one you mentioned is no loner used in version2
Thanks !