Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-10-07 Thread Bogdan-Andrei Iancu

Hi Ovidiu,

We need to check once again if the mi_xmlrpc_ng can do a perfect replace 
for mi_xmlrpc - then we can obsolete in a blink of an eye.


Are you aware of any pending issues in terms of backward compatibility ?

PS: 1.12 is replaced by 2.1.0 - this is the version on trunk.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 25.09.2014 21:39, Ovidiu Sas wrote:

Are we ready to deprecate the mi_xmlrpc module now (for 1.12)?

-ovidiu

On Fri, Mar 21, 2014 at 11:24 AM, Bogdan-Andrei Iancu
bog...@opensips.org wrote:

Hello all,

Bringing some light here : none of the xmlrpc implementations offer a
structured reply

 From the deprecation point of view, we need to be sure:
1) the new mi_xmlrpc-ng module is a perfect substitute to the old one
(providing the same unstructured reply)
2) the new mi_xmlrpc-ng module can also provide a structured reply - this
definitely is something good for the future
3) OpenSIPS CP must be migrated (there are some things that need to be
changed) to be compatible with both modules.

Ovidiu (mi_xmlepc-ng) and Alex (opensips cp) are already heavily working to
achieve the 3 goals above (many thanks to both of them).

As noticed, the old mi_xmlrpc module was not deprecated in 1.11 - there are
small but many things to be done to 100% ensure a smooth transition. Still
this is work on progress and it will be done for next release.

Many thanks,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 19.03.2014 21:55, Brett Nemeroff wrote:

JSON+http sounds fantastic. It's like.. Starting to sound a like a RESTful
server.

I'm pretty sure others will jump on this. I know I would.
-Brett



On Wed, Mar 19, 2014 at 2:52 PM, Ovidiu Sas o...@voipembedded.com wrote:

The new module is built on top of the httpd module which has a
parameter to define the size of the buffer.  If you need large
replies, then you need to adjust the buffer size accordingly.
http://www.opensips.org/html/docs/modules/devel/httpd

That buffer is used by all modules that are sitting on top of the
httpd module, and there's one single process dedicated to all http
requests (no interference with SIP workers).

Regards,
Ovidiu Sas

On Wed, Mar 19, 2014 at 3:44 PM, Brett Nemeroff br...@nemeroff.com
wrote:

I think there are some other issues with the size of the return data. I
know
for one that the mi_udp method has a buffer size limit. If you hit this
limit I think it very quietly truncates the data. I can't 100% verify
that
since it's been a long time since I've used it.

I believe you can paginate the data, but the problem is that you can't
guarantee consistent results paginating data when the data is changing
constantly. I'm not really sure on the background how this is handled;
maybe
a locked list or something.. but not sure if it'd affect performance at
high
velocity. Seems like something. somewhere would be affected.. either
performance or accuracy.

My point being, care needs to be taken that the method can produce
consistent results; even for large datasets. If data is going to be
truncated or we run out of SHM, there needs to not only be an error log,
but
I think the out put needs to say something as well.

-Brett



On Wed, Mar 19, 2014 at 2:37 PM, Dragomir Haralambiev
goup2...@gmail.com
wrote:

I totally share Brett's feelings! For me dlg_list_ctx over the new
module
causes lots of headaches when dialogs go over 100 or so. Structured
output
would resolve such problems. I am totally in for structured SJON format
too!


2014-03-19 21:07 GMT+02:00 Brett Nemeroff br...@nemeroff.com:


I think the only reason for that is backwards compatibility with stuff
written for the other mi interfaces.


Honestly, my parsers for the MI output are ridiculous. It's really
complicated and prone to failure. I'd like to know if others share my
feeling here.

For little things like dr_reload I don't really care.

But for MI calls that return large amounts of user data, like
dlg_list_ctx.. Parsing it is kind of ridiculous... Anyone else share
this
feeling?

I personally would love to see it structured in JSON format. :)

-Brett



On Wed, Mar 19, 2014 at 2:05 PM, Ovidiu Sas o...@voipembedded.com
wrote:

Hello Brett,

It is true that the structured output mode was not implemented in the
new module.
It seems that having the output in one big chunk is the preferred
method in the community.

If there is a real demand for structured output, we can take a look
into
it.

Regards,
Ovidiu Sas


On Wed, Mar 19, 2014 at 1:56 PM, Brett Nemeroff br...@nemeroff.com
wrote:

I'd like to see the new module to be a drop in replacement for the
old
one..

That being said...

I was pretty surprised when I started down the path of the XMLRPC
module
that the reply isn't structured. It was just one big object.

I'd like a selectable option on the module so that it either
operates:
1. Legacy (one big output chunk)
2. Structured, parable for each output node.

Really if we 

Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-10-07 Thread Bogdan-Andrei Iancu
The trunk (development code) was switched from 1.12.x to 2.1.x and you 
can get the URL from http://www.opensips.org/Downloads/Downloads#toc4.


The trunk version is not for production. See the available versions here:
http://www.opensips.org/About/AvailableVersions

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 26.09.2014 16:48, Satish Patel wrote:
Where is the trunk git URL to download latest 1.12.x?  does it ready 
for production?


On Thu, Sep 25, 2014 at 2:39 PM, Ovidiu Sas o...@voipembedded.com 
mailto:o...@voipembedded.com wrote:


Are we ready to deprecate the mi_xmlrpc module now (for 1.12)?

-ovidiu

On Fri, Mar 21, 2014 at 11:24 AM, Bogdan-Andrei Iancu
bog...@opensips.org mailto:bog...@opensips.org wrote:
 Hello all,

 Bringing some light here : none of the xmlrpc implementations
offer a
 structured reply

 From the deprecation point of view, we need to be sure:
 1) the new mi_xmlrpc-ng module is a perfect substitute to the
old one
 (providing the same unstructured reply)
 2) the new mi_xmlrpc-ng module can also provide a structured
reply - this
 definitely is something good for the future
 3) OpenSIPS CP must be migrated (there are some things that need
to be
 changed) to be compatible with both modules.

 Ovidiu (mi_xmlepc-ng) and Alex (opensips cp) are already heavily
working to
 achieve the 3 goals above (many thanks to both of them).

 As noticed, the old mi_xmlrpc module was not deprecated in 1.11
- there are
 small but many things to be done to 100% ensure a smooth
transition. Still
 this is work on progress and it will be done for next release.

 Many thanks,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com

 On 19.03.2014 21:55, Brett Nemeroff wrote:

 JSON+http sounds fantastic. It's like.. Starting to sound a like
a RESTful
 server.

 I'm pretty sure others will jump on this. I know I would.
 -Brett



 On Wed, Mar 19, 2014 at 2:52 PM, Ovidiu Sas
o...@voipembedded.com mailto:o...@voipembedded.com wrote:

 The new module is built on top of the httpd module which has a
 parameter to define the size of the buffer.  If you need large
 replies, then you need to adjust the buffer size accordingly.
 http://www.opensips.org/html/docs/modules/devel/httpd

 That buffer is used by all modules that are sitting on top of the
 httpd module, and there's one single process dedicated to all http
 requests (no interference with SIP workers).

 Regards,
 Ovidiu Sas

 On Wed, Mar 19, 2014 at 3:44 PM, Brett Nemeroff
br...@nemeroff.com mailto:br...@nemeroff.com
 wrote:
  I think there are some other issues with the size of the
return data. I
  know
  for one that the mi_udp method has a buffer size limit. If
you hit this
  limit I think it very quietly truncates the data. I can't
100% verify
  that
  since it's been a long time since I've used it.
 
  I believe you can paginate the data, but the problem is that
you can't
  guarantee consistent results paginating data when the data is
changing
  constantly. I'm not really sure on the background how this is
handled;
  maybe
  a locked list or something.. but not sure if it'd affect
performance at
  high
  velocity. Seems like something. somewhere would be affected..
either
  performance or accuracy.
 
  My point being, care needs to be taken that the method can
produce
  consistent results; even for large datasets. If data is going
to be
  truncated or we run out of SHM, there needs to not only be an
error log,
  but
  I think the out put needs to say something as well.
 
  -Brett
 
 
 
  On Wed, Mar 19, 2014 at 2:37 PM, Dragomir Haralambiev
  goup2...@gmail.com mailto:goup2...@gmail.com
  wrote:
 
  I totally share Brett's feelings! For me dlg_list_ctx over
the new
  module
  causes lots of headaches when dialogs go over 100 or so.
Structured
  output
  would resolve such problems. I am totally in for structured
SJON format
  too!
 
 
  2014-03-19 21:07 GMT+02:00 Brett Nemeroff
br...@nemeroff.com mailto:br...@nemeroff.com:
 
  I think the only reason for that is backwards compatibility
with stuff
  written for the other mi interfaces.
 
 
  Honestly, my parsers for the MI output are ridiculous. It's
really
  complicated and prone to failure. I'd like to know if
others share my
  feeling here.
 
  For little things like dr_reload I don't really care.
 
  But for MI calls that return large amounts of user data, like
  dlg_list_ctx.. 

Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-10-07 Thread Ovidiu Sas
There was a lot of work done right before releasing 1.11 to fix the
compatibility issue.  I didn't heard back anything, so I assume that it's
fixed.

Anyway, if there's no push for it, the transition will never happen :)

