modules_k/registrar/config.h

Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * SIP-router is distributed in the hope that it will be useful,
00005  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00006  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00007  * GNU General Public License for more details.
00008  *
00009  * You should have received a copy of the GNU General Public License 
00010  * along with this program; if not, write to the Free Software 
00011  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00012  */
00013 
00021 #ifndef _REGISTRAR_CONFIG_H
00022 #define _REGISTRAR_CONFIG_H
00023 
00024 #include "../../qvalue.h"
00025 
00026 #include "../../cfg/cfg.h"
00027 #include "../../str.h"
00028 
00029 struct cfg_group_registrar {
00030         unsigned int    default_expires;
00031         unsigned int    default_expires_range;
00032         unsigned int    min_expires;
00033         unsigned int    max_expires;
00034         unsigned int    max_contacts;
00035         unsigned int    retry_after;
00036         unsigned int    case_sensitive;
00037         qvalue_t        default_q;
00038         unsigned int    append_branches;
00039         str             realm_pref;
00040 };
00041 
00042 extern struct cfg_group_registrar       default_registrar_cfg;
00043 extern void     *registrar_cfg;
00044 extern cfg_def_t        registrar_cfg_def[];
00045 
00046 extern void default_expires_stats_update(str*, str*);
00047 extern void default_expires_range_update(str*, str*);
00048 extern void max_expires_stats_update(str*, str*);
00049 
00050 #endif