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 use
> HTTPS-server and use REST-style data access
> (http://en.wikipedia.org/wiki/Representational_State_Transfer).
>
> Instead of making query like "SELECT f1,f2,f3 FROM tableA WHERE f4 =
> 'somevalue'" it must call HTTPS-server like this:
> GET http://hostname/database/tableA&c=f1,f2,f3&k=f4&op=eq&v=somevalue


Hello Constantin,


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?


Henning