-ovidiu
On Oct 7, 2014 5:24 AM, Bogdan-Andrei Iancu bog...@opensips.org wrote:

 Hi Ovidiu,

 We need to check once again if the mi_xmlrpc_ng can do a perfect replace
 for mi_xmlrpc - then we can obsolete in a blink of an eye.

 Are you aware of any pending issues in terms of backward compatibility ?

 PS: 1.12 is replaced by 2.1.0 - this is the version on trunk.

 Regards,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com

 On 25.09.2014 21:39, Ovidiu Sas wrote:

 Are we ready to deprecate the mi_xmlrpc module now (for 1.12)?

 -ovidiu

 On Fri, Mar 21, 2014 at 11:24 AM, Bogdan-Andrei Iancu
 bog...@opensips.org wrote:

 Hello all,

 Bringing some light here : none of the xmlrpc implementations offer a
 structured reply

  From the deprecation point of view, we need to be sure:
 1) the new mi_xmlrpc-ng module is a perfect substitute to the old one
 (providing the same unstructured reply)
 2) the new mi_xmlrpc-ng module can also provide a structured reply - this
 definitely is something good for the future
 3) OpenSIPS CP must be migrated (there are some things that need to be
 changed) to be compatible with both modules.

 Ovidiu (mi_xmlepc-ng) and Alex (opensips cp) are already heavily working
 to
 achieve the 3 goals above (many thanks to both of them).

 As noticed, the old mi_xmlrpc module was not deprecated in 1.11 - there
 are
 small but many things to be done to 100% ensure a smooth transition.
 Still
 this is work on progress and it will be done for next release.

 Many thanks,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com

 On 19.03.2014 21:55, Brett Nemeroff wrote:

 JSON+http sounds fantastic. It's like.. Starting to sound a like a
 RESTful
 server.

 I'm pretty sure others will jump on this. I know I would.
 -Brett



 On Wed, Mar 19, 2014 at 2:52 PM, Ovidiu Sas o...@voipembedded.com
 wrote:

 The new module is built on top of the httpd module which has a
 parameter to define the size of the buffer.  If you need large
 replies, then you need to adjust the buffer size accordingly.
 http://www.opensips.org/html/docs/modules/devel/httpd

 That buffer is used by all modules that are sitting on top of the
 httpd module, and there's one single process dedicated to all http
 requests (no interference with SIP workers).

 Regards,
 Ovidiu Sas

 On Wed, Mar 19, 2014 at 3:44 PM, Brett Nemeroff br...@nemeroff.com
 wrote:

 I think there are some other issues with the size of the return data. I
 know
 for one that the mi_udp method has a buffer size limit. If you hit this
 limit I think it very quietly truncates the data. I can't 100% verify
 that
 since it's been a long time since I've used it.

 I believe you can paginate the data, but the problem is that you can't
 guarantee consistent results paginating data when the data is changing
 constantly. I'm not really sure on the background how this is handled;
 maybe
 a locked list or something.. but not sure if it'd affect performance at
 high
 velocity. Seems like something. somewhere would be affected.. either
 performance or accuracy.

 My point being, care needs to be taken that the method can produce
 consistent results; even for large datasets. If data is going to be
 truncated or we run out of SHM, there needs to not only be an error
 log,
 but
 I think the out put needs to say something as well.

 -Brett



 On Wed, Mar 19, 2014 at 2:37 PM, Dragomir Haralambiev
 goup2...@gmail.com
 wrote:

 I totally share Brett's feelings! For me dlg_list_ctx over the new
 module
 causes lots of headaches when dialogs go over 100 or so. Structured
 output
 would resolve such problems. I am totally in for structured SJON
 format
 too!


 2014-03-19 21:07 GMT+02:00 Brett Nemeroff br...@nemeroff.com:

  I think the only reason for that is backwards compatibility with
 stuff
 written for the other mi interfaces.


 Honestly, my parsers for the MI output are ridiculous. It's really
 complicated and prone to failure. I'd like to know if others share my
 feeling here.

 For little things like dr_reload I don't really care.

 But for MI calls that return large amounts of user data, like
 dlg_list_ctx.. Parsing it is kind of ridiculous... Anyone else share
 this
 feeling?

 I personally would love to see it structured in JSON format. :)

 -Brett



 On Wed, Mar 19, 2014 at 2:05 PM, Ovidiu Sas o...@voipembedded.com
 wrote:

 Hello Brett,

 It is true that the structured output mode was not implemented in
 the
 new module.
 It seems that having the output in one big chunk is the preferred
 method in the community.

 If there is a real demand for structured output, we can take a look
 into
 it.

 Regards,
 Ovidiu Sas


 On Wed, Mar 19, 2014 at 1:56 PM, Brett Nemeroff 

Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-10-07 Thread Bogdan-Andrei Iancu
Ovidiu, we are still somewhere in the middle of a release cycle, so 
enough time to eventually fix potential problems. I agree with you, we 
need to take the step and face the outcome.


We need to prepare a directly on the repo, like modules_old where to 
move the obsolete modules.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 07.10.2014 15:43, Ovidiu Sas wrote:


There was a lot of work done right before releasing 1.11 to fix the 
compatibility issue.  I didn't heard back anything, so I assume that 
it's fixed.


Anyway, if there's no push for it, the transition will never happen :)

-ovidiu

On Oct 7, 2014 5:24 AM, Bogdan-Andrei Iancu bog...@opensips.org 
mailto:bog...@opensips.org wrote:


Hi Ovidiu,

We need to check once again if the mi_xmlrpc_ng can do a perfect
replace for mi_xmlrpc - then we can obsolete in a blink of an eye.

Are you aware of any pending issues in terms of backward
compatibility ?

PS: 1.12 is replaced by 2.1.0 - this is the version on trunk.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 25.09.2014 21 tel:25.09.2014%2021:39, Ovidiu Sas wrote:

Are we ready to deprecate the mi_xmlrpc module now (for 1.12)?

-ovidiu

On Fri, Mar 21, 2014 at 11:24 AM, Bogdan-Andrei Iancu
bog...@opensips.org mailto:bog...@opensips.org wrote:

Hello all,

Bringing some light here : none of the xmlrpc
implementations offer a
structured reply

 From the deprecation point of view, we need to be sure:
1) the new mi_xmlrpc-ng module is a perfect substitute to
the old one
(providing the same unstructured reply)
2) the new mi_xmlrpc-ng module can also provide a
structured reply - this
definitely is something good for the future
3) OpenSIPS CP must be migrated (there are some things
that need to be
changed) to be compatible with both modules.

Ovidiu (mi_xmlepc-ng) and Alex (opensips cp) are already
heavily working to
achieve the 3 goals above (many thanks to both of them).

As noticed, the old mi_xmlrpc module was not deprecated in
1.11 - there are
small but many things to be done to 100% ensure a smooth
transition. Still
this is work on progress and it will be done for next release.

Many thanks,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 19.03.2014 21:55, Brett Nemeroff wrote:

JSON+http sounds fantastic. It's like.. Starting to sound
a like a RESTful
server.

I'm pretty sure others will jump on this. I know I would.
-Brett



On Wed, Mar 19, 2014 at 2:52 PM, Ovidiu Sas
o...@voipembedded.com mailto:o...@voipembedded.com wrote:

The new module is built on top of the httpd module
which has a
parameter to define the size of the buffer.  If you
need large
replies, then you need to adjust the buffer size
accordingly.
http://www.opensips.org/html/docs/modules/devel/httpd

That buffer is used by all modules that are sitting on
top of the
httpd module, and there's one single process dedicated
to all http
requests (no interference with SIP workers).

Regards,
Ovidiu Sas

On Wed, Mar 19, 2014 at 3:44 PM, Brett Nemeroff
br...@nemeroff.com mailto:br...@nemeroff.com
wrote:

I think there are some other issues with the size
of the return data. I
know
for one that the mi_udp method has a buffer size
limit. If you hit this
limit I think it very quietly truncates the data.
I can't 100% verify
that
since it's been a long time since I've used it.

I believe you can paginate the data, but the
problem is that you can't
guarantee consistent results paginating data when
the data is changing
constantly. I'm not really sure on the background
how this is handled;
maybe
a locked list or something.. but not sure if it'd
affect performance at
high
velocity. Seems like something. somewhere would be
affected.. either
 

Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-09-26 Thread Satish Patel
Where is the trunk git URL to download latest 1.12.x?  does it ready for
production?

On Thu, Sep 25, 2014 at 2:39 PM, Ovidiu Sas o...@voipembedded.com wrote:

 Are we ready to deprecate the mi_xmlrpc module now (for 1.12)?

 -ovidiu

 On Fri, Mar 21, 2014 at 11:24 AM, Bogdan-Andrei Iancu
 bog...@opensips.org wrote:
  Hello all,
 
  Bringing some light here : none of the xmlrpc implementations offer a
  structured reply
 
  From the deprecation point of view, we need to be sure:
  1) the new mi_xmlrpc-ng module is a perfect substitute to the old one
  (providing the same unstructured reply)
  2) the new mi_xmlrpc-ng module can also provide a structured reply - this
  definitely is something good for the future
  3) OpenSIPS CP must be migrated (there are some things that need to be
  changed) to be compatible with both modules.
 
  Ovidiu (mi_xmlepc-ng) and Alex (opensips cp) are already heavily working
 to
  achieve the 3 goals above (many thanks to both of them).
 
  As noticed, the old mi_xmlrpc module was not deprecated in 1.11 - there
 are
  small but many things to be done to 100% ensure a smooth transition.
 Still
  this is work on progress and it will be done for next release.
 
  Many thanks,
 
  Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
  On 19.03.2014 21:55, Brett Nemeroff wrote:
 
  JSON+http sounds fantastic. It's like.. Starting to sound a like a
 RESTful
  server.
 
  I'm pretty sure others will jump on this. I know I would.
  -Brett
 
 
 
  On Wed, Mar 19, 2014 at 2:52 PM, Ovidiu Sas o...@voipembedded.com
 wrote:
 
  The new module is built on top of the httpd module which has a
  parameter to define the size of the buffer.  If you need large
  replies, then you need to adjust the buffer size accordingly.
  http://www.opensips.org/html/docs/modules/devel/httpd
 
  That buffer is used by all modules that are sitting on top of the
  httpd module, and there's one single process dedicated to all http
  requests (no interference with SIP workers).
 
  Regards,
  Ovidiu Sas
 
  On Wed, Mar 19, 2014 at 3:44 PM, Brett Nemeroff br...@nemeroff.com
  wrote:
   I think there are some other issues with the size of the return data.
 I
   know
   for one that the mi_udp method has a buffer size limit. If you hit
 this
   limit I think it very quietly truncates the data. I can't 100% verify
   that
   since it's been a long time since I've used it.
  
   I believe you can paginate the data, but the problem is that you can't
   guarantee consistent results paginating data when the data is changing
   constantly. I'm not really sure on the background how this is handled;
   maybe
   a locked list or something.. but not sure if it'd affect performance
 at
   high
   velocity. Seems like something. somewhere would be affected.. either
   performance or accuracy.
  
   My point being, care needs to be taken that the method can produce
   consistent results; even for large datasets. If data is going to be
   truncated or we run out of SHM, there needs to not only be an error
 log,
   but
   I think the out put needs to say something as well.
  
   -Brett
  
  
  
   On Wed, Mar 19, 2014 at 2:37 PM, Dragomir Haralambiev
   goup2...@gmail.com
   wrote:
  
   I totally share Brett's feelings! For me dlg_list_ctx over the new
   module
   causes lots of headaches when dialogs go over 100 or so. Structured
   output
   would resolve such problems. I am totally in for structured SJON
 format
   too!
  
  
   2014-03-19 21:07 GMT+02:00 Brett Nemeroff br...@nemeroff.com:
  
   I think the only reason for that is backwards compatibility with
 stuff
   written for the other mi interfaces.
  
  
   Honestly, my parsers for the MI output are ridiculous. It's really
   complicated and prone to failure. I'd like to know if others share
 my
   feeling here.
  
   For little things like dr_reload I don't really care.
  
   But for MI calls that return large amounts of user data, like
   dlg_list_ctx.. Parsing it is kind of ridiculous... Anyone else share
   this
   feeling?
  
   I personally would love to see it structured in JSON format. :)
  
   -Brett
  
  
  
   On Wed, Mar 19, 2014 at 2:05 PM, Ovidiu Sas o...@voipembedded.com
   wrote:
  
   Hello Brett,
  
   It is true that the structured output mode was not implemented in
 the
   new module.
   It seems that having the output in one big chunk is the preferred
   method in the community.
  
   If there is a real demand for structured output, we can take a look
   into
   it.
  
   Regards,
   Ovidiu Sas
  
  
   On Wed, Mar 19, 2014 at 1:56 PM, Brett Nemeroff 
 br...@nemeroff.com
   wrote:
