SF.net SVN: opensips:[5661] trunk/modules/alias_db

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SF.net SVN: opensips:[5661] trunk/modules/alias_db

Bogdan-Andrei Iancu
Revision: 5661
          http://opensips.svn.sourceforge.net/opensips/?rev=5661&view=rev
Author:   bogdan_iancu
Date:     2009-05-05 09:35:20 +0000 (Tue, 05 May 2009)

Log Message:
-----------
- new function alias_db_find("table","input_var","output_var") to lookup for a DB alias using as input whatever value from a Pseudo-Var and placing the result in a different Pseudo-Var;
Similar to alias_db_lookup(), but it does not use and affect the current SIP mesassge (source and desitnation for alias lookup may be whatsoever).

Based on the patch 2713792, submited by Vladimir Romanov.


- both alias_db_lookup() and alias_db_find() may take a third param, a list of flags (char based flags):
    'd' - do not use domain part in the lookup (by default domain is used)
    'r' - do revers lookup - the input is the ID URI and the result is alias URI (normally the input is the alias URI and the result is the ID URI)

Modified Paths:
--------------
    trunk/modules/alias_db/alias_db.c
    trunk/modules/alias_db/alias_db.h
    trunk/modules/alias_db/alookup.c
    trunk/modules/alias_db/alookup.h


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel