how to config Router use log command of tcl script

Version 1
    This document was generated from CDN thread

    Created by: haloha haloha on 04-06-2012 03:41:55 AM
    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`

    Subject: RE: how to config Router use log command of tcl script
    Replied by: Anusha Kannappan on 04-06-2012 06:10:19 AM
    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

    Subject: RE: how to config Router use log command of tcl script
    Replied by: haloha haloha on 04-06-2012 09:38:19 PM
    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

    Subject: how to config Router use log command of tcl script
    Replied by: Hassan Alsafi on 24-07-2012 05:44:54 PM
     
       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 ,