[OpenSIPS-Users] Best way to retrieve a data from location database
Bogdan-Andrei Iancu
bogdan at opensips.org
Thu Jun 19 11:52:05 CEST 2014
Hi Miguel,
Have you looked at the lookup() function from the registrar module ?
http://www.opensips.org/html/docs/modules/1.11.x/registrar.html#id294366
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 19.06.2014 12:48, Miguel Oyarzo wrote:
> Hi,
>
> What is the best way to read a data from the location database?
> I'm using postgreSQL.
>
>
> E.g. Assuming there is a registered user:
>
> if (is_method("INVITE")) {
> $var(x)=read_data_from_location(" select contact where
> user='71000' ");
> ...
> // do something with $var(x)
> ..
> ..
> }
>
> Thanks,
>
> --
> "Efficiency is doing things right; effectiveness is doing the right
> things(Peter Drucker)"
>
> Miguel Oyarzo
> DevOps & VoIP Engineer
> Linux User: # 483188 - counter.li.org <http://counter.li.org>
> http://au.linkedin.com/in/mikeaustralia
> Melbourne, Australia
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140619/e3e6edba/attachment-0001.htm>
More information about the Users
mailing list