Ryan Posted February 27, 2012 Report Share Posted February 27, 2012 Hello, Currently, our site is using Curl to connect to the web admin interface of Pbxnsip, and gets the /ajax.htm?action=call_list&domain=domain.com page. This provides us with a current call list, but it takes almost 4-5 seconds to connect to the web interface. Is there a better way to get a call list, maybe with the new versions of Pbxnsip? It would be nicer to have an instant (< 1s) response to the query. Ryan Quote Link to comment Share on other sites More sharing options...
pbx support Posted February 27, 2012 Report Share Posted February 27, 2012 It was mostly there to update the PBX "Calls" web page. Unfortunately, there is no faster mechanism to get the active call list. Quote Link to comment Share on other sites More sharing options...
Ryan Posted February 27, 2012 Author Report Share Posted February 27, 2012 It would be cool if there was a filesystem-based approach, or something that updates a database everytime a new call comes in or ends. Maybe CDR does this? Quote Link to comment Share on other sites More sharing options...
pbx support Posted February 28, 2012 Report Share Posted February 28, 2012 CDR is written when the call is ended. So, it will not give you the active calls list. There is database search functions over the SOAP interface (http://wiki.snomone.com/index.php?title=Access_to_the_Database). The cobjs table will tell you the active calls. Since we keep the call objects only in the memory, you have to use the database search functions. Other option, like you mentioned, is that we can expose the call objects to the file system and then you can read the file system to display the active calls (less burden on the PBX). Quote Link to comment Share on other sites More sharing options...
Bill H Posted February 28, 2012 Report Share Posted February 28, 2012 I looked at this (http://wiki.snomone....to_the_Database) and it shows the cobjs in the Database. When I look at my Database (2011-4.5.0.1016 Alpha Monocerotids (Win32)) it is not in there. ??????????????????????? Quote Link to comment Share on other sites More sharing options...
pbx support Posted February 28, 2012 Report Share Posted February 28, 2012 As I mentioned, it is kept only in the memory & only database search functions will have access to those(cobjs and legs) tables. It is not written to the file system. We will add some settings to the PBX so that you can choose to write them to the file system. Quote Link to comment Share on other sites More sharing options...
Bill H Posted February 28, 2012 Report Share Posted February 28, 2012 OK Thank you. Now I have a better understanding of how it works. Quote Link to comment Share on other sites More sharing options...
centricall Posted March 7, 2012 Report Share Posted March 7, 2012 Hello, Is it possible to get active calls in the queue by using a link like /ajax.htm?action=call_list&domain=domain.com returning xml file? These calls can be seen on the Queue's Calls page. I attached the screenshot. Thanks. Quote Link to comment Share on other sites More sharing options...
pbx support Posted March 7, 2012 Report Share Posted March 7, 2012 The ajax will return all the calls in the system (no differentiation between the different types calls) Quote Link to comment Share on other sites More sharing options...
Bill H Posted April 28, 2012 Report Share Posted April 28, 2012 OK I wrote a little SOAP program to DBget data from the cobjs and legs in memory. I discovered that the DBIndex will tell me the where the first instance/Index of a call can be found. Is there an area (Table/Name) where I can find the total number of calls at any given time or do I have to step through each Index until I get an empty <Value></Value> returned? Also, is there a complete description of the Names in the cobjs and legs Tables available? Some are easy to figure out but some like dr, i3 and ia are a bit difficult to understand. Thanks, BillH Quote Link to comment Share on other sites More sharing options...
pbx support Posted April 29, 2012 Report Share Posted April 29, 2012 we had introduced couple of global variables in the last version (http://wiki.snomone.com/index.php?title=Coma_Berenicids_(2011-4.5.0.1050) - 3rd bullet ) to force the PBX to write the calls and legs to the file system. Quote Link to comment Share on other sites More sharing options...
Bill H Posted April 29, 2012 Report Share Posted April 29, 2012 Thank you for your response. Could you answer these 2 questions? Is there an area (Table/Name) where I can find the total number of calls at any given time or do I have to step through each Index until I get an empty <Value></Value> returned? Also, is there a complete description of the Names in the cobjs and legs Tables available? Thanks again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.