Dan Armstrong | Ok, I am now officailly stumped. Now, my TCL script isn't even going into the first routine: Feb 1 21:20:16.039: //-1//SERV:/AFW_Service_CCInterface: Received Event 24 for service Default modulehandle NULL Feb 1 21:20:16.039: //-1//SERV:/AFW_Service_GetExecEnv: Script Name = Default Feb 1 21:20:16.039: //-1//SERV:/AFW_Service_GetExecEnv: Using Cached ExecEnv Feb 1 21:20:16.039: //-1//AFW_:/AFW_M_TclModule_NewDup: Feb 1 21:20:16.039: //-1//AFW_:HN5EB33030:/AFW_M_TclModule_Free: MOD[TclModule_65DF60A4_2_1588801584] ( ) Feb 1 21:20:16.039: //-1//AFW_:EE66292FE4000:/AFW_ExecEnv_RestoreDataBackup: Restore DataArea from Script Feb 1 21:20:16.039: //-1//AFW_:EE66292FE4000:/AFW_ExecEnv_RestoreDataBackup: Restore TokenTable from Script Feb 1 21:20:16.039: //134518//AFW_:/AFW_M_TclModule_Action: Feb 1 21:20:16.039: //134518//AFW_:/AFW_TclModule_DefaultEvHandling: Feb 1 21:20:16.115: //134518//AFW_:/AFW_M_TclModule_Action: Feb 1 21:20:16.115: //134518//AFW_:/AFW_TclModule_DefaultEvHandling: Feb 1 21:20:25.583: //134516//AFW_:/Session_Cleaner: lastFailureCause 16 Feb 1 21:20:25.583: //134516//AFW_:/Session_Cleaner: lastFailureCause 16 Feb 1 21:20:25.583: //134516//AFW_:/AFW_M_TclModule_Action: Feb 1 21:20:25.583: //134516//AFW_:/AFW_TclModule_DefaultEvHandling: Feb 1 21:20:25.631: //134516//AFW_:/AFW_M_TclModule_Action: Feb 1 21:20:25.631: //134516//AFW_:/AFW_TclModule_DefaultEvHandling: Feb 1 21:20:25.631: //-1//AFW_:/AFW_ExecEnv_CallClose: Exec Env state: 1 Feb 1 21:20:25.631: //-1//AFW_:/AFW_ExecEnv_CallClose: Terminating ExecEnv's root module Feb 1 21:20:25.631: //134516//AFW_:/AFW_M_TclModule_Terminate: Module is in the state: ACTIVE Feb 1 21:20:25.631: //134516//AFW_:/AFW_M_TclModule_Action: Feb 1 21:20:25.631: //134516//AFW_:/AFW_M_TclModule_Action: Module is Terminating Feb 1 21:20:25.631: //134516//AFW_:/AFW_TclModule_ReturnIfDone: Sending Out APP_EV_TCLMODULE_DONE event Feb 1 21:20:25.631: //-1//AFW_:/AFW_ExecEnv_CallClose: Exec Env state: 3 Feb 1 21:20:25.631: //134516//AFW_:/AFW_M_TclModule_EventPreProcess: Feb 1 21:20:25.631: //-1//SERV:/AFW_Service_ReleaseExecEnv: Script Name = Default cache = true calls = 3 Feb 1 21:20:25.631: //-1//SCRI:/cam_sa_stopped: Instance: [] ExecEnv: 0x6629346C Feb 1 21:20:31.687: //-1//SERV:/AFW_Service_CCInterface: Received Event 24 for service Default modulehandle NULL Feb 1 21:20:31.687: //-1//SERV:/AFW_Service_GetExecEnv: Script Name = Default Feb 1 21:20:31.687: //-1//SERV:/AFW_Service_GetExecEnv: Using Cached ExecEnv Feb 1 21:20:31.687: //-1//AFW_:/AFW_M_TclModule_NewDup: Feb 1 21:20:31.687: //-1//AFW_:HN5EB4B478:/AFW_M_TclModule_Free: MOD[TclModule_66E74E6C_2_1588900984] ( ) Feb 1 21:20:31.687: //-1//AFW_:EE6629346C000:/AFW_ExecEnv_RestoreDataBackup: Restore DataArea from Script Feb 1 21:20:31.687: //-1//AFW_:EE6629346C000:/AFW_ExecEnv_RestoreDataBackup: Restore TokenTable from Script Feb 1 21:20:31.687: //134520//AFW_:/AFW_M_TclModule_Action: Feb 1 21:20:31.687: //134520//AFW_:/AFW_TclModule_DefaultEvHandling: Feb 1 21:20:36.635: //-1//SERV:/AFW_Service_CheckExecEnvCache: Script Name = Default Freeing.. 0x66293384 Feb 1 21:20:36.635: //-1//SCRI:/cam_sa_stopped: Instance: [] ExecEnv: 0x66293384 Feb 1 21:20:36.635: //-1//AFW_:HN5EB4DF74:/AFW_M_TclModule_Free: MOD[TclModule_66E7473C_2_1588911988] ( ) Feb 1 21:20:47.775: //134520//AFW_:/AFW_M_TclModule_Action: Feb 1 21:20:47.775: //134520//AFW_:/AFW_TclModule_DefaultEvHandling: Feb 1 21:20:54.683: //134518//AFW_:/Session_Cleaner: lastFailureCause 16 Feb 1 21:20:54.683: //134518//AFW_:/Session_Cleaner: lastFailureCause 16 Feb 1 21:20:54.683: //134518//AFW_:/AFW_M_TclModule_Action: Feb 1 21:20:54.683: //134518//AFW_:/AFW_TclModule_DefaultEvHandling: Feb 1 21:20:54.731: //134518//AFW_:/AFW_M_TclModule_Action: Feb 1 21:20:54.731: //134518//AFW_:/AFW_TclModule_DefaultEvHandling: Feb 1 21:20:54.731: //-1//AFW_:/AFW_ExecEnv_CallClose: Exec Env state: 1 Feb 1 21:20:54.731: //-1//AFW_:/AFW_ExecEnv_CallClose: Terminating ExecEnv's root module Feb 1 21:20:54.731: //134518//AFW_:/AFW_M_TclModule_Terminate: Module is in the state: ACTIVE Feb 1 21:20:54.731: //134518//AFW_:/AFW_M_TclModule_Action: Feb 1 21:20:54.731: //134518//AFW_:/AFW_M_TclModule_Action: Module is Terminating Feb 1 21:20:54.731: //134518//AFW_:/AFW_TclModule_ReturnIfDone: Sending Out APP_EV_TCLMODULE_DONE event Feb 1 21:20:54.731: //-1//AFW_:/AFW_ExecEnv_CallClose: Exec Env state: 3 Feb 1 21:20:54.731: //134518//AFW_:/AFW_M_TclModule_EventPreProcess: Feb 1 21:20:54.731: //-1//SERV:/AFW_Service_ReleaseExecEnv: Script Name = Default cache = true calls = 3 Feb 1 21:20:54.731: //-1//SCRI:/cam_sa_stopped: Instance: [] ExecEnv: 0x66292FE4 Feb 1 21:21:16.939: //134476//AFW_:/Session_Cleaner: lastFailureCause 16 Feb 1 21:21:16.939: //134476//AFW_:/Session_Cleaner: lastFailureCause 16 Feb 1 21:21:17.131: //134476//AFW_:/AFW_M_TclModule_Action: Feb 1 21:21:17.131: //134476//AFW_:/AFW_TclModule_DefaultEvHandling: Feb 1 21:21:17.131: //-1//AFW_:/AFW_ExecEnv_CallClose: Exec Env state: 1 Feb 1 21:21:17.131: //-1//AFW_:/AFW_ExecEnv_CallClose: Terminating ExecEnv's root module Feb 1 21:21:17.131: //134476//AFW_:/AFW_M_TclModule_Terminate: Module is in the state: ACTIVE Feb 1 21:21:17.131: //134476//AFW_:/AFW_M_TclModule_Action: Feb 1 21:21:17.131: //134476//AFW_:/AFW_M_TclModule_Action: Module is Terminating Feb 1 21:21:17.131: //134476//AFW_:/AFW_TclModule_ReturnIfDone: Sending Out APP_EV_TCLMODULE_DONE event Feb 1 21:21:17.131: //-1//AFW_:/AFW_ExecEnv_CallClose: Exec Env state: 3 Feb 1 21:21:17.131: //134476//AFW_:/AFW_M_TclModule_EventPreProcess: Feb 1 21:21:17.131: //-1//SERV:/AFW_Service_ReleaseExecEnv: Script Name = Default cache = true calls = 2 Feb 1 21:21:17.131: //-1//SCRI:/cam_sa_stopped: Instance: [] ExecEnv: 0x66292A74 Feb 1 21:21:37.139: //-1//SERV:/AFW_Service_CCInterface: Received Event 24 for service fax_detect modulehandle NULL Feb 1 21:21:37.139: //-1//SERV:/AFW_Service_GetExecEnv: Script Name = fax_detect Feb 1 21:21:37.139: //-1//AFW_:/AFW_TclModule_New: Feb 1 21:21:37.139: //-1//AFW_:EE638C6A24000:/Tcl_Link: Linking script fax_detect Feb 1 21:21:37.143: //-1//ACPK:EE638C6A24000:/AppCommon_SetSecurity: security = undefined Feb 1 21:21:37.143: //-1//ACPK:EE638C6A24000:/AppCommon_SetEventLog: event-log = unconfigured Feb 1 21:21:37.143: //-1//TCL :EE638C6A24000:/tcl_FSMObjCmd: fsm define FSM CALL_INIT Feb 1 21:21:37.143: //-1//TCL :EE638C6A24000:/tcl_FSMDefineObjCmd: State Machine: Array FSM: Start State: CALL_INIT Feb 1 21:21:37.143: //-1//TCL :EE638C6A24000:/tcl_FSMDefineObjCmd: FSM Data structure Feb 1 21:21:37.143: (SWITCH_FAX_OUTGOING(2), ev_disconnect_done(17)--(act_setup_fax_outgoing)-->(CLEANUP(3)) Feb 1 21:21:37.143: (CLEANUP(3), ev_disconnected(16)--(act_cleanup)-->(any_state(0)) Feb 1 21:21:37.143: (DISCONNECT_LEG_OUTGOING(4), ev_destroy_done(35)--(act_disconnect_leg_outgoing)-->(SWITCH_FAX_OUTGOING(2)) Feb 1 21:21:37.143: (VOICE_PROCEEDING(5), ev_setup_done(167)--(act_voice_proceeding)-->(CONNECTION_DESTROY(6)) Feb 1 21:21:37.143: (SETUP_FAX_OUTGOING(7), ev_setup_done(167)--(act_setup_fax_outgoing)-->(CLEANUP(3)) Feb 1 21:21:37.143: (CONNECTION_DESTROY(6), ev_tone_detected(30)--(act_connection_destroy)-->(DISCONNECT_LEG_OUTGOING(4)) Feb 1 21:21:37.143: (any_state(0), ev_leg_timer(1)--(act_disable_cng)-->(any_state(0)) Feb 1 21:21:37.143: FSM start state CALL_INIT(1) Feb 1 21:21:37.143: //-1//AFW_:EE638C6A24000:/Tcl_Link: Script fax_detect succesfully linked. Feb 1 21:21:37.143: //-1//AFW_:EE638C6A24000:/AFW_ExecEnv_SetScript: Num of packTable entries: 27 Feb 1 21:21:37.143: //-1//AFW_:EE638C6A24000:/AFW_ExecEnv_RestoreDataBackup: Script DataArea empty, do backup Feb 1 21:21:37.143: //-1//AFW_:EE638C6A24000:/AFW_ExecEnv_RestoreDataBackup: Script TokenTable empty, do backup Feb 1 21:21:37.143: //-1//SERV:/AFW_Service_Process_Space: Feb 1 21:21:37.143: Process Started Feb 1 21:21:37.143: //134522//AFW_:/AFW_M_TclModule_Action: Feb 1 21:21:37.143: //134522//AFW_:/AFW_TclModule_DefaultEvHandling: Feb 1 21:21:41: %ISDN-6-REPEATED_SETUP: Interface Se7/0:1:23 Call Cid 0x0365 Cref 0x832A received a retransmitted setup on channel 21 in_use_cid 0x7D7A cref 0x951F. Feb 1 21:21:41.139: //-1//SERV:/AFW_Service_CCInterface: Received Event 24 for service fax_detect modulehandle NULL Feb 1 21:21:41.139: //-1//SERV:/AFW_Service_GetExecEnv: Script Name = fax_detect Feb 1 21:21:41.139: //-1//AFW_:/AFW_TclModule_New: Feb 1 21:21:41.139: //-1//AFW_:EE638C5C8C000:/Tcl_Link: Linking script fax_detect Feb 1 21:21:41.139: //-1//ACPK:EE638C5C8C000:/AppCommon_SetSecurity: security = undefined Feb 1 21:21:41.139: //-1//ACPK:EE638C5C8C000:/AppCommon_SetEventLog: event-log = unconfigured Feb 1 21:21:41.143: //-1//TCL :EE638C5C8C000:/tcl_FSMObjCmd: fsm define FSM CALL_INIT Feb 1 21:21:41.143: //-1//TCL :EE638C5C8C000:/tcl_FSMDefineObjCmd: State Machine: Array FSM: Start State: CALL_INIT Feb 1 21:21:41.143: //-1//TCL :EE638C5C8C000:/tcl_FSMDefineObjCmd: FSM Data structure Feb 1 21:21:41.143: (SWITCH_FAX_OUTGOING(2), ev_disconnect_done(17)--(act_setup_fax_outgoing)-->(CLEANUP(3)) Feb 1 21:21:41.143: (CLEANUP(3), ev_disconnected(16)--(act_cleanup)-->(any_state(0)) Feb 1 21:21:41.143: (DISCONNECT_LEG_OUTGOING(4), ev_destroy_done(35)--(act_disconnect_leg_outgoing)-->(SWITCH_FAX_OUTGOING(2)) Feb 1 21:21:41.143: (VOICE_PROCEEDING(5), ev_setup_done(167)--(act_voice_proceeding)-->(CONNECTION_DESTROY(6)) Feb 1 21:21:41.143: (SETUP_FAX_OUTGOING(7), ev_setup_done(167)--(act_setup_fax_outgoing)-->(CLEANUP(3)) Feb 1 21:21:41.143: (CONNECTION_DESTROY(6), ev_tone_detected(30)--(act_connection_destroy)-->(DISCONNECT_LEG_OUTGOING(4)) Feb 1 21:21:41.143: (any_state(0), ev_leg_timer(1)--(act_disable_cng)-->(any_state(0)) Feb 1 21:21:41.143: FSM start state CALL_INIT(1) Feb 1 21:21:41.143: //-1//AFW_:EE638C5C8C000:/Tcl_Link: Script fax_detect succesfully linked. Feb 1 21:21:41.143: //-1//AFW_:EE638C5C8C000:/AFW_ExecEnv_SetScript: Num of packTable entries: 27 Feb 1 21:21:41.143: //134523//AFW_:/AFW_M_TclModule_Action: Feb 1 21:21:41.143: //134523//AFW_:/AFW_TclModule_DefaultEvHandling: Feb 1 21:21:47.683: //134520//AFW_:/Session_Cleaner: lastFailureCause 16 Feb 1 21:21:47.683: //134520//AFW_:/Session_Cleaner: lastFailureCause 16 Feb 1 21:21:47.683: //134520//AFW_:/AFW_M_TclModule_Action: Feb 1 21:21:47.683: //134520//AFW_:/AFW_TclModule_DefaultEvHandling: Feb 1 21:21:47.731: //134520//AFW_:/AFW_M_TclModule_Action: Feb 1 21:21:47.731: //134520//AFW_:/AFW_TclModule_DefaultEvHandling: Feb 1 21:21:47.731: //-1//AFW_:/AFW_ExecEnv_CallClose: Exec Env state: 1 Feb 1 21:21:47.731: //-1//AFW_:/AFW_ExecEnv_CallClose: Terminating ExecEnv's root module Feb 1 21:21:47.731: //134520//AFW_:/AFW_M_TclModule_Terminate: Module is in the state: ACTIVE Feb 1 21:21:47.731: //134520//AFW_:/AFW_M_TclModule_Action: Feb 1 21:21:47.731: //134520//AFW_:/AFW_M_TclModule_Action: Module is Terminating Feb 1 21:21:47.731: //134520//AFW_:/AFW_TclModule_ReturnIfDone: Sending Out APP_EV_TCLMODULE_DONE event Feb 1 21:21:47.731: //-1//AFW_:/AFW_ExecEnv_CallClose: Exec Env state: 3 Feb 1 21:21:47.731: //134520//AFW_:/AFW_M_TclModule_EventPreProcess: Feb 1 21:21:47.731: //-1//SERV:/AFW_Service_ReleaseExecEnv: Script Name = Default cache = true calls = 1 Feb 1 21:21:47.731: //-1//SCRI:/cam_sa_stopped: Instance: [] ExecEnv: 0x6629346C Feb 1 21:22:00.039: //-1//SERV:/AFW_Service_CCInterface: Received Event 24 for service Default modulehandle NULL Feb 1 21:22:00.039: //-1//SERV:/AFW_Service_GetExecEnv: Script Name = Default Feb 1 21:22:00.039: //-1//SERV:/AFW_Service_GetExecEnv: Using Cached ExecEnv Feb 1 21:22:00.039: //-1//AFW_:/AFW_M_TclModule_NewDup: Feb 1 21:22:00.039: //-1//AFW_:HN5EB5F52C:/AFW_M_TclModule_Free: MOD[TclModule_65DF6F04_2_1588983084] ( ) Feb 1 21:22:00.039: //-1//AFW_:EE6629346C000:/AFW_ExecEnv_RestoreDataBackup: Restore DataArea from Script Feb 1 21:22:00.039: //-1//AFW_:EE6629346C000:/AFW_ExecEnv_RestoreDataBackup: Restore TokenTable from Script Feb 1 21:22:00.039: //134524//AFW_:/AFW_M_TclModule_Action: Feb 1 21:22:00.039: //134524//AFW_:/AFW_TclModule_DefaultEvHandling: Feb 1 21:22:00.163: //134524//AFW_:/AFW_M_TclModule_Action: Feb 1 21:22:00.163: //134524//AFW_:/AFW_TclModule_DefaultEvHandling: Feb 1 21:22:06.031: //134524//AFW_:/Session_Cleaner: lastFailureCause 16 Feb 1 21:22:06.031: //134524//AFW_:/Session_Cleaner: lastFailureCause 16 Feb 1 21:22:06.031: //134524//AFW_:/AFW_M_TclModule_Action: Feb 1 21:22:06.031: //134524//AFW_:/AFW_TclModule_DefaultEvHandling: Feb 1 21:22:06.083: //134524//AFW_:/AFW_M_TclModule_Action: Feb 1 21:22:06.083: //134524//AFW_:/AFW_TclModule_DefaultEvHandling: Feb 1 21:22:06.083: //-1//AFW_:/AFW_ExecEnv_CallClose: Exec Env state: 1 Feb 1 21:22:06.083: //-1//AFW_:/AFW_ExecEnv_CallClose: Terminating ExecEnv's root module Feb 1 21:22:06.083: //134524//AFW_:/AFW_M_TclModule_Terminate: Module is in the state: ACTIVE Feb 1 21:22:06.083: //134524//AFW_:/AFW_M_TclModule_Action: Feb 1 21:22:06.083: //134524//AFW_:/AFW_M_TclModule_Action: Module is Terminating Feb 1 21:22:06.083: //134524//AFW_:/AFW_TclModule_ReturnIfDone: Sending Out APP_EV_TCLMODULE_DONE event Feb 1 21:22:06.083: //-1//AFW_:/AFW_ExecEnv_CallClose: Exec Env state: 3 Feb 1 21:22:06.083: //134524//AFW_:/AFW_M_TclModule_EventPreProcess: Feb 1 21:22:06.083: //-1//SERV:/AFW_Service_ReleaseExecEnv: Script Name = Default cache = true calls = 1 Feb 1 21:22:06.083: //-1//SCRI:/cam_sa_stopped: Instance: [] ExecEnv: 0x6629346Cterm no mon ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In the above, I try to call our main number, and simple get three beeps, then the call fails. This is the code: proc act_connection_destroy {} { timer stop leg_timer leg_incoming leg tonedetect leg_incoming disable cng connection destroy leg_incoming puts "\nConnection Destroyed!!!\n" } proc act_disconnect_leg_outgoing {} { leg disconnect leg_outgoing 16 } proc act_setup_fax_outgoing {} { global DNIS set args "au-ctrl=0, acc-ctrl=0, au-method=0, accounting-list=fax, au-status=1, account=[set $DNIS]" set callInfo(alertTime) -1 set callInfo(fax) true set callInfo(accountNum) 0 set callInfo(argstring) $args leg setup leg_outgoing callInfo -d 2 # set args "au-ctrl=0, acc-ctrl=0, au-method=0, accounting-list=fax, au-status=1, account=[set $DNIS], mailtoAddress=mailto:$d$@inbound.efax.beanfield.com" # handoff appl leg_incoming fax_on_vfc_onramp_app -s $args } proc act_cleanup {} { timer stop leg_timer leg_incoming leg tonedetect leg_incoming disable cng call close } proc act_disable_cng {} { timer stop leg_timer leg_incoming leg tonedetect leg_incoming disable cng } proc act_voice_proceeding {} { global DNIS set status [infotag get evt_status] if {$status == "ls_000" || $status == "ls_014"} { leg tonedetect leg_incoming enable cng timer start leg_timer 9 leg_incoming } else { fsm setstate CLEANUP act_cleanup } } proc act_check_fax_or_voice {} { global DNIS set DNIS [infotag get leg_dnis] timer stop leg_timer leg_incoming leg tonedetect leg_incoming disable cng puts "\n$DNIS\n" set Q [lsearch -exact {4165832182 4163066481 4165298887 4169773333 4165343843} $DNIS] puts "\n$Q\n" if {[lsearch -exact {4165832182 4163066481 4165298887 4169773333 4165343843} $DNIS]>=0} { fsm setstate SETUP_FAX_OUTGOING act_setup_fax_outgoing } else { leg proceeding leg_incoming leg setup $DNIS callInfo leg_incoming } } set DNIS 0 set FSM(any_state,ev_leg_timer) "act_disable_cng,same_state" set FMS(CALL_INIT,ev_setup_indication) "act_check_fax_or_voice,VOICE_PROCEEDING" set FSM(VOICE_PROCEEDING,ev_setup_done) "act_voice_proceeding,CONNECTION_DESTROY" set FSM(CONNECTION_DESTROY,ev_tone_detected) "act_connection_destroy,DISCONNECT_LEG_OUTGOING" set FSM(DISCONNECT_LEG_OUTGOING,ev_destroy_done) "act_disconnect_leg_outgoing,SWITCH_FAX_OUTGOING" set FSM(SWITCH_FAX_OUTGOING,ev_disconnect_done) "act_setup_fax_outgoing,CLEANUP" set FSM(SETUP_FAX_OUTGOING,ev_setup_done) "act_setup_fax_outgoing,CLEANUP" set FSM(CLEANUP,ev_disconnected) "act_cleanup,same_state" fsm define FSM CALL_INIT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Can someone tell me obviously dumb mistake I'm making? I'm pulling my hair out. |