Hi Jamuel,

Currently there is no way to do http queries directly from OpenSIPS script, except maybe playing with db_http module - a module that allows you to do SQL like queries via HTTP (http://www.opensips.org/html/docs/modules/1.8.x/db_http.html).

In short / medium term we are planing to add some generic REST module.

Regards,

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


On 01/08/2013 11:22 PM, Jamuel Starkey wrote:
Hi,

A few carriers that we using here domestically (in the USA) are now offering 
their termination rate decks by OCN (operating company name identifier) as 
opposed to NPA-NXX.  Therefore their published rate decks don't contain NPA-NXX 
for us to use the more traditional means within OpenSIPS to perform LCR.  We 
have a web api built that can easily translate NPA-NXX to OCN on a per call 
basis so I was wondering if there is any sort of built-in method to use 
something like the curl library from within OpenSIPS as opposed to shelling out 
to a bash script or using the perl module as a wrapper to the API.   It would 
be nice to be able to make an arbitrary http call and store the result in an 
avp or some such . . .  Is that possible?

Thanks in advance for any insight.

Cheers,

JPS
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to