I'd like to see the new module to be a drop in replacement for
 the
old
one..
   
That being said...
   
I was pretty surprised when I started down the path of the XMLRPC
module
that the reply isn't structured. It was just one big object.
   
I'd like a selectable option on the module so that it either
  

Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-09-25 Thread Ovidiu Sas
Are we ready to deprecate the mi_xmlrpc module now (for 1.12)?

-ovidiu

On Fri, Mar 21, 2014 at 11:24 AM, Bogdan-Andrei Iancu
bog...@opensips.org wrote:
 Hello all,

 Bringing some light here : none of the xmlrpc implementations offer a
 structured reply

 From the deprecation point of view, we need to be sure:
 1) the new mi_xmlrpc-ng module is a perfect substitute to the old one
 (providing the same unstructured reply)
 2) the new mi_xmlrpc-ng module can also provide a structured reply - this
 definitely is something good for the future
 3) OpenSIPS CP must be migrated (there are some things that need to be
 changed) to be compatible with both modules.

 Ovidiu (mi_xmlepc-ng) and Alex (opensips cp) are already heavily working to
 achieve the 3 goals above (many thanks to both of them).

 As noticed, the old mi_xmlrpc module was not deprecated in 1.11 - there are
 small but many things to be done to 100% ensure a smooth transition. Still
 this is work on progress and it will be done for next release.

 Many thanks,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com

 On 19.03.2014 21:55, Brett Nemeroff wrote:

 JSON+http sounds fantastic. It's like.. Starting to sound a like a RESTful
 server.

 I'm pretty sure others will jump on this. I know I would.
 -Brett



 On Wed, Mar 19, 2014 at 2:52 PM, Ovidiu Sas o...@voipembedded.com wrote:

 The new module is built on top of the httpd module which has a
 parameter to define the size of the buffer.  If you need large
 replies, then you need to adjust the buffer size accordingly.
 http://www.opensips.org/html/docs/modules/devel/httpd

 That buffer is used by all modules that are sitting on top of the
 httpd module, and there's one single process dedicated to all http
 requests (no interference with SIP workers).

 Regards,
 Ovidiu Sas

 On Wed, Mar 19, 2014 at 3:44 PM, Brett Nemeroff br...@nemeroff.com
 wrote:
  I think there are some other issues with the size of the return data. I
  know
  for one that the mi_udp method has a buffer size limit. If you hit this
  limit I think it very quietly truncates the data. I can't 100% verify
  that
  since it's been a long time since I've used it.
 
  I believe you can paginate the data, but the problem is that you can't
  guarantee consistent results paginating data when the data is changing
  constantly. I'm not really sure on the background how this is handled;
  maybe
  a locked list or something.. but not sure if it'd affect performance at
  high
  velocity. Seems like something. somewhere would be affected.. either
  performance or accuracy.
 
  My point being, care needs to be taken that the method can produce
  consistent results; even for large datasets. If data is going to be
  truncated or we run out of SHM, there needs to not only be an error log,
  but
  I think the out put needs to say something as well.
 
  -Brett
 
 
 
  On Wed, Mar 19, 2014 at 2:37 PM, Dragomir Haralambiev
  goup2...@gmail.com
  wrote:
 
  I totally share Brett's feelings! For me dlg_list_ctx over the new
  module
  causes lots of headaches when dialogs go over 100 or so. Structured
  output
  would resolve such problems. I am totally in for structured SJON format
  too!
 
 
  2014-03-19 21:07 GMT+02:00 Brett Nemeroff br...@nemeroff.com:
 
  I think the only reason for that is backwards compatibility with stuff
  written for the other mi interfaces.
 
 
  Honestly, my parsers for the MI output are ridiculous. It's really
  complicated and prone to failure. I'd like to know if others share my
  feeling here.
 
  For little things like dr_reload I don't really care.
 
  But for MI calls that return large amounts of user data, like
  dlg_list_ctx.. Parsing it is kind of ridiculous... Anyone else share
  this
  feeling?
 
  I personally would love to see it structured in JSON format. :)
 
  -Brett
 
 
 
  On Wed, Mar 19, 2014 at 2:05 PM, Ovidiu Sas o...@voipembedded.com
  wrote:
 
  Hello Brett,
 
  It is true that the structured output mode was not implemented in the
  new module.
  It seems that having the output in one big chunk is the preferred
  method in the community.
 
  If there is a real demand for structured output, we can take a look
  into
  it.
 
  Regards,
  Ovidiu Sas
 
 
  On Wed, Mar 19, 2014 at 1:56 PM, Brett Nemeroff br...@nemeroff.com
  wrote:
   I'd like to see the new module to be a drop in replacement for the
   old
   one..
  
   That being said...
  
   I was pretty surprised when I started down the path of the XMLRPC
   module
   that the reply isn't structured. It was just one big object.
  
   I'd like a selectable option on the module so that it either
   operates:
   1. Legacy (one big output chunk)
   2. Structured, parable for each output node.
  
   Really if we are talking deprecating we need to support the old
   method
   primarily or there will be a lot of broken code out there.
  
   -Brett
  
  
  
   On Wed, Mar 19, 2014 at 12:15 PM, Bogdan-Andrei Iancu
   

Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-21 Thread Bogdan-Andrei Iancu

Hello all,

Bringing some light here : none of the xmlrpc implementations offer a 
structured reply


From the deprecation point of view, we need to be sure:
1) the new mi_xmlrpc-ng module is a perfect substitute to the old one 
(providing the same unstructured reply)
2) the new mi_xmlrpc-ng module can also provide a structured reply - 
this definitely is something good for the future
3) OpenSIPS CP must be migrated (there are some things that need to be 
changed) to be compatible with both modules.


Ovidiu (mi_xmlepc-ng) and Alex (opensips cp) are already heavily working 
to achieve the 3 goals above (many thanks to both of them).


As noticed, the old mi_xmlrpc module was not deprecated in 1.11 - there 
are small but many things to be done to 100% ensure a smooth transition. 
Still this is work on progress and it will be done for next release.


Many thanks,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 19.03.2014 21:55, Brett Nemeroff wrote:
JSON+http sounds fantastic. It's like.. Starting to sound a like a 
RESTful server.


I'm pretty sure others will jump on this. I know I would.
-Brett



On Wed, Mar 19, 2014 at 2:52 PM, Ovidiu Sas o...@voipembedded.com 
mailto:o...@voipembedded.com wrote:


The new module is built on top of the httpd module which has a
parameter to define the size of the buffer.  If you need large
replies, then you need to adjust the buffer size accordingly.
http://www.opensips.org/html/docs/modules/devel/httpd

That buffer is used by all modules that are sitting on top of the
httpd module, and there's one single process dedicated to all http
requests (no interference with SIP workers).

Regards,
Ovidiu Sas

On Wed, Mar 19, 2014 at 3:44 PM, Brett Nemeroff
br...@nemeroff.com mailto:br...@nemeroff.com wrote:
 I think there are some other issues with the size of the return
data. I know
 for one that the mi_udp method has a buffer size limit. If you
hit this
 limit I think it very quietly truncates the data. I can't 100%
verify that
 since it's been a long time since I've used it.

 I believe you can paginate the data, but the problem is that you
can't
 guarantee consistent results paginating data when the data is
changing
 constantly. I'm not really sure on the background how this is
handled; maybe
 a locked list or something.. but not sure if it'd affect
performance at high
 velocity. Seems like something. somewhere would be affected.. either
 performance or accuracy.

 My point being, care needs to be taken that the method can produce
 consistent results; even for large datasets. If data is going to be
 truncated or we run out of SHM, there needs to not only be an
error log, but
 I think the out put needs to say something as well.

 -Brett



 On Wed, Mar 19, 2014 at 2:37 PM, Dragomir Haralambiev
goup2...@gmail.com mailto:goup2...@gmail.com
 wrote:

 I totally share Brett's feelings! For me dlg_list_ctx over the
new module
 causes lots of headaches when dialogs go over 100 or so.
Structured output
 would resolve such problems. I am totally in for structured
SJON format too!


 2014-03-19 21:07 GMT+02:00 Brett Nemeroff br...@nemeroff.com
mailto:br...@nemeroff.com:

 I think the only reason for that is backwards compatibility
with stuff
 written for the other mi interfaces.


 Honestly, my parsers for the MI output are ridiculous. It's really
 complicated and prone to failure. I'd like to know if others
share my
 feeling here.

 For little things like dr_reload I don't really care.

 But for MI calls that return large amounts of user data, like
 dlg_list_ctx.. Parsing it is kind of ridiculous... Anyone else
share this
 feeling?

 I personally would love to see it structured in JSON format. :)

 -Brett



 On Wed, Mar 19, 2014 at 2:05 PM, Ovidiu Sas
