Re: [Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Raúl Alexis Betancor Santana
On Tuesday 23 June 2009 13:54:01 Konstantin Cherkasov wrote: > Hello, Raúl! > > >> OK, do you ever hear about AUTH_RADIUS ? :-) > > > > Yes, we know, at the end it's other DB ;-) > > OK. Can you imagine auth_http in place of auth_radius or auth_diameter ? Yes I can, when I talk about high perform

Re: [Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Konstantin Cherkasov
Hello, Raúl! >> OK, do you ever hear about AUTH_RADIUS ? :-) > Yes, we know, at the end it's other DB ;-) OK. Can you imagine auth_http in place of auth_radius or auth_diameter ? I don't think that http with some encapsulated text data is worth then than RADIUS. But I think auth_http is bad id

Re: [Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Raúl Alexis Betancor Santana
On Tuesday 23 June 2009 12:41:22 Konstantin Cherkasov wrote: > Kamailio is a "REST client" and REST is not requires XML. > I think it will be like this: > Kamailio <-> (TXT/CSV) <-> HTTP <-> REST server <-> ANY EXTERNAL DB > > So, which part is _realy_ slow in this setup? > HTTP-server can be very

Re: [Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Konstantin Cherkasov
Добрый день, Raúl. > On Tuesday 23 June 2009 10:53:07 Konstantin Cherkasov wrote: >> Hello, Raúl! >> >> >> It would provide access to database (internal database API) not >> >> management API. I want alias_db, auth_db, domain, group, usrloc etc. to >> >> work directly with HTTP/REST layer. >> > >>

Re: [Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Raúl Alexis Betancor Santana
On Tuesday 23 June 2009 10:53:07 Konstantin Cherkasov wrote: > Hello, Raúl! > > >> It would provide access to database (internal database API) not > >> management API. I want alias_db, auth_db, domain, group, usrloc etc. to > >> work directly with HTTP/REST layer. > > > > This is a very, very, very

Re: [Kamailio-Users] NAThelper and multipart SDP

2009-06-23 Thread Daniel-Constantin Mierla
Hi Pascal, you are right, a stupid bug introduced with the support for the multipart. I committed to the git repo. Thanks, Daniel On 06/23/2009 11:55 AM, Pascal Maugeri wrote: Daniel Are you sure that this source fragment (in nhelpr_funcs.c): /* no need for parse_headers(msg, EOH)

Re: [Kamailio-Users] NAThelper and multipart SDP

2009-06-23 Thread Pascal Maugeri
Daniel Are you sure that this source fragment (in nhelpr_funcs.c): /* no need for parse_headers(msg, EOH), get_body will * parse everything */ /*is the content type correct?*/ if((ret = check_content_type(msg))==1) { LM_ERR("content type mi

Re: [Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Henning Westerholt
On Dienstag, 23. Juni 2009, Raúl Alexis Betancor Santana wrote: > > >> It would provide access to database (internal database API) not > > >> management API. I want alias_db, auth_db, domain, group, usrloc etc. > > >> to work directly with HTTP/REST layer. > > > > > > Why not just provide an HTTP/R

Re: [Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Konstantin Cherkasov
Hello, Raúl! >> It would provide access to database (internal database API) not management >> API. I want alias_db, auth_db, domain, group, usrloc etc. to work directly >> with HTTP/REST layer. > This is a very, very, very, very, very bad idea from performance point of view Do you realy think th

Re: [Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Raúl Alexis Betancor Santana
On Tuesday 23 June 2009 10:06:25 Konstantin Cherkasov wrote: > Hello, Alex! > > >> It would provide access to database (internal database API) not > >> management API. I want alias_db, auth_db, domain, group, usrloc etc. to > >> work directly with HTTP/REST layer. > > > > Why not just provide an HT

Re: [Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Raúl Alexis Betancor Santana
On Tuesday 23 June 2009 09:45:03 Konstantin Cherkasov wrote: > Hello, Alex! > > > Wouldn't it be simpler to write your own middleware daemon / service > > that plumbs the manager interface (FIFO or UDP datagram) to a REST > > service exposure in an embedded or peripheral HTTP server, instead of > >

Re: [Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Henning Westerholt
On Dienstag, 23. Juni 2009, Konstantin Cherkasov wrote: > > you probably already investigated this, but are you aware of the > > http_query function in the utils module? > > > > http://www.kamailio.org/docs/modules/1.5.x/utils.html#id2454145 > > > > If this don't meet your requirements yet, perhaps

Re: [Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Konstantin Cherkasov
Hello, Alex! >> It would provide access to database (internal database API) not management >> API. >> I want alias_db, auth_db, domain, group, usrloc etc. to work directly with >> HTTP/REST layer. > Why not just provide an HTTP/REST interface to the database, then? What if I have database, bu

Re: [Kamailio-Users] NAThelper and multipart SDP

2009-06-23 Thread Daniel-Constantin Mierla
On 06/23/2009 10:16 AM, Pascal Maugeri wrote: This bug is fixed now with your patch Daniel! Thank you, I go ahead with my testing ok, I will backport to kamailio 1.5 in few days if there is no related bug reported meanwhile. Cheers, Daniel Cheers, Pascal On Mon, Jun 22, 2009 at 5:34 PM,

Re: [Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Konstantin Cherkasov
Hello, Henning! > you probably already investigated this, but are you aware of the http_query > function in the utils module? > http://www.kamailio.org/docs/modules/1.5.x/utils.html#id2454145 > If this don't meet your requirements yet, perhaps it can be extended? Yes I know about http_query().

Re: [Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Alex Balashov
Konstantin Cherkasov wrote: Hello, Alex! Wouldn't it be simpler to write your own middleware daemon / service that plumbs the manager interface (FIFO or UDP datagram) to a REST service exposure in an embedded or peripheral HTTP server, instead of hooking this straight into the Kamailio core?

Re: [Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Konstantin Cherkasov
Hello, Alex! > Wouldn't it be simpler to write your own middleware daemon / service > that plumbs the manager interface (FIFO or UDP datagram) to a REST > service exposure in an embedded or peripheral HTTP server, instead of > hooking this straight into the Kamailio core? It would provide acce

Re: [Kamailio-Users] Avoid encoding of CDR's written to database by Radius

2009-06-23 Thread CSB
> > CSB writes: > > > So how can I write +6012345678 to the database, rather than > > =2B6012345678? > > if you use freeradius, add + to safe-characters. > vi /etc/raddb/sql.conf sql { safe-characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /+" ... servi

Re: [Kamailio-Users] [sr-dev] kamailio at linuxtag 2009

2009-06-23 Thread Henning Westerholt
On Montag, 22. Juni 2009, Victor Pascual Ávila wrote: > > sorry if I'm doublechecking something obvious: > > > > "Mittwoch, 24.06.2009, London, 16:30-17:00 Uhr" > > > > is supposed to mean 24.06. 16:30 Berlin time in Berlin? > > I believe it is 24.06 Berlin, 16.30, Room London (lower floor > undern

Re: [Kamailio-Users] NAThelper and multipart SDP

2009-06-23 Thread Pascal Maugeri
This bug is fixed now with your patch Daniel! Thank you, I go ahead with my testing Cheers, Pascal On Mon, Jun 22, 2009 at 5:34 PM, Daniel-Constantin Mierla wrote: > Can you check this patch I just committed? > > > http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=caef5ace2026

Re: [Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Henning Westerholt
On Dienstag, 23. Juni 2009, Konstantin Cherkasov wrote: > Our company seeking for programmer who can create module for flexible > database access. > > I call it db_rest (or db_http). This module must provide internal database > API for other modules like db_auth. For access to external data it must

Re: [Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Alex Balashov
Or MI_XMLRPC, if you can make it compile with that damn old library version it needs. Alex Balashov wrote: Wouldn't it be simpler to write your own middleware daemon / service that plumbs the manager interface (FIFO or UDP datagram) to a REST service exposure in an embedded or peripheral HTTP

Re: [Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Alex Balashov
Wouldn't it be simpler to write your own middleware daemon / service that plumbs the manager interface (FIFO or UDP datagram) to a REST service exposure in an embedded or peripheral HTTP server, instead of hooking this straight into the Kamailio core? Konstantin Cherkasov wrote: Hello! Our

[Kamailio-Users] [REQ, $] db_rest (or db_http) module for database access

2009-06-23 Thread Konstantin Cherkasov
Hello! Our company seeking for programmer who can create module for flexible database access. I call it db_rest (or db_http). This module must provide internal database API for other modules like db_auth. For access to external data it must use HTTPS-server and use REST-style data access (http