Send CallerNumber to Script

Discussion in 'Call Flow Designer' started by MCSH, May 16, 2018.

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

    Joined:
    May 9, 2018
    Messages:
    10
    Likes Received:
    0
    Hi,

    me again :-/.

    I will do following:
    I will read the callerNumber ex.: +49211111111 or +12232323
    I will search in a c# if number begins with "+49" then it will return a value to know its german language else it will be in english.

    I tested to send parameters to my script, but I didn't know how to get the original callerID:
    This is the only option to include some values to find out the origin phone number, but there is no default var, to send as parameter:

    [​IMG]
     
  2. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,438
    Likes Received:
    114
    Hello,

    You're using the Call ID and not the Caller ID. The caller number is available in the session.ani variable.

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

    Joined:
    May 9, 2018
    Messages:
    10
    Likes Received:
    0
    Hi Edossantos,

    thanks for your Reply, but this number variable Shows the DDI the Queue is connected to:

    session.ani: the number of the caller connected to a CFD app.

    It isn't the number of the callee. I checked and I see only the number which is configured to the Queue there the CFD app is connected to
     
  4. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,438
    Likes Received:
    114
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. MCSH

    Joined:
    May 9, 2018
    Messages:
    10
    Likes Received:
    0
    Hi,

    I have seen the vars, but the result off session.ani is another. It will be shown the DDI of the called Queue not from the origin phone
     
  6. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,438
    Likes Received:
    114
    Are you transfering the call from a queue to this CFD app? Can you describe the flow of the call since it arrives to 3CX? The variable session.ani should have the caller number, but if your CFD app is receiving the call from a supervised transfer, then you will see the extension number of the person transfering you the call...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. MCSH

    Joined:
    May 9, 2018
    Messages:
    10
    Likes Received:
    0
    Hi edossantos,

    I checked again, I'm really sorry, you are total right.
    I checked the wrong longfile I have created.

    The original callernumer will be shown with session.ani.

    Sorry :(
     
Thread Status:
Not open for further replies.