o...@voipembedded.com mailto:o...@voipembedded.com
 wrote:

 Hello Brett,

 It is true that the structured output mode was not
implemented in the
 new module.
 It seems that having the output in one big chunk is the preferred
 method in the community.

 If there is a real demand for structured output, we can take
a look into
 it.

 Regards,
 Ovidiu Sas


 On Wed, Mar 19, 2014 at 1:56 PM, Brett Nemeroff
br...@nemeroff.com mailto:br...@nemeroff.com
 wrote:
  I'd like to see the new module to be a drop in replacement
for the old
  one..
 
  That being said...
 
  I was pretty surprised when I started down the path of the
XMLRPC
  module
  that the reply isn't structured. It was just one big object.
 
  I'd like a selectable option on the module so that 

Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-19 Thread Bogdan-Andrei Iancu

Hi,

What Bobby state is really true - already had some chat with Ovidiu in 
evaluating the differences (on the reply format) and the effort to align 
the new xmlrpc-ng module with the old one.


If this will be doable by tomorrow, we will drop mi_xmlrpc module in 
1.11. If not, it will be kept for one more release.


Best regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 14.03.2014 03:07, Ovidiu Sas wrote:

Please open a bug report with all the details.
We will take a look at it and see what can be done before the release.

Regards,
Ovidiu Sas

On Tue, Mar 11, 2014 at 9:48 PM, Bobby Smith bobby.sm...@gmail.com wrote:

The one thing we find annoying about deprecating this is that it's not a
drop in replacement for the current xmlrpc implementation.  We have a lot of
system level monitoring an alerting (things like fraud checking, rate
limiting, reporting to external systems) that rely upon accessing fifo via
xmlrpc, and the format for the content responses returned by the new
mi_xmlrpc_ng module is not the same as the old module (I don't remember the
details off the top of my head, but basically it was a difference being
double colon delimited and something else).

It would really be beneficial if there was a way to control or configure the
format of the xml response to line up the same as the old formatting, so
that we could use it as a drop in replacement and not have to go rewrite a
hundred different alerts/scripts that rely upon mi_xmlrpc's current format.


On Fri, Mar 7, 2014 at 6:26 AM, Bogdan-Andrei Iancu bog...@opensips.org
wrote:

Hello all,

I would appreciate your input/opinions in the matter of deprecating the
mi_xmlrpc module in favor of mi_xmlrpc_ng + httpd modules.

Both modules offer the same functionality : XMLRPC backend for the
Management Interface (see ww.opensips.org/Documentation/Interface-MI-1-10).

The old mi_xmlrpc module use the libxmlrpc-c3 external library for the
HTTP server and XMLRPC engine. This library was a source of problems along
the years because of the difficulty in using it (threads versus processes
support) - the user experience was horrible in trying to have this library
properly working on various OS distros.

The new mi_xmlrpc_ng module uses the httpd support from OpenSIPS and the
generic libxml library - this is a safer and more robust approach ; users
will find really easy to deploy these modules, to configure them (not to
mention flexibility when comes to setting, restricting access, etc).

So, I would suggest to terminate the mi_xmlrpc module and officially have
the mi_xmlrpc_ng module for the XMLRPC backend.

Comments, opinions are, as always, more than welcome.

References :
 - mi_xmlrpc module -
http://www.opensips.org/html/docs/modules/1.10.x/mi_xmlrpc.html
 - mi_xmlrpc_ng module -
http://www.opensips.org/html/docs/modules/1.10.x/mi_xmlrpc_ng.html

Regards,

--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users







___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-19 Thread Dragomir Haralambiev
Hello,

The new mi_xmlrpc_ng module have one big probelm - not support integer
value.

To send digit value OpenSips want to use srting.

Example:
When try to change debug level I must ot send debug 1.

workable XML this is :
   methodCall
methodNamedebug/methodName
params
   param
 value string1/string /value/param
/params
/methodCall

The right way is:
   methodCall
methodNamedebug/methodName
params
   param
 value integer1/integer /value/param
/params
/methodCall

Best regards,
PlayMen


2014-03-19 11:13 GMT+02:00 Bogdan-Andrei Iancu bog...@opensips.org:

 Hi,

 What Bobby state is really true - already had some chat with Ovidiu in
 evaluating the differences (on the reply format) and the effort to align
 the new xmlrpc-ng module with the old one.

 If this will be doable by tomorrow, we will drop mi_xmlrpc module in 1.11.
 If not, it will be kept for one more release.

 Best regards,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com

 On 14.03.2014 03:07, Ovidiu Sas wrote:

 Please open a bug report with all the details.
 We will take a look at it and see what can be done before the release.

 Regards,
 Ovidiu Sas

 On Tue, Mar 11, 2014 at 9:48 PM, Bobby Smith bobby.sm...@gmail.com
 wrote:

 The one thing we find annoying about deprecating this is that it's not a
 drop in replacement for the current xmlrpc implementation.  We have a
 lot of
 system level monitoring an alerting (things like fraud checking, rate
 limiting, reporting to external systems) that rely upon accessing fifo
 via
 xmlrpc, and the format for the content responses returned by the new
 mi_xmlrpc_ng module is not the same as the old module (I don't remember
 the
 details off the top of my head, but basically it was a difference being
 double colon delimited and something else).

 It would really be beneficial if there was a way to control or configure
 the
 format of the xml response to line up the same as the old formatting, so
 that we could use it as a drop in replacement and not have to go rewrite
 a
 hundred different alerts/scripts that rely upon mi_xmlrpc's current
 format.


 On Fri, Mar 7, 2014 at 6:26 AM, Bogdan-Andrei Iancu bog...@opensips.org
 
 wrote:

 Hello all,

 I would appreciate your input/opinions in the matter of deprecating the
 mi_xmlrpc module in favor of mi_xmlrpc_ng + httpd modules.

 Both modules offer the same functionality : XMLRPC backend for the
 Management Interface (see ww.opensips.org/Documentation/
 Interface-MI-1-10).

 The old mi_xmlrpc module use the libxmlrpc-c3 external library for the
 HTTP server and XMLRPC engine. This library was a source of problems
 along
 the years because of the difficulty in using it (threads versus
 processes
 support) - the user experience was horrible in trying to have this
 library
 properly working on various OS distros.

 The new mi_xmlrpc_ng module uses the httpd support from OpenSIPS and the
 generic libxml library - this is a safer and more robust approach ;
 users
 will find really easy to deploy these modules, to configure them (not to
 mention flexibility when comes to setting, restricting access, etc).

 So, I would suggest to terminate the mi_xmlrpc module and officially
 have
 the mi_xmlrpc_ng module for the XMLRPC backend.

 Comments, opinions are, as always, more than welcome.

 References :
  - mi_xmlrpc module -
 http://www.opensips.org/html/docs/modules/1.10.x/mi_xmlrpc.html
  - mi_xmlrpc_ng module -
 http://www.opensips.org/html/docs/modules/1.10.x/mi_xmlrpc_ng.html

 Regards,

 --
 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com


 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users



 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users





 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-19 Thread Kneeoh
I'm all for the deprecation as long as the documentation on the mi_xmlrpc_ng 
module is updated to a usable level. I find myself referencing the 
documentation for xmlrpc and hoping that it holds true for xmlrpc_ng.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-19 Thread Bogdan-Andrei Iancu

The whole idea is not to :)

But more tests need to be done.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 19.03.2014 17:39, Ali Pey wrote:

Will this affect OpenSIPS-CP?

Regards,
Ali Pey



On Wed, Mar 19, 2014 at 10:18 AM, Kneeoh kne...@yahoo.com 
mailto:kne...@yahoo.com wrote:


I'm all for the deprecation as long as the documentation on the
mi_xmlrpc_ng module is updated to a usable level. I find myself
referencing the documentation for xmlrpc and hoping that it holds
true for xmlrpc_ng.

___
Users mailing list
Users@lists.opensips.org mailto:Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-19 Thread Brett Nemeroff
I'd like to see the new module to be a drop in replacement for the old one..

That being said...

I was pretty surprised when I started down the path of the XMLRPC module
that the reply isn't structured. It was just one big object.

I'd like a selectable option on the module so that it either operates:
1. Legacy (one big output chunk)
2. Structured, parable for each output node.

Really if we are talking deprecating we need to support the old method
primarily or there will be a lot of broken code out there.

-Brett



On Wed, Mar 19, 2014 at 12:15 PM, Bogdan-Andrei Iancu
bog...@opensips.orgwrote:

  The whole idea is not to :)

 But more tests need to be done.

 Regards,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developerhttp://www.opensips-solutions.com

 On 19.03.2014 17:39, Ali Pey wrote:

 Will this affect OpenSIPS-CP?

  Regards,
 Ali Pey



 On Wed, Mar 19, 2014 at 10:18 AM, Kneeoh kne...@yahoo.com wrote:

 I'm all for the deprecation as long as the documentation on the
 mi_xmlrpc_ng module is updated to a usable level. I find myself referencing
 the documentation for xmlrpc and hoping that it holds true for xmlrpc_ng.

 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users




 ___
 Users mailing 
 listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users



 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-19 Thread Ovidiu Sas
Please pull from git, give it a try and let us know if everything is
working as expected with your old scripts.

Regards,
Ovidiu Sas

