Collect Digit failed to initiate

Version 1
    This document was generated from CDN thread

    Created by: Lisandro Quinteros on 19-09-2013 09:12:34 AM
    Hi I am having some trouble with a script.. I just collect digit on act_Setup as always...
    Then my FSM has this line:   set fsm(GETDEST,ev_collectdigits_done)   "act_GotDest, same_state"
    so in act_GotDest I just do this:

    when Collect digit has has status 4 or 5:

    if {  $status == "cd_005" || $status == "cd_004" } {
          set dest [infotag get evt_dcdigits]             
          puts "\n Coleccion de Digitos Completa!!!"         
          if { $dest == "1" } {  
                  set dest "72001"  puts "\n Marco 1 y el destino es $dest"             
              } elseif { $dest == "2" } {               
                 set dest "6191"  puts "\n Marco 2 y el destino es $dest"           
             } elseif { $dest == "3" } {               
                set dest "85906"  puts "\n Marco 3 y el destino es $dest"           
             } else {         
            puts "\n Marco un numero invalido le aviso reproduzco silencio y luego reproduzco nuevamente el audio principal!!!"     
            media play leg_incoming "flash://sp_wrong_lang_sel.au flash://superlinea.au"           leg collectdigits leg_incoming param           return                  
           
     } 
      } 

    If the caller dial 1, 2 or 3 I set the destination to diferent pilots 
    If the user press for example 4 I just want to play and audio telling him that this was a wrong answer, play again the main welcome audio and collect digit again.. 
    and do a return ...
    But when the user press for example 4 I can't heard audio and resive this from debugs..


    *Sep 19 14:18:59.806: //79//TCL :/tcl_PutsObjCmd:  INICIO DE: proc act_GotDest !!
    *Sep 19 14:18:59.806: 
    *Sep 19 14:18:59.806: //79//TCL :/tcl_PutsObjCmd:  Estado cd_005 
    *Sep 19 14:18:59.806: *Sep 19 14:18:59.810: //79//TCL :/tcl_PutsObjCmd:  Coleccion de Digitos Completa!!!
    *Sep 19 14:18:59.810: *Sep 19 14:18:59.810: //79//TCL :/tcl_PutsObjCmd:  Marco un numero invalido le aviso reproduzco silencio y luego reproduzco nuevamente el audio principal!!!
    *Sep 19 14:18:59.810: *Sep 19 14:18:59.810: //-1//Digi:HN04F3E1E8:/AFW_DigitCollect_New: Invalid collection args, nothing to do
    *Sep 19 14:18:59.810: //79//AFW_:/AFW_FSM_Drive: Tcl_Eval to drive FSM inside Tcl modulespace. code=1 code=ERROR
    *Sep 19 14:18:59.810: TCL script failure         Result:                         DigitCollect Command failed to intiate
    *Sep 19 14:18:59.810:   TCL script failure errorInfo:                        DigitCollect Command failed to intiate    while executing"leg collectdigits leg_incoming param    (procedure "act_GotDest" line 41)    invoked from within"act_GotDest"          

    Gateway 2821
    IOS Version 12.4(22)T

    Any suggest why this happend..

    Subject: RE: Collect Digit failed to initiate
    Replied by: Lisandro Quinteros on 19-09-2013 01:24:44 PM
    Now its working... 
    Silly mistake forgot to define global param on act_GotDest thats why collectdigit couldn't initiate becouse of unrecheable args...

    Thanks..