CDR Active/Passive socket

Discussion in '3CX Phone System - General' started by Yiannos Ioannou, Jan 17, 2018.

Thread Status:
Not open for further replies.
  1. Yiannos Ioannou

    Joined:
    Nov 13, 2017
    Messages:
    20
    Likes Received:
    2
    Hello ,

    How to use this settings in order to receive CDR data.
     
  2. mariosM_3CX

    mariosM_3CX Support Team
    Staff Member 3CX Support

    Joined:
    Nov 1, 2017
    Messages:
    406
    Likes Received:
    38
    Hello @Yiannos Ioannou

    If Passive mode is selected, then the PBX will act as a server and you need to connect to that IP port from your client/software in order to receive the CDR. In Active mode, the PBX will act as a client and will connect to the ip and listening port of your CDR server that is handling your CDR Requirement.
    Check this guide for more info https://www.3cx.com/docs/cdr-call-data-records/
     
  3. Yiannos Ioannou

    Joined:
    Nov 13, 2017
    Messages:
    20
    Likes Received:
    2
    Hello Marios

    we have setup a socket server in out local lan and set the 3cx to active client and put the ip:port of that server . But still no records or connection to that server.

    Is it anything else is required to be setup ?
     
  4. Yiannos Ioannou

    Joined:
    Nov 13, 2017
    Messages:
    20
    Likes Received:
    2
    Hello @mariosM_3CX

    we have setup a socket server in out local lan and set the 3cx to active client and put the ip port of that server . But still no records or connection to that server.

    Is it anything else is required to be setup ?
     
  5. mariosM_3CX

    mariosM_3CX Support Team
    Staff Member 3CX Support

    Joined:
    Nov 1, 2017
    Messages:
    406
    Likes Received:
    38
    Have you tried making a call after running your server and configuring the PBX as client? Because PBX will send CDR for new calls only.
     
  6. Yiannos Ioannou

    Joined:
    Nov 13, 2017
    Messages:
    20
    Likes Received:
    2
    @mariosM_3CX

    Yes we set up the the server configure the 3cx as a client and then make some calls. So you mean that the reporting either way will not be as a live feed to the CDR and takes the records after the call is done ?
     
  7. sip.bg

    sip.bg Active Member

    Joined:
    Nov 7, 2016
    Messages:
    704
    Likes Received:
    219
    Note that you must configure firewall to allow connections to port of CDR, by default it is not opened and you can't access 3CX server from another computer. This applies both for Windows and Debian.

    Try using telnet in putty to receive CDR data from 3CX.

    A trick -- you can use port 5015 for the purpose, configure it into CDR serrings, the reason is it remains open into firewall after 3CX installation.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. mariosM_3CX

    mariosM_3CX Support Team
    Staff Member 3CX Support

    Joined:
    Nov 1, 2017
    Messages:
    406
    Likes Received:
    38
    @Yiannos Ioannou

    As @sip.bg said, you can use putty for this, but putty will be the client so you will need to set the PBX in passive mode as a server.
    If you want to test this in active mode, you can test with a tool called Port Listener that will act as your server in order for the PBX to connect to it as a client.
    Regarding your question, yes, the PBX will send CDR of a call once the call is ended. How will you manipulate this data is up to the implementation of your software.
     
  9. Yiannos Ioannou

    Joined:
    Nov 13, 2017
    Messages:
    20
    Likes Received:
    2
Thread Status:
Not open for further replies.