On Tue, Mar 11, 2014 at 9:48 PM, Bobby Smith bobby.sm...@gmail.com wrote:
 The one thing we find annoying about deprecating this is that it's not a
 drop in replacement for the current xmlrpc implementation.  We have a lot of
 system level monitoring an alerting (things like fraud checking, rate
 limiting, reporting to external systems) that rely upon accessing fifo via
 xmlrpc, and the format for the content responses returned by the new
 mi_xmlrpc_ng module is not the same as the old module (I don't remember the
 details off the top of my head, but basically it was a difference being
 double colon delimited and something else).

 It would really be beneficial if there was a way to control or configure the
 format of the xml response to line up the same as the old formatting, so
 that we could use it as a drop in replacement and not have to go rewrite a
 hundred different alerts/scripts that rely upon mi_xmlrpc's current format.


 On Fri, Mar 7, 2014 at 6:26 AM, Bogdan-Andrei Iancu bog...@opensips.org
 wrote:

 Hello all,

 I would appreciate your input/opinions in the matter of deprecating the
 mi_xmlrpc module in favor of mi_xmlrpc_ng + httpd modules.

 Both modules offer the same functionality : XMLRPC backend for the
 Management Interface (see ww.opensips.org/Documentation/Interface-MI-1-10).

 The old mi_xmlrpc module use the libxmlrpc-c3 external library for the
 HTTP server and XMLRPC engine. This library was a source of problems along
 the years because of the difficulty in using it (threads versus processes
 support) - the user experience was horrible in trying to have this library
 properly working on various OS distros.

 The new mi_xmlrpc_ng module uses the httpd support from OpenSIPS and the
 generic libxml library - this is a safer and more robust approach ; users
 will find really easy to deploy these modules, to configure them (not to
 mention flexibility when comes to setting, restricting access, etc).

 So, I would suggest to terminate the mi_xmlrpc module and officially have
 the mi_xmlrpc_ng module for the XMLRPC backend.

 Comments, opinions are, as always, more than welcome.

 References :
 - mi_xmlrpc module -
 http://www.opensips.org/html/docs/modules/1.10.x/mi_xmlrpc.html
 - mi_xmlrpc_ng module -
 http://www.opensips.org/html/docs/modules/1.10.x/mi_xmlrpc_ng.html

 Regards,

 --
 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com


 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users



 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users




-- 
VoIP Embedded, Inc.
http://www.voipembedded.com

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-19 Thread Ovidiu Sas
Please let us know what's missing from the mi_xmlrpc_ng doc and it is
present in mi_xmlrpc doc.

Regards,
Ovidiu Sas

On Wed, Mar 19, 2014 at 10:18 AM, Kneeoh kne...@yahoo.com wrote:
 I'm all for the deprecation as long as the documentation on the mi_xmlrpc_ng 
 module is updated to a usable level. I find myself referencing the 
 documentation for xmlrpc and hoping that it holds true for xmlrpc_ng.

 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users



-- 
VoIP Embedded, Inc.
http://www.voipembedded.com

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-19 Thread Ovidiu Sas
Hello Brett,

It is true that the structured output mode was not implemented in the
new module.
It seems that having the output in one big chunk is the preferred
method in the community.

If there is a real demand for structured output, we can take a look into it.

Regards,
Ovidiu Sas


On Wed, Mar 19, 2014 at 1:56 PM, Brett Nemeroff br...@nemeroff.com wrote:
 I'd like to see the new module to be a drop in replacement for the old one..

 That being said...

 I was pretty surprised when I started down the path of the XMLRPC module
 that the reply isn't structured. It was just one big object.

 I'd like a selectable option on the module so that it either operates:
 1. Legacy (one big output chunk)
 2. Structured, parable for each output node.

 Really if we are talking deprecating we need to support the old method
 primarily or there will be a lot of broken code out there.

 -Brett



 On Wed, Mar 19, 2014 at 12:15 PM, Bogdan-Andrei Iancu bog...@opensips.org
 wrote:

 The whole idea is not to :)

 But more tests need to be done.

 Regards,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com

 On 19.03.2014 17:39, Ali Pey wrote:

 Will this affect OpenSIPS-CP?

 Regards,
 Ali Pey



 On Wed, Mar 19, 2014 at 10:18 AM, Kneeoh kne...@yahoo.com wrote:

 I'm all for the deprecation as long as the documentation on the
 mi_xmlrpc_ng module is updated to a usable level. I find myself referencing
 the documentation for xmlrpc and hoping that it holds true for xmlrpc_ng.

 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users




 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users



 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users



 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users




-- 
VoIP Embedded, Inc.
http://www.voipembedded.com

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-19 Thread Brett Nemeroff
I think the only reason for that is backwards compatibility with stuff
written for the other mi interfaces.


Honestly, my parsers for the MI output are ridiculous. It's really
complicated and prone to failure. I'd like to know if others share my
feeling here.

For little things like dr_reload I don't really care.

But for MI calls that return large amounts of user data, like
dlg_list_ctx.. Parsing it is kind of ridiculous... Anyone else share this
feeling?

I personally would love to see it structured in JSON format. :)

-Brett



On Wed, Mar 19, 2014 at 2:05 PM, Ovidiu Sas o...@voipembedded.com wrote:

 Hello Brett,

 It is true that the structured output mode was not implemented in the
 new module.
 It seems that having the output in one big chunk is the preferred
 method in the community.

 If there is a real demand for structured output, we can take a look into
 it.

 Regards,
 Ovidiu Sas


 On Wed, Mar 19, 2014 at 1:56 PM, Brett Nemeroff br...@nemeroff.com
 wrote:
  I'd like to see the new module to be a drop in replacement for the old
 one..
 
  That being said...
 
  I was pretty surprised when I started down the path of the XMLRPC module
  that the reply isn't structured. It was just one big object.
 
  I'd like a selectable option on the module so that it either operates:
  1. Legacy (one big output chunk)
  2. Structured, parable for each output node.
 
  Really if we are talking deprecating we need to support the old method
  primarily or there will be a lot of broken code out there.
 
  -Brett
 
 
 
  On Wed, Mar 19, 2014 at 12:15 PM, Bogdan-Andrei Iancu 
 bog...@opensips.org
  wrote:
 
  The whole idea is not to :)
 
  But more tests need to be done.
 
  Regards,
 
  Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
  On 19.03.2014 17:39, Ali Pey wrote:
 
  Will this affect OpenSIPS-CP?
 
  Regards,
  Ali Pey
 
 
 
  On Wed, Mar 19, 2014 at 10:18 AM, Kneeoh kne...@yahoo.com wrote:
 
  I'm all for the deprecation as long as the documentation on the
  mi_xmlrpc_ng module is updated to a usable level. I find myself
 referencing
  the documentation for xmlrpc and hoping that it holds true for
 xmlrpc_ng.
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 



 --
 VoIP Embedded, Inc.
 http://www.voipembedded.com

 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-19 Thread Ovidiu Sas
Hello Dragomir,

As I pointed to you in a previous e-mail, the integer is not really
supported by opensips.
Even if you send a value as integer, it will still be treated as
string and each module will decide if a conversion is required.
All you need to do is adjust your script to send out string for all
param values.
It might be as simple as quoting the variable in your script.

Regards,
Ovidiu Sas

On Wed, Mar 19, 2014 at 7:53 AM, Dragomir Haralambiev
goup2...@gmail.com wrote:
 Hello,

 The new mi_xmlrpc_ng module have one big probelm - not support integer
 value.

 To send digit value OpenSips want to use srting.

 Example:
 When try to change debug level I must ot send debug 1.

 workable XML this is :
methodCall
 methodNamedebug/methodName
 params
param
  value string1/string /value/param
 /params
 /methodCall

 The right way is:
methodCall
 methodNamedebug/methodName
 params
param
  value integer1/integer /value/param
 /params
 /methodCall

 Best regards,
 PlayMen


 2014-03-19 11:13 GMT+02:00 Bogdan-Andrei Iancu bog...@opensips.org:

 Hi,

 What Bobby state is really true - already had some chat with Ovidiu in
 evaluating the differences (on the reply format) and the effort to align the
 new xmlrpc-ng module with the old one.

 If this will be doable by tomorrow, we will drop mi_xmlrpc module in 1.11.
 If not, it will be kept for one more release.

 Best regards,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com

 On 14.03.2014 03:07, Ovidiu Sas wrote:

 Please open a bug report with all the details.
 We will take a look at it and see what can be done before the release.

 Regards,
 Ovidiu Sas

 On Tue, Mar 11, 2014 at 9:48 PM, Bobby Smith bobby.sm...@gmail.com
 wrote:

 The one thing we find annoying about deprecating this is that it's not a
 drop in replacement for the current xmlrpc implementation.  We have a
 lot of
 system level monitoring an alerting (things like fraud checking, rate
 limiting, reporting to external systems) that rely upon accessing fifo
 via
 xmlrpc, and the format for the content responses returned by the new
 mi_xmlrpc_ng module is not the same as the old module (I don't remember
 the
 details off the top of my head, but basically it was a difference being
 double colon delimited and something else).

 It would really be beneficial if there was a way to control or configure
 the
 format of the xml response to line up the same as the old formatting, so
 that we could use it as a drop in replacement and not have to go rewrite
 a
 hundred different alerts/scripts that rely upon mi_xmlrpc's current
 format.


 On Fri, Mar 7, 2014 at 6:26 AM, Bogdan-Andrei Iancu
 bog...@opensips.org
 wrote:

 Hello all,

 I would appreciate your input/opinions in the matter of deprecating the
 mi_xmlrpc module in favor of mi_xmlrpc_ng + httpd modules.

 Both modules offer the same functionality : XMLRPC backend for the
 Management Interface (see
 ww.opensips.org/Documentation/Interface-MI-1-10).

 The old mi_xmlrpc module use the libxmlrpc-c3 external library for the
 HTTP server and XMLRPC engine. This library was a source of problems
 along
 the years because of the difficulty in using it (threads versus
 processes
 support) - the user experience was horrible in trying to have this
 library
 properly working on various OS distros.

 The new mi_xmlrpc_ng module uses the httpd support from OpenSIPS and
 the
 generic libxml library - this is a safer and more robust approach ;
 users
 will find really easy to deploy these modules, to configure them (not
 to
 mention flexibility when comes to setting, restricting access, etc).

 So, I would suggest to terminate the mi_xmlrpc module and officially
 have
 the mi_xmlrpc_ng module for the XMLRPC backend.

 Comments, opinions are, as always, more than welcome.

 References :
  - mi_xmlrpc module -
 http://www.opensips.org/html/docs/modules/1.10.x/mi_xmlrpc.html
  - mi_xmlrpc_ng module -
 http://www.opensips.org/html/docs/modules/1.10.x/mi_xmlrpc_ng.html

 Regards,

 --
 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com


 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users



 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users





 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users



 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users




-- 
VoIP Embedded, Inc.
http://www.voipembedded.com

___
Users mailing list
Users@lists.opensips.org

Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-19 Thread Ovidiu Sas
Based on your reply, my understanding is that you are not currently
using the structured format, but you would like to have it in the
future in JSON format.  Am I right?

-ovidiu

