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.

Callid Session Variable

Discussion in 'CRM / Helpdesk / App Integration' started by len@Arena, Aug 20, 2009.

Thread Status:
Not open for further replies.
  1. len@Arena

    Joined:
    Aug 4, 2009
    Messages:
    11
    Likes Received:
    0
    Hi, I need to confirm the values kept in the session object. When a script is executed the session object contains three variables: ani, callid and dnis.

    It seems ani is the phonenumber that originally called the script and dnis is the extension number the script is registered to. From the various debugging sessions conducted it seems that the callid is composed of :
    From_<ani>_to_<dnis>_menu_<dnis>_#2/45

    The numbers after the # keep changing after every call. Any ideas what info these numbers represent?
     
  2. VAD_Support

    VAD_Support Active Member

    Joined:
    Aug 6, 2009
    Messages:
    690
    Likes Received:
    0
    The final part of the callid is a sequence number. The idea is that the callid is unique. You may use it to distinguish two calls from the same origin to the same destination.
     
  3. len@Arena

    Joined:
    Aug 4, 2009
    Messages:
    11
    Likes Received:
    0
    So in the example above (#2/45) the 45 would be a sequence number? What about the 2?
     
  4. VAD_Support

    VAD_Support Active Member

    Joined:
    Aug 6, 2009
    Messages:
    690
    Likes Received:
    0
    The first part is the quantity of simultaneous calls, not sure if calls in the IVR or the entire PBX...
     
Thread Status:
Not open for further replies.