Michel Nasr | Dear Raghavendra,
Thank you for your video and document, they were really helpful.
However, i seem to have something missing, here's my script:
proc act_Timer { } { global DURATION set DURATION 20
while{1} { set currenttime [infotag get leg_settlement_time leg_outgoing] if { $currenttime >= $DURATION } { connection destroy con_all } } }
proc act_Cleanup { } { call close }
init #---------------------------------- # State Machine #---------------------------------- set fsm(any_state,ev_disconnected) "act_Cleanup,same_state" set fsm(CALLACTIVE,ev_leg_timer) "act_Timer,CALLDISCONNECTED" set fsm(CALLACTIVE,ev_disconnected) "act_Cleanup,CALLDISCONNECTED" set fsm(CALLDISCONNECTED,ev_disconnected) "act_Cleanup,same_state" set fsm(CALLDISCONNECTED,ev_disconnect_done) "act_Cleanup,same_state"
I have loaded the script into the router, applied it under a dial-peer, but i get a "configured" state:
Script Name : tcltest URL : tftp://1.1.1.1/tcltest.tcl Type : Service State: Loaded Life : Configured Exec Instances: 0
Script Code Begin: -------------------------------- ....
Shouldn't it be registered as per your video ? Please let me know what i have done wrong, and how to fix it.
Thanks a lot for your assistance, Michel |