On Wed, Mar 19, 2014 at 3:07 PM, Brett Nemeroff br...@nemeroff.com wrote:
 I think the only reason for that is backwards compatibility with stuff
 written for the other mi interfaces.


 Honestly, my parsers for the MI output are ridiculous. It's really
 complicated and prone to failure. I'd like to know if others share my
 feeling here.

 For little things like dr_reload I don't really care.

 But for MI calls that return large amounts of user data, like dlg_list_ctx..
 Parsing it is kind of ridiculous... Anyone else share this feeling?

 I personally would love to see it structured in JSON format. :)

 -Brett



 On Wed, Mar 19, 2014 at 2:05 PM, Ovidiu Sas o...@voipembedded.com wrote:

 Hello Brett,

 It is true that the structured output mode was not implemented in the
 new module.
 It seems that having the output in one big chunk is the preferred
 method in the community.

 If there is a real demand for structured output, we can take a look into
 it.

 Regards,
 Ovidiu Sas


 On Wed, Mar 19, 2014 at 1:56 PM, Brett Nemeroff br...@nemeroff.com
 wrote:
  I'd like to see the new module to be a drop in replacement for the old
  one..
 
  That being said...
 
  I was pretty surprised when I started down the path of the XMLRPC module
  that the reply isn't structured. It was just one big object.
 
  I'd like a selectable option on the module so that it either operates:
  1. Legacy (one big output chunk)
  2. Structured, parable for each output node.
 
  Really if we are talking deprecating we need to support the old method
  primarily or there will be a lot of broken code out there.
 
  -Brett
 
 
 
  On Wed, Mar 19, 2014 at 12:15 PM, Bogdan-Andrei Iancu
  bog...@opensips.org
  wrote:
 
  The whole idea is not to :)
 
  But more tests need to be done.
 
  Regards,
 
  Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
  On 19.03.2014 17:39, Ali Pey wrote:
 
  Will this affect OpenSIPS-CP?
 
  Regards,
  Ali Pey
 
 
 
  On Wed, Mar 19, 2014 at 10:18 AM, Kneeoh kne...@yahoo.com wrote:
 
  I'm all for the deprecation as long as the documentation on the
  mi_xmlrpc_ng module is updated to a usable level. I find myself
  referencing
  the documentation for xmlrpc and hoping that it holds true for
  xmlrpc_ng.
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 



 --
 VoIP Embedded, Inc.
 http://www.voipembedded.com

 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users



 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users




-- 
VoIP Embedded, Inc.
http://www.voipembedded.com

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-19 Thread Brett Nemeroff
I presently use either the raw fifo, the UDP fifo or the old XMLRPC method.
They all return the same format which has double colon separated nodes.
It's not easy to parse into an object by any language I know.

I've written parsers for it, but I don't like them. It seems like the
structure isn't well suited for parsing. You ask me if I'm using the
structured output. The only structured output I know of today is XML with
the unstructured data in one element. Is there something else?

I do prefer JSON. JSON parsers are a dime a dozen and easy to work with
typically. There isn't a whole lot of bloat, like there is with XML
(religious preference).. I'd like something like this:

[
{
dlg_id: 1234:1234,
callid: bbbcccddd,
profile: {
foo: bar,
bee: baz
}
},
{
dlg_id: :5432,
callid: qqqeee,
profile: {
foo: bar,
bee: baz
}
}
]

That's my $0.02.. That being said, there's a very large embedded base
expecting the old format as well, which I think needs to be continued to be
supported until we can give adequate notice that it's being deprecated.

Thanks!
-Brett



On Wed, Mar 19, 2014 at 2:13 PM, Ovidiu Sas o...@voipembedded.com wrote:

 Based on your reply, my understanding is that you are not currently
 using the structured format, but you would like to have it in the
 future in JSON format.  Am I right?

 -ovidiu

 On Wed, Mar 19, 2014 at 3:07 PM, Brett Nemeroff br...@nemeroff.com
 wrote:
  I think the only reason for that is backwards compatibility with stuff
  written for the other mi interfaces.
 
 
  Honestly, my parsers for the MI output are ridiculous. It's really
  complicated and prone to failure. I'd like to know if others share my
  feeling here.
 
  For little things like dr_reload I don't really care.
 
  But for MI calls that return large amounts of user data, like
 dlg_list_ctx..
  Parsing it is kind of ridiculous... Anyone else share this feeling?
 
  I personally would love to see it structured in JSON format. :)
 
  -Brett
 
 
 
  On Wed, Mar 19, 2014 at 2:05 PM, Ovidiu Sas o...@voipembedded.com
 wrote:
 
  Hello Brett,
 
  It is true that the structured output mode was not implemented in the
  new module.
  It seems that having the output in one big chunk is the preferred
  method in the community.
 
  If there is a real demand for structured output, we can take a look into
  it.
 
  Regards,
  Ovidiu Sas
 
 
  On Wed, Mar 19, 2014 at 1:56 PM, Brett Nemeroff br...@nemeroff.com
  wrote:
   I'd like to see the new module to be a drop in replacement for the old
   one..
  
   That being said...
  
   I was pretty surprised when I started down the path of the XMLRPC
 module
   that the reply isn't structured. It was just one big object.
  
   I'd like a selectable option on the module so that it either operates:
   1. Legacy (one big output chunk)
   2. Structured, parable for each output node.
  
   Really if we are talking deprecating we need to support the old
 method
   primarily or there will be a lot of broken code out there.
  
   -Brett
  
  
  
   On Wed, Mar 19, 2014 at 12:15 PM, Bogdan-Andrei Iancu
   bog...@opensips.org
   wrote:
  
   The whole idea is not to :)
  
   But more tests need to be done.
  
   Regards,
  
   Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer
   http://www.opensips-solutions.com
  
   On 19.03.2014 17:39, Ali Pey wrote:
  
   Will this affect OpenSIPS-CP?
  
   Regards,
   Ali Pey
  
  
  
   On Wed, Mar 19, 2014 at 10:18 AM, Kneeoh kne...@yahoo.com wrote:
  
   I'm all for the deprecation as long as the documentation on the
   mi_xmlrpc_ng module is updated to a usable level. I find myself
   referencing
   the documentation for xmlrpc and hoping that it holds true for
   xmlrpc_ng.
  
   ___
   Users mailing list
   Users@lists.opensips.org
   http://lists.opensips.org/cgi-bin/mailman/listinfo/users
  
  
  
  
   ___
   Users mailing list
   Users@lists.opensips.org
   http://lists.opensips.org/cgi-bin/mailman/listinfo/users
  
  
  
   ___
   Users mailing list
   Users@lists.opensips.org
   http://lists.opensips.org/cgi-bin/mailman/listinfo/users
  
  
  
   ___
   Users mailing list
   Users@lists.opensips.org
   http://lists.opensips.org/cgi-bin/mailman/listinfo/users
  
 
 
 
  --
  VoIP Embedded, Inc.
  http://www.voipembedded.com
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 



 --
 VoIP Embedded, Inc.
 http://www.voipembedded.com

 

Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-19 Thread Dragomir Haralambiev
I totally share Brett's feelings! For me dlg_list_ctx over the new module
causes lots of headaches when dialogs go over 100 or so. Structured output
would resolve such problems. I am totally in for structured SJON format too!


2014-03-19 21:07 GMT+02:00 Brett Nemeroff br...@nemeroff.com:

 I think the only reason for that is backwards compatibility with stuff
 written for the other mi interfaces.


 Honestly, my parsers for the MI output are ridiculous. It's really
 complicated and prone to failure. I'd like to know if others share my
 feeling here.

 For little things like dr_reload I don't really care.

 But for MI calls that return large amounts of user data, like
 dlg_list_ctx.. Parsing it is kind of ridiculous... Anyone else share this
 feeling?

 I personally would love to see it structured in JSON format. :)

 -Brett



 On Wed, Mar 19, 2014 at 2:05 PM, Ovidiu Sas o...@voipembedded.com wrote:

 Hello Brett,

 It is true that the structured output mode was not implemented in the
 new module.
 It seems that having the output in one big chunk is the preferred
 method in the community.

 If there is a real demand for structured output, we can take a look into
 it.

 Regards,
 Ovidiu Sas


 On Wed, Mar 19, 2014 at 1:56 PM, Brett Nemeroff br...@nemeroff.com
 wrote:
  I'd like to see the new module to be a drop in replacement for the old
 one..
 
  That being said...
 
  I was pretty surprised when I started down the path of the XMLRPC module
  that the reply isn't structured. It was just one big object.
 
  I'd like a selectable option on the module so that it either operates:
  1. Legacy (one big output chunk)
  2. Structured, parable for each output node.
 
  Really if we are talking deprecating we need to support the old method
  primarily or there will be a lot of broken code out there.
 
  -Brett
 
 
 
  On Wed, Mar 19, 2014 at 12:15 PM, Bogdan-Andrei Iancu 
 bog...@opensips.org
  wrote:
 
  The whole idea is not to :)
 
  But more tests need to be done.
 
  Regards,
 
  Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
  On 19.03.2014 17:39, Ali Pey wrote:
 
  Will this affect OpenSIPS-CP?
 
  Regards,
  Ali Pey
 
 
 
  On Wed, Mar 19, 2014 at 10:18 AM, Kneeoh kne...@yahoo.com wrote:
 
  I'm all for the deprecation as long as the documentation on the
  mi_xmlrpc_ng module is updated to a usable level. I find myself
 referencing
  the documentation for xmlrpc and hoping that it holds true for
 xmlrpc_ng.
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 



 --
 VoIP Embedded, Inc.
 http://www.voipembedded.com

 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users



 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-19 Thread Brett Nemeroff
I think there are some other issues with the size of the return data. I
know for one that the mi_udp method has a buffer size limit. If you hit
this limit I think it very quietly truncates the data. I can't 100% verify
that since it's been a long time since I've used it.

I believe you can paginate the data, but the problem is that you can't
guarantee consistent results paginating data when the data is changing
constantly. I'm not really sure on the background how this is handled;
maybe a locked list or something.. but not sure if it'd affect performance
at high velocity. Seems like something. somewhere would be affected..
either performance or accuracy.

My point being, care needs to be taken that the method can produce
consistent results; even for large datasets. If data is going to be
truncated or we run out of SHM, there needs to not only be an error log,
but I think the out put needs to say something as well.

-Brett



