Log In
Developer Network
Technologies
Join the Network
Member Services
Events & Community
Voice Gateway API (VGAPI) Developer Center
Overview
Documentation
Community
Testing
Message Boards Home
Recent Posts
Statistics
Answer
(
Unmark
)
Mark as an Answer
« Back to TCL-API
how to config Router use log command of tcl script
Threads [
Previous
|
Next
]
haloha haloha
Posts:
13
Join Date:
5/22/12
Recent Posts
how to config Router use log command of tcl script
Answer
6/4/12 8:41 AM
Mark as an Answer
Submit
Reply with Quote
Quick Reply
hi
i try to use the log command of tcl script
proc init { } {
puts "\nprocedure INIT"
log "procedure INIT"
global param1
global beep
global param2
global param3
set beep 0
set param1(interruptPrompt) true
set param1(abortKey) *
set param1(terminationKey) #
set param2(interruptPrompt) true
set param2(abortKey) *
set param2(terminationKey) #
set param2(dialPlanTerm) true
set param3(interruptPrompt) true
set param3(abortKey) *
set param3(terminationKey) #
}
the puts command is very easy to use
i would like to log "procedure INIT" the meesage in Router, when i show logging the log message(procedure INIT) should be there
thank you
Ha`
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Anusha Kannappan
Posts:
149
Join Date:
9/15/09
Recent Posts
RE: how to config Router use log command of tcl script
Answer
6/4/12 11:10 AM as a reply to haloha haloha.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi,
You have used the "log command" correctly. Are you not able to view the log message when you do a show logging? If you are able to view then what else you are looking for? I just used your statement and here is the output
*Jun 4 10:05:14.640: //-1//TCL :EE4C3DC4D4000:/tcl_LogObjCmd: log procedure INIT
*Jun 4 10:05:14.640: %IVR-3-APP_ERR: procedure INIT
Thanks,
Anusha
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
haloha haloha
Posts:
13
Join Date:
5/22/12
Recent Posts
RE: how to config Router use log command of tcl script
Answer
6/5/12 2:38 AM as a reply to Anusha Kannappan.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi Anusha
here is the user guide for programming
Examples
set msgStr “MCID request succeeded”
append msgStr [clock format [clock seconds]]
log $msgStr
i change to : log -s INFO "procedure INIT" - it works fine now
thank you for your suggestion
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Hassan Alsafi
Posts:
5
Join Date:
4/11/12
Recent Posts
how to config Router use log command of tcl script
Answer
7/24/12 10:44 PM as a reply to haloha haloha.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Dears ,
We have Call Manager 6.1 . We need to disconnect calls after 10 min or 5 min .
Please can you show me the way to do it or how to make TCL script for disconnect calls
or the thired partner we can contact them .
Best Regards ,
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top