1 /*
2  * $Id$
3  *
4  * Copyright (C) 2012 Smile Communications, jason.penton@smilecoms.com
5  * Copyright (C) 2012 Smile Communications, richard.good@smilecoms.com
6  *
7  * The initial version of this code was written by Dragos Vingarzan
8  * (dragos(dot)vingarzan(at)fokus(dot)fraunhofer(dot)de and the
9  * Fruanhofer Institute. It was and still is maintained in a separate
10  * branch of the original SER. We are therefore migrating it to
11  * Kamailio/SR and look forward to maintaining it from here on out.
12  * 2011/2012 Smile Communications, Pty. Ltd.
13  * ported/maintained/improved by
14  * Jason Penton (jason(dot)penton(at)smilecoms.com and
15  * Richard Good (richard(dot)good(at)smilecoms.com) as part of an
16  * effort to add full IMS support to Kamailio/SR using a new and
17  * improved architecture
18  *
19  * NB: Alot of this code was originally part of OpenIMSCore,
20  * FhG Fokus.
21  * Copyright (C) 2004-2006 FhG Fokus
22  * Thanks for great work! This is an effort to
23  * break apart the various CSCF functions into logically separate
24  * components. We hope this will drive wider use. We also feel
25  * that in this way the architecture is more complete and thereby easier
26  * to manage in the Kamailio/SR environment
27  *
28  * This file is part of Kamailio, a free SIP server.
29  *
30  * Kamailio is free software; you can redistribute it and/or modify
31  * it under the terms of the GNU General Public License as published by
32  * the Free Software Foundation; either version 2 of the License, or
33  * (at your option) any later version
34  *
35  * Kamailio is distributed in the hope that it will be useful,
36  * but WITHOUT ANY WARRANTY; without even the implied warranty of
37  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38  * GNU General Public License for more details.
39  *
40  * You should have received a copy of the GNU General Public License
41  * along with this program; if not, write to the Free Software
42  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
43  *
44  *
45  * History:
46  * ---------
47  */
48 
49 /*! \file
50  *  \brief USRLOC - Usrloc module interface
51  *  \ingroup usrloc
52  */
53 
54 #ifndef UL_MOD_H
55 #define UL_MOD_H
56 
57 
58 #include "../../lib/srdb1/db.h"
59 #include "../../core/str.h"
60 
61 
62 /*
63  * Module parameters
64  */
65 
66 
67 #define UL_TABLE_VERSION 1004
68 
69 #include "../../lib/ims/useful_defs.h"
70 #include "../presence/event_list.h"
71 #include "../presence/hash.h"
72 
73 extern int timer_interval;
74 extern int desc_time_order;
75 extern int cseq_delay;
76 extern int ul_fetch_rows;
77 extern int ul_hash_size;
78 
79 /* functions imported from presence to handle subscribe hash table */
80 extern new_shtable_t pres_new_shtable;
81 extern insert_shtable_t pres_insert_shtable;
82 extern search_shtable_t pres_search_shtable;
83 extern update_shtable_t pres_update_shtable;
84 extern delete_shtable_t pres_delete_shtable;
85 extern destroy_shtable_t pres_destroy_shtable;
86 extern extract_sdialog_info_t pres_extract_sdialog_info;
87 
88 /*
89  * Matching algorithms
90  */
91 #define CONTACT_ONLY            (0)
92 #define CONTACT_CALLID          (1)
93 #define CONTACT_PATH		(2)
94 #define CONTACT_PORT_IP_ONLY    (3)
95 
96 extern int matching_mode;
97 
98 
99 #endif /* UL_MOD_H */
100