pcaviness Posted September 15, 2007 Report Share Posted September 15, 2007 Is there a way to get the active calls including on hold with SOAP or by any other method programatically? I noticed the directory "CALLS" but there are not any entries in that directory when there are active calls. I wan't sure if this was a SOAP issue or it was not recording call entries properly. When the call is completed a new file is created in the "cdr" directory. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted September 16, 2007 Report Share Posted September 16, 2007 The call list is just another table in the PBX. So in theory, you could read that table using SOAP. But I am not sure if that is a pragmatic way to go. Alternatives: 1. Register a dummy user-agent and subscribe for the dialog information. 2. 2.1 will introduce "buttons", which are instant messages that carry call information. You still need to use SIP for that, but it is much easier than dialog information. 3. You can also subscribe for dialog information using HTTP. Then the PBX will push that out via a HTTP request. Everything not very appealing... Quote Link to comment Share on other sites More sharing options...
pcaviness Posted September 17, 2007 Author Report Share Posted September 17, 2007 3. You can also subscribe for dialog information using HTTP. Then the PBX will push that out via a HTTP request. Could you describe how this work or an example? How is this set up on the server to automatically sent out HTTP request? Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted September 17, 2007 Report Share Posted September 17, 2007 1. First, you need to subscribe to dialog state. Through http that is difficult, but if you can do a SIP SUBSCRIBE that should be easy. Just put a contact like "Contact: <http://192.168.1.2/dialog_response.htm>" there. Through HTTP is a little bit difficult at this time, you would have to do this trough SOAP. However, we will quickly add a type field to the web request, so that a regular http post can do the job (in the registrations tab, there is something at the bottom that adds a registration). If you just want to test it, just create a static registration without a type, and edit the XML record in the file system. After that, you need to restart the service though to read the change. 2. The notifications then are walking out as http post requests to the provided location. They contain the same body as the SIP NOTIFY in a SIP SUBSCRIBE dialog would do. Quote Link to comment Share on other sites More sharing options...
hosted Posted December 15, 2007 Report Share Posted December 15, 2007 Is there a theoretical limit of how many DIALOG states you can subscribe before the PBX becomes overwhelmed? Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted December 16, 2007 Report Share Posted December 16, 2007 Is there a theoretical limit of how many DIALOG states you can subscribe before the PBX becomes overwhelmed? No limit. But we have had installations where the XML load was so heavy that the network had problems transporting RTP! Because of that we have that new method "buttons" which should be much more efficient. Don't ask for documentation, it is still pending. 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.