Delay when caller press 0 to meet operator ????

Version 1
    This document was generated from CDN thread

    Created by: Nguyen Duc Trung on 26-04-2010 07:49:50 AM
    Dear all,
    I'm a newbie in TCL Script programing. In my company using Router voice gateway R2801. I'm using TCL Script for IVR application. My scenario is : when caller call from PSTN to voice gateway, IVR Application is enable to tell the caller press extension number to meet extension user or press 0 to meet operator for help.
    When I test, after welcome prompt, if I press extension number directly, the call forwards to extension immediately. But if I press 0 to meet operator, the call is delay. The call is delay between 10-15 second before forward to operator.
    In my scenario, if press 0, the call forward to extension 165. How to reject delay after press 0 to meet operator ?
     
    I can't understand why this errors appear ? Can anyone help me to resolve this problem. I attach my TCL Script in this thread for  troubleshooting.
     
     
    Thanks,
    Trung.
     
     

    Subject: RE: Delay when caller press 0 to meet operator ????
    Replied by: Vijay Prasad Neelamegam on 26-04-2010 12:22:47 PM
    Hi Nguyen,
     
    Thanks for the script.
    I dont see any delay when i try this my local lab.
    As
    per this script,it should match act_process_dtmf,but it doesnt seems
    matching that for me and after ev_collectdigit_done it matches
    act_PromptCollect_acct1 .But As per the logic ev_digit_end should
    occur.Can you pls enable following debugs and send me the traces
    Debug voip application tcl
    Debug voip application state
    Debug voip application script
     
    Thanks
    Vijay

    Subject: RE: Delay when caller press 0 to meet operator ????
    Replied by: Yawming Chen on 26-04-2010 07:37:51 PM
    Hi
    This is your application.
    "IVR Application is enable to tell the caller press extension number to meet extension user or press 0 to meet operator for help"
     
    In your application the valid digit input will be 0 or ext number.
    Script will be  waiting for 1 or more digits. That's why you need # as termination key  that terminates the digit collection. So it won't wait for next digits otehrwise it will wait for 10 seconds which is  initialDigitTimeout ro end the digit collection.
     
    Hope this help !

    Subject: RE: Delay when caller press 0 to meet operator ????
    Replied by: Nguyen Duc Trung on 26-04-2010 06:46:58 PM
    Dear Vijay,
    Thank you very much about your support. I sent for you 3 attach file, output of Debug voip application state, Debug voip application script and Debug voip application tcl as you required.
    The output file contain output when I test in 3 case: the operator not answer the call, the operator answer the call and the output when I press 0# ( not press 0 only) to meet operator.
    In this output file: With case the oprator and answer and not answer the call, after this script succeed to create stream, it take about 20s to go to next action is Apr 26 18:07:50.787: //146//AFW_:/AFW_M_TclModule_Action. So it is the reason of delay when press 0 to meet operator.
     
    When I press 0# to meet operator, the call is route to operator extension immediately, It does't have any delay as when press 0 only, not include # in input string. So what is difference between press 0 and 0#.
     
    I has adjusted this script to : when press 0, the call route to 4100 extension number and play _welcome.au media prompt. I informed for you to follow.
    If you need some information, please let me know, I will reponse for you as soon as possible.
     
    thank you very much,
    Trung.

    Subject: RE: Delay when caller press 0 to meet operator ????
    Replied by: Nguyen Duc Trung on 28-04-2010 02:59:08 AM
    Dear  Yawming Chen,
    So with my script, we must wait for 10 second for collect digit. Do you have another solution for this case or we must change IVR audio file to press 0# to meet operator ?
     
    Thanks,
    Trung.

    Subject: RE: Delay when caller press 0 to meet operator ????
    Replied by: Vijay Prasad Neelamegam on 28-04-2010 05:55:47 AM
    Hi Nguyen,
     
    You can try using set param(maxDigits) 1 to avoid waiting for 10 secs.
     
    Thanks
    Vijay

    Subject: RE: Delay when caller press 0 to meet operator ????
    Replied by: Yawming Chen on 28-04-2010 04:42:41 PM
    Please note that if you  set param(maxDigits) 1 you need to modify other logic also.
    Because extension number is more than one and greeting (programming logic) is asking 1 or more than one digit.
     
    The other way is not to use set param(maxDigits) 1.
    The Tcl application will receive an ev_digit_end event. If can check when script receive the 1st of this event and if the digit is 0 end the digit collect action.
     
    If you don't want to modify script then you can change greeting.
     
    Hope this help.

    Subject: RE: Delay when caller press 0 to meet operator ????
    Replied by: shanghai office on 26-05-2010 03:01:06 PM
    because the default voice-port time interdigit is 10sec,so after press 0 you must wait for 10sec
    you can change the vaule to 1 or 2sec

    Subject: RE: Delay when caller press 0 to meet operator ????
    Replied by: Telecomunicaciones Reniec on 26-06-2010 02:20:17 AM
    application
      service autoatt flash:its-CISCO.2.0.1.0.tcl
      paramspace english index 1
      paramspace english language en
      param operator 1919
      paramspace english location flash:
      paramspace english prefix en
      param aa-pilot 3336666
      param en 0

    Subject: Thread Splitted
    Replied by: Anusha Kannappan on 16-12-2011 03:50:33 AM
    The new thread can be found at http://developer.cisco.com/web/vgapi/forums/-/message_boards/view_message/2932495.