On Wed, Mar 19, 2014 at 2:37 PM, Dragomir Haralambiev goup2...@gmail.comwrote:

 I totally share Brett's feelings! For me dlg_list_ctx over the new module
 causes lots of headaches when dialogs go over 100 or so. Structured output
 would resolve such problems. I am totally in for structured SJON format too!


 2014-03-19 21:07 GMT+02:00 Brett Nemeroff br...@nemeroff.com:

 I think the only reason for that is backwards compatibility with stuff
 written for the other mi interfaces.


 Honestly, my parsers for the MI output are ridiculous. It's really
 complicated and prone to failure. I'd like to know if others share my
 feeling here.

 For little things like dr_reload I don't really care.

 But for MI calls that return large amounts of user data, like
 dlg_list_ctx.. Parsing it is kind of ridiculous... Anyone else share this
 feeling?

 I personally would love to see it structured in JSON format. :)

 -Brett



 On Wed, Mar 19, 2014 at 2:05 PM, Ovidiu Sas o...@voipembedded.comwrote:

 Hello Brett,

 It is true that the structured output mode was not implemented in the
 new module.
 It seems that having the output in one big chunk is the preferred
 method in the community.

 If there is a real demand for structured output, we can take a look into
 it.

 Regards,
 Ovidiu Sas


 On Wed, Mar 19, 2014 at 1:56 PM, Brett Nemeroff br...@nemeroff.com
 wrote:
  I'd like to see the new module to be a drop in replacement for the old
 one..
 
  That being said...
 
  I was pretty surprised when I started down the path of the XMLRPC
 module
  that the reply isn't structured. It was just one big object.
 
  I'd like a selectable option on the module so that it either operates:
  1. Legacy (one big output chunk)
  2. Structured, parable for each output node.
 
  Really if we are talking deprecating we need to support the old
 method
  primarily or there will be a lot of broken code out there.
 
  -Brett
 
 
 
  On Wed, Mar 19, 2014 at 12:15 PM, Bogdan-Andrei Iancu 
 bog...@opensips.org
  wrote:
 
  The whole idea is not to :)
 
  But more tests need to be done.
 
  Regards,
 
  Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
  On 19.03.2014 17:39, Ali Pey wrote:
 
  Will this affect OpenSIPS-CP?
 
  Regards,
  Ali Pey
 
 
 
  On Wed, Mar 19, 2014 at 10:18 AM, Kneeoh kne...@yahoo.com wrote:
 
  I'm all for the deprecation as long as the documentation on the
  mi_xmlrpc_ng module is updated to a usable level. I find myself
 referencing
  the documentation for xmlrpc and hoping that it holds true for
 xmlrpc_ng.
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 



 --
 VoIP Embedded, Inc.
 http://www.voipembedded.com

 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users



 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users



 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-19 Thread Ovidiu Sas
So, you are using the raw format.
The mi_xmlrpc_ng module is using only the raw format.
The structured format in the old mi_xmlrpc module was not implemented
in the new module because it seems that it doesn't have enough
traction in the community (AFAIK).


As for returning JSON, that should be a feature request for a new
mi_json_http module :)
There's no point embedding JSON in xml.
And it seems that somebody already implemented it:

commit 02638044d434f5cf95aa8f8c69527115a702dccf
Author: Stephane Alnet steph...@shimaore.net
Date:   Fri Nov 1 01:18:58 2013 +0100

Modified httpd to support `application/json` for our purposes.


Regards,
Ovidiu Sas


On Wed, Mar 19, 2014 at 3:27 PM, Brett Nemeroff br...@nemeroff.com wrote:
 I presently use either the raw fifo, the UDP fifo or the old XMLRPC method.
 They all return the same format which has double colon separated nodes. It's
 not easy to parse into an object by any language I know.

 I've written parsers for it, but I don't like them. It seems like the
 structure isn't well suited for parsing. You ask me if I'm using the
 structured output. The only structured output I know of today is XML with
 the unstructured data in one element. Is there something else?

 I do prefer JSON. JSON parsers are a dime a dozen and easy to work with
 typically. There isn't a whole lot of bloat, like there is with XML
 (religious preference).. I'd like something like this:

 [
 {
 dlg_id: 1234:1234,
 callid: bbbcccddd,
 profile: {
 foo: bar,
 bee: baz
 }
 },
 {
 dlg_id: :5432,
 callid: qqqeee,
 profile: {
 foo: bar,
 bee: baz
 }
 }
 ]

 That's my $0.02.. That being said, there's a very large embedded base
 expecting the old format as well, which I think needs to be continued to be
 supported until we can give adequate notice that it's being deprecated.

 Thanks!
 -Brett



 On Wed, Mar 19, 2014 at 2:13 PM, Ovidiu Sas o...@voipembedded.com wrote:

 Based on your reply, my understanding is that you are not currently
 using the structured format, but you would like to have it in the
 future in JSON format.  Am I right?

 -ovidiu

 On Wed, Mar 19, 2014 at 3:07 PM, Brett Nemeroff br...@nemeroff.com
 wrote:
  I think the only reason for that is backwards compatibility with stuff
  written for the other mi interfaces.
 
 
  Honestly, my parsers for the MI output are ridiculous. It's really
  complicated and prone to failure. I'd like to know if others share my
  feeling here.
 
  For little things like dr_reload I don't really care.
 
  But for MI calls that return large amounts of user data, like
  dlg_list_ctx..
  Parsing it is kind of ridiculous... Anyone else share this feeling?
 
  I personally would love to see it structured in JSON format. :)
 
  -Brett
 
 
 
  On Wed, Mar 19, 2014 at 2:05 PM, Ovidiu Sas o...@voipembedded.com
  wrote:
 
  Hello Brett,
 
  It is true that the structured output mode was not implemented in the
  new module.
  It seems that having the output in one big chunk is the preferred
  method in the community.
 
  If there is a real demand for structured output, we can take a look
  into
  it.
 
  Regards,
  Ovidiu Sas
 
 
  On Wed, Mar 19, 2014 at 1:56 PM, Brett Nemeroff br...@nemeroff.com
  wrote:
   I'd like to see the new module to be a drop in replacement for the
   old
   one..
  
   That being said...
  
   I was pretty surprised when I started down the path of the XMLRPC
   module
   that the reply isn't structured. It was just one big object.
  
   I'd like a selectable option on the module so that it either
   operates:
   1. Legacy (one big output chunk)
   2. Structured, parable for each output node.
  
   Really if we are talking deprecating we need to support the old
   method
   primarily or there will be a lot of broken code out there.
  
   -Brett
  
  
  
   On Wed, Mar 19, 2014 at 12:15 PM, Bogdan-Andrei Iancu
   bog...@opensips.org
   wrote:
  
   The whole idea is not to :)
  
   But more tests need to be done.
  
   Regards,
  
   Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer
   http://www.opensips-solutions.com
  
   On 19.03.2014 17:39, Ali Pey wrote:

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-19 Thread Ovidiu Sas
The new module is built on top of the httpd module which has a
parameter to define the size of the buffer.  If you need large
replies, then you need to adjust the buffer size accordingly.
http://www.opensips.org/html/docs/modules/devel/httpd

That buffer is used by all modules that are sitting on top of the
httpd module, and there's one single process dedicated to all http
requests (no interference with SIP workers).

Regards,
Ovidiu Sas

On Wed, Mar 19, 2014 at 3:44 PM, Brett Nemeroff br...@nemeroff.com wrote:
 I think there are some other issues with the size of the return data. I know
 for one that the mi_udp method has a buffer size limit. If you hit this
 limit I think it very quietly truncates the data. I can't 100% verify that
 since it's been a long time since I've used it.

 I believe you can paginate the data, but the problem is that you can't
 guarantee consistent results paginating data when the data is changing
 constantly. I'm not really sure on the background how this is handled; maybe
 a locked list or something.. but not sure if it'd affect performance at high
 velocity. Seems like something. somewhere would be affected.. either
 performance or accuracy.

 My point being, care needs to be taken that the method can produce
 consistent results; even for large datasets. If data is going to be
 truncated or we run out of SHM, there needs to not only be an error log, but
 I think the out put needs to say something as well.

 -Brett



 On Wed, Mar 19, 2014 at 2:37 PM, Dragomir Haralambiev goup2...@gmail.com
 wrote:

 I totally share Brett's feelings! For me dlg_list_ctx over the new module
 causes lots of headaches when dialogs go over 100 or so. Structured output
 would resolve such problems. I am totally in for structured SJON format too!


 2014-03-19 21:07 GMT+02:00 Brett Nemeroff br...@nemeroff.com:

 I think the only reason for that is backwards compatibility with stuff
 written for the other mi interfaces.


 Honestly, my parsers for the MI output are ridiculous. It's really
 complicated and prone to failure. I'd like to know if others share my
 feeling here.

 For little things like dr_reload I don't really care.

 But for MI calls that return large amounts of user data, like
 dlg_list_ctx.. Parsing it is kind of ridiculous... Anyone else share this
 feeling?

 I personally would love to see it structured in JSON format. :)

 -Brett



 On Wed, Mar 19, 2014 at 2:05 PM, Ovidiu Sas o...@voipembedded.com
 wrote:

 Hello Brett,

 It is true that the structured output mode was not implemented in the
 new module.
 It seems that having the output in one big chunk is the preferred
 method in the community.

 If there is a real demand for structured output, we can take a look into
 it.

 Regards,
 Ovidiu Sas


 On Wed, Mar 19, 2014 at 1:56 PM, Brett Nemeroff br...@nemeroff.com
 wrote:
  I'd like to see the new module to be a drop in replacement for the old
  one..
 
  That being said...
 
  I was pretty surprised when I started down the path of the XMLRPC
  module
  that the reply isn't structured. It was just one big object.
 
  I'd like a selectable option on the module so that it either operates:
  1. Legacy (one big output chunk)
  2. Structured, parable for each output node.
 
  Really if we are talking deprecating we need to support the old
  method
  primarily or there will be a lot of broken code out there.
 
  -Brett
 
 
 
  On Wed, Mar 19, 2014 at 12:15 PM, Bogdan-Andrei Iancu
  bog...@opensips.org
  wrote:
 
  The whole idea is not to :)
 
  But more tests need to be done.
 
  Regards,
 
  Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
 
  On 19.03.2014 17:39, Ali Pey wrote:
 
  Will this affect OpenSIPS-CP?
 
  Regards,
  Ali Pey
 
 
 
  On Wed, Mar 19, 2014 at 10:18 AM, Kneeoh kne...@yahoo.com wrote:
 
  I'm all for the deprecation as long as the documentation on the
  mi_xmlrpc_ng module is updated to a usable level. I find myself
  referencing
  the documentation for xmlrpc and hoping that it holds true for
  xmlrpc_ng.
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 



 --
 VoIP Embedded, Inc.
 http://www.voipembedded.com

 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users



 ___
 Users mailing list
 

Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-19 Thread Brett Nemeroff
JSON+http sounds fantastic. It's like.. Starting to sound a like a RESTful
server.

