Variable Usage

Discussion in 'Call Flow Designer' started by leonp, Feb 2, 2018.

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

    Joined:
    Jan 21, 2018
    Messages:
    37
    Likes Received:
    2
    Hi,

    Is there a way to assign a variable, which is accessible for the duration of a call, even when that call might flow through multiple queues and processed from CFD?

    I have considered that I could probably write the value to a file and later read from the same file, but the variable would be tidier.

    Thanks,

    Leon
     
  2. voiptoys

    voiptoys Member

    Joined:
    Feb 13, 2013
    Messages:
    478
    Likes Received:
    79
    You will need to write it to a file / database. Once a call is transferred from a CFD you no longer have access to any variable values.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. leonp

    Joined:
    Jan 21, 2018
    Messages:
    37
    Likes Received:
    2
    I'm having toruble uploading a picture file - call flow picture can bee seen here: https://www.dropbox.com/s/yzzzcsxmn10xey7/Capture.JPG?dl=0

    I wonder if someone can help me understand this call flow. This app is designed only to prove a point. When entered, it correctly establishes that the file doesn't exist and therefore it follows the path down the right hand side and writes the number 1 to a file. It then transfers to itself, at which point it enters the channel on the left hand side, however my eventual log ouput is basically...
    Code:
    18/02/07 09:51:03.704|100049| Trc|75|0020|: PlugIn[sdpOohLoop - Callflow - MainFlow - CallID UEQJLQDINTCG] Trace: Start executing component 'logLoopIndex1'
    18/02/07 09:51:03.704|100023| Inf|30|0020|: PlugIn[sdpOohLoop - LoggerComponent - CallID UEQJLQDINTCG] INFO: Loop Index is: 1
    18/02/07 09:51:03.704|100049| Trc|75|0020|: PlugIn[sdpOohLoop - Callflow - MainFlow - CallID UEQJLQDINTCG] Trace: Start executing component 'assignLoopIndex'
    18/02/07 09:51:03.705|100049| Trc|75|0020|: PlugIn[sdpOohLoop - VariableAssignmentComponent - CallID UEQJLQDINTCG] Trace: Start executing component with variableName='callflow$.loopIndex' - variableValue='1'
    18/02/07 09:51:03.705|100049| Trc|75|0020|: PlugIn[sdpOohLoop - Callflow - MainFlow - CallID UEQJLQDINTCG] Trace: Start executing component 'CreateCondition1'
    18/02/07 09:51:03.705|100049| Trc|75|0020|: PlugIn[sdpOohLoop - SequenceContainer 'CreateCondition1_0' - CallID UEQJLQDINTCG] Trace: Start executing component 'logLoopIndex2'
    18/02/07 09:51:03.705|100023| Inf|30|0020|: PlugIn[sdpOohLoop - LoggerComponent - CallID UEQJLQDINTCG] INFO: Loop Index is: 1
    18/02/07 09:51:03.705|100049| Trc|75|0020|: PlugIn[sdpOohLoop - SequenceContainer 'CreateCondition1_0' - CallID UEQJLQDINTCG] Trace: Start executing component 'incrementLoopIndex'
    18/02/07 09:51:03.706|100049| Trc|75|0020|: PlugIn[sdpOohLoop - IncrementVariableComponent - CallID UEQJLQDINTCG] Trace: Start executing component with variableName='callflow$.loopIndex'
    18/02/07 09:51:03.707|100049| Trc|75|0020|: PlugIn[sdpOohLoop - SequenceContainer 'CreateCondition1_0' - CallID UEQJLQDINTCG] Trace: Start executing component 'logLoopIndex3'
    18/02/07 09:51:03.707|100023| Inf|30|0020|: PlugIn[sdpOohLoop - LoggerComponent - CallID UEQJLQDINTCG] INFO: Loop Index is: 1
    18/02/07 09:51:03.707|100049| Trc|75|0020|: PlugIn[sdpOohLoop - SequenceContainer 'CreateCondition1_0' - CallID UEQJLQDINTCG] Trace: Start executing component 'incrementLoopIndex1'
    18/02/07 09:51:03.708|100049| Trc|75|0020|: PlugIn[sdpOohLoop - IncrementVariableComponent - CallID UEQJLQDINTCG] Trace: Start executing component with variableName='callflow$.loopIndex'
    18/02/07 09:51:03.708|100049| Trc|75|0020|: PlugIn[sdpOohLoop - SequenceContainer 'CreateCondition1_0' - CallID UEQJLQDINTCG] Trace: Start executing component 'logLoopIndex4'
    18/02/07 09:51:03.708|100023| Inf|30|0020|: PlugIn[sdpOohLoop - LoggerComponent - CallID UEQJLQDINTCG] INFO: Loop Index is: 1
    18/02/07 09:51:03.708|100049| Trc|75|0020|: PlugIn[sdpOohLoop - SequenceContainer 'CreateCondition1_0' - CallID UEQJLQDINTCG] Trace: Start executing component 'DisconnectCall1'
    I don't understand why the increment variable piece is not actually incrementing the variable.
     
  4. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,058
    Likes Received:
    75
    We would have to see the entire project to check what you're logging. The IncrementVariable component works, I just tested it with a similar project and don't see anything wrong there. Can you share your project with me?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. leonp

    Joined:
    Jan 21, 2018
    Messages:
    37
    Likes Received:
    2
    Sure, what is the best way to get it to you? Every time I try to upload a file, I get an error message which says...

    The following error occurred
    There was a problem uploading your file.

    Thanks.
     
  6. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,058
    Likes Received:
    75
    Send me a PM and I'll give you instructions.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.