Solved Queues

Discussion in 'Call Flow Designer' started by Eric Osborn, Jun 8, 2017.

Thread Status:
Not open for further replies.
  1. Eric Osborn

    Joined:
    Mar 24, 2017
    Messages:
    27
    Likes Received:
    0
    Any details on interacting with Queues? Thought that was coming in this version. Like if a call is not picked up in a Queue can it be routed somewhere else based on incoming did?

    Another option I would have is a condition... How would I route calls to DID 2395743611 to ext 4550 and calls to DID 2393022155 to ext 4350?
     
    #1 Eric Osborn, Jun 8, 2017
    Last edited: Jun 8, 2017
  2. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,080
    Likes Received:
    77
    Hi @Eric Osborn,

    Regarding your first question, you can configure your standard queue to forward not picked up calls to another queue where you have a CFD app. In this CFD app you can decide where to send the call, based on the DID.

    Regarding the conditions on the DID, if you need to route calls to different extensions depending on the DID, you can use a "Create a condition" component, having 1 branch for each DID you need to compare. Then, set the Condition property for each branch accordingly, for example:
    EQUAL(session.did,"2395743611")

    Kind regards.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Eric Osborn

    Joined:
    Mar 24, 2017
    Messages:
    27
    Likes Received:
    0
    Hey @edossantos

    Thanks, I tried what you said and every time a call gets to the condition it disconnects the call. What could be causing that? Anyway to debug?

    Thanks,

    Eric
     
  4. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,080
    Likes Received:
    77
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Eric Osborn

    Joined:
    Mar 24, 2017
    Messages:
    27
    Likes Received:
    0
    Hey @edossantos,

    I found my call but I don't see where the error? I was thinking it had to do with called DID but I don't even see where that is logged? My plugin is called "Calledwhatcenter". I feel like I'm missing something simple?

    17/06/09 14:50:04.712|100005| Inf|10|0006|: New incoming call to Q:9989 from 2393240735; qcid=ZLBJKDQDOTPP
    17/06/09 14:50:04.712|100049| Trc|75|0006|: PlugIn[Calledwhatcenter - Main - CallID ZLBJKDQDOTPP] Trace: OnNewQueueCall - taking call out of the queue and creating CallHandler for this call...
    17/06/09 14:50:04.712|100046| Trc|75|0006|: DBG: Call(ZLBJKDQDOTPP) has been taken out of the queue Q:9989
    17/06/09 14:50:04.712|100046| Trc|75|0006|: DBG: QCall ZLBJKDQDOTPP state changed: Init -> PluginHandlesIt
    17/06/09 14:50:04.712|100049| Trc|75|0006|: PlugIn[Calledwhatcenter - CallHandler - CallID ZLBJKDQDOTPP] Trace: OnStateChanged: obj='PluginHandlesIt'
    17/06/09 14:50:04.807|100033| Trc|75|0007|: Call update(Ins): cid=4910, dn=9989, internal=<empty>, external=2393240735, ac_stat=Ringing, leg=13683; att=''
    17/06/09 14:50:04.807|100046| Trc|75|0007|: DBG: : [13663,13664,13683]
    17/06/09 14:50:04.829|100033| Trc|75|0007|: Call update(Upd): cid=4910, dn=NexVortex, internal=<empty>, external=2393240735, ac_stat=Connected, leg=13663; att=''
    17/06/09 14:50:04.830|100046| Trc|75|0007|: DBG: : [13663,13664,13683]
    17/06/09 14:50:04.830|100033| Trc|75|0007|: Call update(Upd): cid=4910, dn=9989, internal=<empty>, external=2393240735, ac_stat=Connected, leg=13683; att=''
    17/06/09 14:50:04.830|100046| Trc|75|0007|: DBG: : [13663,13664,13683]
    17/06/09 14:50:05.116|100049| Trc|75|0006|: PlugIn[Calledwhatcenter - CallHandler - CallID ZLBJKDQDOTPP] Trace: OnCallEstablished - Taking call out of the queue...
    17/06/09 14:50:05.169|100033| Trc|75|0007|: Call update(Del): cid=4910, dn=1087, internal=<empty>, external=2393240735, ac_stat=Connected, leg=13664; att=''
    17/06/09 14:50:05.169|100046| Trc|75|0007|: DBG: : [13663,13683]
    17/06/09 14:50:05.238|100033| Trc|75|0007|: Call update(Upd): cid=4910, dn=9989, internal=<empty>, external=2393240735, ac_stat=Connected, leg=13683; att='ZLBJKDQDOTPP'
    17/06/09 14:50:05.238|100046| Trc|75|0007|: DBG: ZLBJKDQDOTPP: [13663,13683]
    17/06/09 14:50:05.267|100046| Trc|75|0006|: DBG: CMNotify(ZLBJKDQDOTPP): NewQCall, legId 13683
    17/06/09 14:50:05.267|100046| Trc|75|0006|: DBG: CMNotify(ZLBJKDQDOTPP): LegStateChanged, legId 13683
    17/06/09 14:50:05.269|100049| Trc|75|0027|: PlugIn[Calledwhatcenter - Callflow - MainFlow - CallID ZLBJKDQDOTPP] Trace: Start executing component 'CreateCondition1'
    17/06/09 14:50:05.269|100049| Trc|75|0027|: PlugIn[Calledwhatcenter - Callflow - MainFlow - CallID ZLBJKDQDOTPP] Trace: Start executing component 'mainAutoAddedFinalExitCallflow'
    17/06/09 14:50:05.269|100049| Trc|75|0027|: PlugIn[Calledwhatcenter - Callflow - MainFlow - CallID ZLBJKDQDOTPP] Trace: Callflow finished, disconnecting call...
    17/06/09 14:50:05.318|100008| Inf|30|0006|: Call(ZLBJKDQDOTPP) has been terminated (reason: Unknown)
    17/06/09 14:50:05.318|100049| Trc|75|0006|: PlugIn[Calledwhatcenter - CallHandler - CallID ZLBJKDQDOTPP] Trace: OnInboundCallTerminated: obj='487'
    17/06/09 14:50:05.398|100033| Trc|75|0007|: Call update(Del): cid=4910, dn=9989, internal=<empty>, external=2393240735, ac_stat=Connected, leg=13683; att='ZLBJKDQDOTPP'
    17/06/09 14:50:05.398|100033| Trc|75|0007|: Call update(Del): cid=4910, dn=NexVortex, internal=<empty>, external=2393240735, ac_stat=Connected, leg=13663; att=''
    17/06/09 14:50:05.418|100046| Trc|75|0006|: DBG: CMNotify(ZLBJKDQDOTPP): LegRemoved, legId 13683
    17/06/09 14:50:05.418|100046| Trc|75|0006|: DBG: ZLBJKDQDOTPP: [13663]
    17/06/09 14:50:05.418|100046| Trc|75|0006|: DBG: CMNotify(ZLBJKDQDOTPP): LegRemoved, legId 13663
    17/06/09 14:50:05.418|100046| Trc|75|0006|: DBG: ZLBJKDQDOTPP: []
    17/06/09 14:50:05.418|100046| Trc|75|0006|: DBG: CMNotify(ZLBJKDQDOTPP): CallTerminated, legId 13663
    17/06/09 14:50:05.418|100022| Inf|30|0006|: QCall(ZLBJKDQDOTPP) has finished
     
  6. Eric Osborn

    Joined:
    Mar 24, 2017
    Messages:
    27
    Likes Received:
    0
    Is Internal=<empty> suppose to have the DID?
     
  7. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,080
    Likes Received:
    77
    Hi Eric,

    The DID is in a property in the attached data of the call, it's ok if it's not shown in the log.

    I see that the conditional component "CreateCondition1" is executed, and then the app exits without any error:
    PlugIn[Calledwhatcenter - Callflow - MainFlow - CallID ZLBJKDQDOTPP] Trace: Start executing component 'CreateCondition1'
    PlugIn[Calledwhatcenter - Callflow - MainFlow - CallID ZLBJKDQDOTPP] Trace: Start executing component 'mainAutoAddedFinalExitCallflow'

    That seems to be caused by the condition not being met. Can you show me the value you're setting for the Condition component of the branch? Do you have any other branch in this conditional component?

    Kind regards.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Eric Osborn

    Joined:
    Mar 24, 2017
    Messages:
    27
    Likes Received:
    0
    Hey @edossantos

    Only started with two branches for testing.

    Branch 1
    EQUAL(session.did,"*2393022155")

    Branch 2
    EQUAL(session.did,"*2395743611")

    Thanks,

    Eric
     
  9. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,080
    Likes Received:
    77
    Do you receive the calls with the star character at the beginning of the DID? Can you confirm that from the CDRs?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Eric Osborn

    Joined:
    Mar 24, 2017
    Messages:
    27
    Likes Received:
    0
    @edossantos Here is logs from CDR... What would be the DID? I called 2395473611 from 2397762044 but I'm not seeing the 22395473611. Why is that?

    Call 373983,00000BF3BF5BAE41_5385,00:00:06,2017/06/09 20:56:55,2017/06/09 20:56:55,2017/06/09 20:57:01,TerminatedBySrc,+12397762044,Ext.1087,10001,1087,1087,,,,,,,,Chain: +12397762044;Ext.1087;

    Call 373984,00000BF3BF5BD210_5386,00:00:10,2017/06/09 20:57:04,2017/06/09 20:57:04,2017/06/09 20:57:14,TerminatedByDst,+12397762044,Ext.1087,10001,1087,1087,ReplacedDst,Ext.9989,9989,,,,,Chain: +12397762044;Ext.1087;Ext.9989;
     
    #10 Eric Osborn, Jun 9, 2017
    Last edited: Jun 9, 2017
  11. Eric Osborn

    Joined:
    Mar 24, 2017
    Messages:
    27
    Likes Received:
    0
    Finally figured it out. Guess I need to be using +12395743611 as the number.

    Thank you for your help, wouldn't have found it!
     
Thread Status:
Not open for further replies.