« Back to TCL-API

how to config Router use log command of tcl script

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

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

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 emoticon

thank you for your suggestion

 
   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 ,