Jump to content

voltier

Members
  • Posts

    57
  • Joined

  • Last visited

Everything posted by voltier

  1. Thanks Snomonepbx, The context behind the question is we are trying to find a reliable/accurate way to retrieving all CDR records to be fed into our billing system. (PBX is a hosted instance). As i understand it (based on an old Snom One Administrators Guide), theres a number of ways to do it: CSV, email, Simple TCP, Soap/XML, Rest API, JSON. Right now we are using the CSV file stored on the Hosted PBX accessing the CSVs via FTP. We are wanting to remove this process by retrieving the data directly. Few follow up questions: Can CSV (file:) be sent externally For the methods listed above, how would the receiving CDR server know what CDRs are new only? i.e. not re-download the entire set of data (would it only retrieve the deltas) Are there any other permissions on the PBX that need to be enabled to ensure that the receiving CDR server is able to access the data Are there any examples or configurations documented anywhere that show how to configure the receiving CDR server Thanks.
  2. There is an example in there that involves getting 50 records. Is it possible to use Rest as a replacement to JSON to get full CDR records from server?
  3. Hi Just reviewing the API documentation for getting real-time active call statistics, and wanting to know what this line refers to: ....z....u...x..Xq..Wu...e...~.f > Header Im assuming each of those letters represents a field of some sort perhaps CDR related? Is this documented or available somewhere? Edit: sorted. Please ignore.
  4. Hi again Admin, Just some follow up questions. I can generate the session key, but im not having much success using the session key to retrieve other data such as licensing information etc. Also within the PBX, there is an a parameter where you can add IP addresses for 'API Access'. Can you clarify what this is for? The retrieve session key command works regardless if my public IP is in this list or not. In terms of retrieving other information using the session key, I am getting a 403 Permission denied. I had mistakenly thought i got it working, but it was simply a matter of me having logged into the admin interface of the PBX and the rest API call was pre-authenticating therefore was retrieving the data. If I log out of the web interface, I get 403 Permission denied.
  5. Thanks Admin - Merry Christmas and Happy New Year!
  6. Managed to work it out. Basically manually converted the password to md5 and used the exact same string from the api documentation and that generated a session key.
  7. Im stuck the first step - being the steps to generate a session key. I have enabled my ip address under the 'access' settings on the pbx Right now I am getting a HTTP 200OK however in the Response, all i get is 'false'. Also i dont quite understand this - {"name":"auth","value":"admin 97c9bb5fec29bfbfbd0069adb232d610"} username and md5 encrypted password - from the Rest API documentation 1) How does one generate an md5 encrypted password based on a plain text one? When inserting the form fields for the header, - assuming the username is admin: does name = admin auth = password? or value = password Im confused as there is "name", "auth" as well as "value" Thanks for your help
×
×
  • Create New...