call flow disconnects all calls.

Discussion in 'CRM / Helpdesk / App Integration' started by Trestill, Apr 3, 2017.

Thread Status:
Not open for further replies.
  1. Trestill

    Joined:
    Jan 22, 2015
    Messages:
    39
    Likes Received:
    1
    Hi,

    I have a problem with my project. I try to announce greeting message from txt file with TTS. The file path depends on time of the day. The problem is that no message is played. Call is dropped immediately after transfer to VAD call flow. I tried to debug this myself but without success.
    So here we go. Activity log:
    Code:
     03-Apr-2017 10:01:50.906   [CM503008]: Call(C:1): Call is terminated
    03-Apr-2017 10:01:50.899   Leg L:1.2[Ivr:011] is terminated: Cause: BYE from 127.0.0.1:5483
    03-Apr-2017 10:01:50.502   [CM503007]: Call(C:1): Ivr:011 has joined, contact <sip:011@127.0.0.1:5483>
    and IVR server log:
    Code:
    10:01:50.771|5044|(0):Error! Module '3CX.com.OSBinet'. Error ID 301. urlhttp://10.9.112.38:5000/ivr/(S(igixip4pznghajrenfyaf0hv))/Koszalin_14/Root_Koszalin.vxml
    10:01:50.779|5044|(0):Error! Module '3CX.com.OSBjsi'. Error ID 501. errmsgmissing ; before statementline1linetxtapplication.711_Godzina=__SBjsiTempVartokentxt.711_Godzina=__SBjsiTempVar
    10:01:50.779|5044|(0):Error! Module '3CX.com.OSBjsi'. Error ID 501. errmsgSyntaxError: missing ; before statementline1linetxtapplication.711_Godzina=__SBjsiTempVartokentxt.711_Godzina=__SBjsiTempVar
    10:01:50.797|5044|(0):Error! Module '3CX.com.OSBinet'. Error ID 301. urlhttp://10.9.112.38:5000/ivr/(S(igixip4pznghajrenfyaf0hv))/Koszalin_14/711_ErrorHandler.vxml
    10:01:50.811|5044|(0):Error! Module '3CX.com.OSBinet'. Error ID 301. urlhttp://10.9.112.38:5000/ivr/(S(igixip4pznghajrenfyaf0hv))/Koszalin_14/Root_Koszalin.vxml
    10:01:50.812|5044|(0):Error! Module '3CX.com.vxi'. Error ID 999. messageunexpected jump to a document
    10:01:50.813|5044|api\VXIFactory.cpp(330):IvrDll, VXISessionImpl::ProcessDocument(), Error! VXIinterpreter->Run() failed, error code -100
    10:01:50.813|5044|VXIMachine.cpp(55):IvrDll, VXISessionThread::Run(), Error! Call 'From_886432410_To_011_Menu_011_#0/0': session finished with error code -57. Error of document interpretation: -57, interp.code: -100
    
    I check this article: https://www.3cx.com/blog/docs/troubleshooting-iis-ivr/ it didn't solve it
     
  2. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,066
    Likes Received:
    75
    Hi @Trestill

    The error is described here:
    errmsgmissing ; before statementline1linetxtapplication.711_Godzina=__SBjsiTempVartokentxt.711_Godzina=__SBjsiTempVar

    That's a missing ";" in some javascript code. Did you add javascript code to the project? In that case I would suggest that you check it.

    Kind regards.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Trestill

    Joined:
    Jan 22, 2015
    Messages:
    39
    Likes Received:
    1
    Hi Ernesto,

    I noticed it. I'm using simple function callflow$.Godzina = new Date().getHours()
    I tried adding ; to the end of this line with little progress - the error messages change slightly.

    To my disbelieve when I removed components and added them anew everything worked.

    After few hors of testing it was clear that when I RENAME some components (e.g. fileManagementComponents) to any custom name then my flow stop working.

    Let's just hope iv v15 there wont be such issues.

    Cheers
     
  4. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,066
    Likes Received:
    75
    Hi @Trestill,

    I would have to see the project sources to understand the cause of the problem, but for sure using the following expression:
    callflow$.Godzina = new Date().getHours()

    is wrong, because using "callflow$.Godzina" as a varialbe is not valid, it will be renamed to something else by the VAD when it creates the app output, and you will get a javascript error. To use VAD variables, you need to use VAD functions. For example, to do that, you need to use an External Code Execution component to calculate "new Date().getHours()", and then use a Variable Assignment component to set the ReturnValue to the callflow variable "callflow$.Godzina".

    Something else, when you rename a component, references to that component name are NOT automatically renamed, so if you were using for example a result from that component later, you need to manually rename the references to it.

    Kind regards.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.