I'm pretty sure others will jump on this. I know I would.
-Brett



On Wed, Mar 19, 2014 at 2:52 PM, Ovidiu Sas o...@voipembedded.com wrote:

 The new module is built on top of the httpd module which has a
 parameter to define the size of the buffer.  If you need large
 replies, then you need to adjust the buffer size accordingly.
 http://www.opensips.org/html/docs/modules/devel/httpd

 That buffer is used by all modules that are sitting on top of the
 httpd module, and there's one single process dedicated to all http
 requests (no interference with SIP workers).

 Regards,
 Ovidiu Sas

 On Wed, Mar 19, 2014 at 3:44 PM, Brett Nemeroff br...@nemeroff.com
 wrote:
  I think there are some other issues with the size of the return data. I
 know
  for one that the mi_udp method has a buffer size limit. If you hit this
  limit I think it very quietly truncates the data. I can't 100% verify
 that
  since it's been a long time since I've used it.
 
  I believe you can paginate the data, but the problem is that you can't
  guarantee consistent results paginating data when the data is changing
  constantly. I'm not really sure on the background how this is handled;
 maybe
  a locked list or something.. but not sure if it'd affect performance at
 high
  velocity. Seems like something. somewhere would be affected.. either
  performance or accuracy.
 
  My point being, care needs to be taken that the method can produce
  consistent results; even for large datasets. If data is going to be
  truncated or we run out of SHM, there needs to not only be an error log,
 but
  I think the out put needs to say something as well.
 
  -Brett
 
 
 
  On Wed, Mar 19, 2014 at 2:37 PM, Dragomir Haralambiev 
 goup2...@gmail.com
  wrote:
 
  I totally share Brett's feelings! For me dlg_list_ctx over the new
 module
  causes lots of headaches when dialogs go over 100 or so. Structured
 output
  would resolve such problems. I am totally in for structured SJON format
 too!
 
 
  2014-03-19 21:07 GMT+02:00 Brett Nemeroff br...@nemeroff.com:
 
  I think the only reason for that is backwards compatibility with stuff
  written for the other mi interfaces.
 
 
  Honestly, my parsers for the MI output are ridiculous. It's really
  complicated and prone to failure. I'd like to know if others share my
  feeling here.
 
  For little things like dr_reload I don't really care.
 
  But for MI calls that return large amounts of user data, like
  dlg_list_ctx.. Parsing it is kind of ridiculous... Anyone else share
 this
  feeling?
 
  I personally would love to see it structured in JSON format. :)
 
  -Brett
 
 
 
  On Wed, Mar 19, 2014 at 2:05 PM, Ovidiu Sas o...@voipembedded.com
  wrote:
 
  Hello Brett,
 
  It is true that the structured output mode was not implemented in the
  new module.
  It seems that having the output in one big chunk is the preferred
  method in the community.
 
  If there is a real demand for structured output, we can take a look
 into
  it.
 
  Regards,
  Ovidiu Sas
 
 
  On Wed, Mar 19, 2014 at 1:56 PM, Brett Nemeroff br...@nemeroff.com
  wrote:
   I'd like to see the new module to be a drop in replacement for the
 old
   one..
  
   That being said...
  
   I was pretty surprised when I started down the path of the XMLRPC
   module
   that the reply isn't structured. It was just one big object.
  
   I'd like a selectable option on the module so that it either
 operates:
   1. Legacy (one big output chunk)
   2. Structured, parable for each output node.
  
   Really if we are talking deprecating we need to support the old
   method
   primarily or there will be a lot of broken code out there.
  
   -Brett
  
  
  
   On Wed, Mar 19, 2014 at 12:15 PM, Bogdan-Andrei Iancu
   bog...@opensips.org
   wrote:
  
   The whole idea is not to :)
  
   But more tests need to be done.
  
   Regards,
  
   Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer
   http://www.opensips-solutions.com
  
   On 19.03.2014 17:39, Ali Pey wrote:
  
   Will this affect OpenSIPS-CP?
  
   Regards,
   Ali Pey
  
  
  
   On Wed, Mar 19, 2014 at 10:18 AM, Kneeoh kne...@yahoo.com wrote:
  
   I'm all for the deprecation as long as the documentation on the
   mi_xmlrpc_ng module is updated to a usable level. I find myself
   referencing
   the documentation for xmlrpc and hoping that it holds true for
   xmlrpc_ng.
  
   ___
   Users mailing list
   Users@lists.opensips.org
   http://lists.opensips.org/cgi-bin/mailman/listinfo/users
  
  
  
  
   ___
   Users mailing list
   Users@lists.opensips.org
   http://lists.opensips.org/cgi-bin/mailman/listinfo/users
  
  
  
   ___
   Users mailing list
   Users@lists.opensips.org
   http://lists.opensips.org/cgi-bin/mailman/listinfo/users
  
  
  
   

Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-13 Thread Ovidiu Sas
Please open a bug report with all the details.
We will take a look at it and see what can be done before the release.

Regards,
Ovidiu Sas

On Tue, Mar 11, 2014 at 9:48 PM, Bobby Smith bobby.sm...@gmail.com wrote:
 The one thing we find annoying about deprecating this is that it's not a
 drop in replacement for the current xmlrpc implementation.  We have a lot of
 system level monitoring an alerting (things like fraud checking, rate
 limiting, reporting to external systems) that rely upon accessing fifo via
 xmlrpc, and the format for the content responses returned by the new
 mi_xmlrpc_ng module is not the same as the old module (I don't remember the
 details off the top of my head, but basically it was a difference being
 double colon delimited and something else).

 It would really be beneficial if there was a way to control or configure the
 format of the xml response to line up the same as the old formatting, so
 that we could use it as a drop in replacement and not have to go rewrite a
 hundred different alerts/scripts that rely upon mi_xmlrpc's current format.


 On Fri, Mar 7, 2014 at 6:26 AM, Bogdan-Andrei Iancu bog...@opensips.org
 wrote:

 Hello all,

 I would appreciate your input/opinions in the matter of deprecating the
 mi_xmlrpc module in favor of mi_xmlrpc_ng + httpd modules.

 Both modules offer the same functionality : XMLRPC backend for the
 Management Interface (see ww.opensips.org/Documentation/Interface-MI-1-10).

 The old mi_xmlrpc module use the libxmlrpc-c3 external library for the
 HTTP server and XMLRPC engine. This library was a source of problems along
 the years because of the difficulty in using it (threads versus processes
 support) - the user experience was horrible in trying to have this library
 properly working on various OS distros.

 The new mi_xmlrpc_ng module uses the httpd support from OpenSIPS and the
 generic libxml library - this is a safer and more robust approach ; users
 will find really easy to deploy these modules, to configure them (not to
 mention flexibility when comes to setting, restricting access, etc).

 So, I would suggest to terminate the mi_xmlrpc module and officially have
 the mi_xmlrpc_ng module for the XMLRPC backend.

 Comments, opinions are, as always, more than welcome.

 References :
 - mi_xmlrpc module -
 http://www.opensips.org/html/docs/modules/1.10.x/mi_xmlrpc.html
 - mi_xmlrpc_ng module -
 http://www.opensips.org/html/docs/modules/1.10.x/mi_xmlrpc_ng.html

 Regards,

 --
 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com


 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users



 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users




-- 
VoIP Embedded, Inc.
http://www.voipembedded.com

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] [RFC] Deprecating mi_xmlrpc

2014-03-11 Thread Bobby Smith
The one thing we find annoying about deprecating this is that it's not a
drop in replacement for the current xmlrpc implementation.  We have a lot
of system level monitoring an alerting (things like fraud checking, rate
limiting, reporting to external systems) that rely upon accessing fifo via
xmlrpc, and the format for the content responses returned by the new
mi_xmlrpc_ng module is not the same as the old module (I don't remember the
details off the top of my head, but basically it was a difference being
double colon delimited and something else).

It would really be beneficial if there was a way to control or configure
the format of the xml response to line up the same as the old formatting,
so that we could use it as a drop in replacement and not have to go rewrite
a hundred different alerts/scripts that rely upon mi_xmlrpc's current
format.


On Fri, Mar 7, 2014 at 6:26 AM, Bogdan-Andrei Iancu bog...@opensips.orgwrote:

 Hello all,

 I would appreciate your input/opinions in the matter of deprecating the
 mi_xmlrpc module in favor of mi_xmlrpc_ng + httpd modules.

 Both modules offer the same functionality : XMLRPC backend for the
 Management Interface (see ww.opensips.org/Documentation/Interface-MI-1-10
 ).

 The old mi_xmlrpc module use the libxmlrpc-c3 external library for the
 HTTP server and XMLRPC engine. This library was a source of problems along
 the years because of the difficulty in using it (threads versus processes
 support) - the user experience was horrible in trying to have this library
 properly working on various OS distros.

 The new mi_xmlrpc_ng module uses the httpd support from OpenSIPS and the
 generic libxml library - this is a safer and more robust approach ; users
 will find really easy to deploy these modules, to configure them (not to
 mention flexibility when comes to setting, restricting access, etc).

 So, I would suggest to terminate the mi_xmlrpc module and officially have
 the mi_xmlrpc_ng module for the XMLRPC backend.

 Comments, opinions are, as always, more than welcome.

 References :
 - mi_xmlrpc module - http://www.opensips.org/html/
 docs/modules/1.10.x/mi_xmlrpc.html
 - mi_xmlrpc_ng module - http://www.opensips.org/html/
 docs/modules/1.10.x/mi_xmlrpc_ng.html

 Regards,

 --
 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com


 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users