Time start call_timer0 2 Error for differents environments

Version 1
    This document was generated from CDN thread

    Created by: Jean Lofrano on 12-08-2011 02:37:32 PM
    Hi,
    My script TCL IVR is working normally for my environment (site A)...
    But, The same script is not working in the site B or in another environment.
     
    The script running on site A the timer work (internal and external calls), but the same script running on site B the timer is not work for external calls.
     
    I changed the time to 1,2,3 seconds, but the solution is not work to site B.
     
    Script:
    proc ActionCallPrepare { } {
        puts "Waiting start"
        timer start call_timer0 2
    }
     
    Can you help me please?
     
    Thanks.

    Subject: RE: Time start call_timer0 2 Error for differents environments
    Replied by: Jean Lofrano on 12-08-2011 03:13:12 PM
    My script is working.

    But, I have a problem with the "timer start call_timer0 2" command.

    My script start with 2 audios:

    The first audio "Hi" run in the proc ActionPlayWelcome { }

    The second audio  "Please, press 1 to ... press 2 to... press 3 to... " run in the proc ActionPlayQuestion1 { }


    So, my problem is to external calls calling the script:

    Sometimes the caller hear the first audio, but in another times the caller just hear the second audio.

    The caller does not hear the both audio...just sometimes.. 

    thanks.

    Subject: RE: Time start call_timer0 2 Error for differents environments
    Replied by: Jean Lofrano on 12-08-2011 03:23:54 PM
    OK, I tested my script with just one audio, but the audio is cut.

    Subject: RE: Time start call_timer0 2 Error for differents environments
    Replied by: Jean Lofrano on 12-08-2011 03:24:56 PM
    #procedure to play audio file on incoming dial peer
    proc ActionPlayWelcome { } {
        puts "IT7: playing audio Welcome"

        global WelcomePrompt
        global CallerID

        leg setupack leg_incoming
        leg proceeding leg_incoming
        leg connect leg_incoming

        set CallerID [infotag get leg_ani]

        puts "IT7: Caller ID $CallerID"

        media play leg_incoming $WelcomePrompt

        puts "IT7: Audio played Welcome"
    }

    #--------------------------------------------------------------------------------
    #--------------------------------------------------------------------------------
    #--------------------------------------------------------------------------------

    #procedure to play Question 1
    proc ActionPlayQuestion1 { } {
       
        global counter

        set counter 0
       
       set Question1Param(interruptPrompt) true
       set Question1Param(terminationKey) #
       set Question1Param(enableReporting) true
       set Question1Param(maxDigits) 1
       set Question1Param(dialPlan) true
       set Question1Pattern(1) "1"
       set Question1Pattern(2) "2"
       set Question1Pattern(3) "3"
       
        puts "IT7: playing question 1"

        media play leg_incoming "flash:/Fem/opcoes.wav"

        puts "IT7: played question 1"

        leg collectdigits leg_incoming Question1Param Question1Pattern

        fsm setstate COLLECTEDQUESTION1

    }

    proc ActionPlayQuestion1Again { } {
       
        global counter

        if { $counter < "2"} {

        incr counter

        puts "$counter"

        puts "IT7: playing question 1 again"

        media play leg_incoming "flash:/Fem/opcoes.wav"

    Subject: RE: Time start call_timer0 2 Error for differents environments
    Replied by: Yaw-Ming Chen on 12-08-2011 02:51:06 PM
    You may want to open a CDN developer support case.
    or
    You can also provide the info as detail as possible in forum so maybe someone can help you once he/she understands your issue
    It's hard to know what is not working in site B.
    What is not working, script, debug.....all these are needed to understand your issue.

    Thanks !

    Subject: RE: Time start call_timer0 2 Error for differents environments
    Replied by: Yaw-Ming Chen on 12-08-2011 03:18:54 PM
    That's why you need to show your script. We don't know how you script it.
    You can play 2 audio files with one command don't need to separate them into 2

    Subject: RE: Time start call_timer0 2 Error for differents environments
    Replied by: Yaw-Ming Chen on 12-08-2011 03:29:21 PM
    So you need to look into debug

    deb voip app mdeia, tcl, scr...

    Subject: RE: Time start call_timer0 2 Error for differents environments
    Replied by: Jean Lofrano on 15-08-2011 09:20:13 AM
    Hi..
    The debug were attached.
     
    thanks.

    Subject: RE: Time start call_timer0 2 Error for differents environments
    Replied by: Yaw-Ming Chen on 17-08-2011 01:00:41 PM
    From the debug, I couldn't see anything abnormal . Can you please explain what do you mean "audio is cut" ? Which audio file ?

    Also please describe how the call is made.

    Thanks !

    Subject: RE: Time start call_timer0 2 Error for differents environments
    Replied by: Jean Lofrano on 17-08-2011 09:30:48 AM
    Could you help me please with the debug attached?

    thanks.

    Subject: RE: Time start call_timer0 2 Error for differents environments
    Replied by: Jean Lofrano on 17-08-2011 03:02:56 PM
    Ok...
    The call flow was attached.
    The user that call the router via "Internal call to router" listen the full welcome prompt.
    But, the user that call the router via "External call to router" does not listen the full welcome prompt.
     
    thanks.

    Subject: RE: Time start call_timer0 2 Error for differents environments
    Replied by: Jean Lofrano on 19-08-2011 02:16:21 PM
    Could you help me please?

    Subject: RE: Time start call_timer0 2 Error for differents environments
    Replied by: Yaw-Ming Chen on 19-08-2011 02:28:22 PM
    "The user that call the router via "External call to router" does not listen the full welcome prompt."

    Do you mean caller cannot hear complete sentence ? Like suppose to hear "welcome to ABC company" but hear "welcome to"

    Or you have two audio file but only hear one of them ?


    Since you have another box in between

    I suggest you remove this line just for testing
    set Question1Param(interruptPrompt) true

    This is to test if Ecrison PBX send some thing that interrupt the prompt

    Subject: RE: Time start call_timer0 2 Error for differents environments
    Replied by: Jean Lofrano on 19-08-2011 02:58:15 PM
    Exactly!!!

    Do you mean caller cannot hear complete sentence ? Like suppose to hear "welcome to ABC company" but hear "welcome to"??

    Yes! Caller cannot hear complete sentence!!

    I´m going to test removing  "set Question1Param(interruptPrompt) true"

    thanks.

    Subject: RE: Time start call_timer0 2 Error for differents environments
    Replied by: Yaw-Ming Chen on 24-08-2011 10:48:23 AM
    Did you remove "set Question1Param(interruptPrompt) true" and prompt was still cut ?

    Thanks !

    Subject: RE: Time start call_timer0 2 Error for differents environments
    Replied by: Jean Lofrano on 24-08-2011 09:47:19 AM
    I think that Ericson does not interrupt the prompt, because the for internal calls the caller can hear complete sentence.