Dismiss Notice
We would like to remind you that we’re updating our login process for all 3CX forums whereby you will be able to login with the same credentials you use for the Partner or Customer Portal. Click here to read more.

somebody have a example to identify callerid?

Discussion in 'CRM / Helpdesk / App Integration' started by ronaldoveronesi, Jul 13, 2011.

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

    Joined:
    Jul 11, 2011
    Messages:
    7
    Likes Received:
    0
    I need to identify the caller to filter calls that originate with the number 9090, can someone pass me an example or show how to do?
     
  2. VAD_Support

    VAD_Support Active Member

    Joined:
    Aug 6, 2009
    Messages:
    690
    Likes Received:
    0
    There is a session variable that contains the callerid. It is "session.ani". You can use a Conditional component to compare session.ani against the value you need, and take a different path depending on that.
     
  3. ronaldoveronesi

    Joined:
    Jul 11, 2011
    Messages:
    7
    Likes Received:
    0
    i´m having some troubles to make a project that show´s me the caller id, :S can you send me a example that make this? please!!! :cry:
     
  4. VAD_Support

    VAD_Support Active Member

    Joined:
    Aug 6, 2009
    Messages:
    690
    Likes Received:
    0
    I didn't find an example about that, but the callerid is stored in the session.ani variable. You can use it wherever you need it. For example, you can use a Conditional component and compare it agains some value, and take a different path depending on that. What do you need to do exactly? And how are you trying to do it? If you can explain that, we can suggest you how to do it.
     
  5. ronaldoveronesi

    Joined:
    Jul 11, 2011
    Messages:
    7
    Likes Received:
    0
    I´m trying to identify the number that is calling me, for example: 909012345678, so, all incoming call that start with "9090" will be transfered for "END CALL".
     
  6. VAD_Support

    VAD_Support Active Member

    Joined:
    Aug 6, 2009
    Messages:
    690
    Likes Received:
    0
    That's easy:
    1) Add a Conditional component with 2 branches.
    2) In the first branch, select the condition property and enter the following expression:
    EQUAL(LEFT(session.ani,4),'9090')

    You can easily create that expression using the Expression Editor.

    3) Into the first branch, insert a new Disconnect Call component, so calls from caller id starting with 9090 are dropped.
    4) Into the second branch, do whatever you want with the call. Here you will have calls where caller id doesn't start with 9090. For example, transfer the call somewhere...

    Hope that helps.
     
Thread Status:
Not open for further replies.