Jump to content
Vodia PBX forum
Ryan

Best method for currently active call list

Recommended Posts

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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).

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

post-9404-0-17294200-1331126622_thumb.png

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...