Compare to File

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

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

    Joined:
    Mar 24, 2017
    Messages:
    27
    Likes Received:
    0
    Sorry, I feel like a total new guy tonight...

    I'm trying to write a condition that will check session.ani against a list in a txt file.

    File would contain something like below--- (A phone number on each line)
    +12397762044
    +12399472111

    If it finds session.ani in the file, set variable callflow$.Employee = "True"

    I'm not having any luck. Thank you,
     
  2. Eric Osborn

    Joined:
    Mar 24, 2017
    Messages:
    27
    Likes Received:
    0
    #2 Eric Osborn, Jun 13, 2017
    Last edited: Jun 13, 2017
  3. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,234
    Likes Received:
    95
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Eric Osborn

    Joined:
    Mar 24, 2017
    Messages:
    27
    Likes Received:
    0
    Got this working last night, thank you! I did have some trouble with the way numbers were coming into our phone system. Some come in as +12393022155 and others as 12393022155 just as an example. I ended up writing some code to account for that but would like to find out why that happens eventually. All come through same SIP provider. Have you seen that? If anyone does need the code similar I'd be happy to share.

    By using the document you provided I was able to validate if the caller is existing customer, route based on those results and if call isn't handled in time by the Q, I'm now able to direct to secondary sites based on called DID. Love it... Thank you!
     
  5. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,234
    Likes Received:
    95
    Hi @Eric Osborn,

    Glad to hear that it's finally working!

    RE the incoming caller ID format, that's what 3CX receives from the SIP Trunk. You can confirm this in a Wireshark capture. I would suggest you to contact your SIP Trunk support to see if there is anything you can do to receive always the same format.

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