cr_func.h

Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Copyright (C) 2007-2008 1&1 Internet AG
00005  *
00006  * This file is part of SIP-router, a free SIP server.
00007  *
00008  * SIP-router is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version
00012  *
00013  * SIP-router is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License 
00019  * along with this program; if not, write to the Free Software 
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021  *
00022  */
00023 
00031 #ifndef CR_FUNC_H
00032 #define CR_FUNC_H
00033 
00034 #include "../../parser/msg_parser.h"
00035 #include "../../pvar.h"
00036 #include "../../mod_fix.h"
00037 #include "prime_hash.h"
00038 
00039 
00050 int cr_load_user_carrier(struct sip_msg * _msg, gparam_t *_user,
00051                 gparam_t *_domain, gparam_t *_dstavp);
00052 
00053 
00068 int cr_route(struct sip_msg * _msg, gparam_t *_carrier,
00069                 gparam_t *_domain, gparam_t *_prefix_matching,
00070                 gparam_t *_rewrite_user, enum hash_source _hsrc,
00071                 gparam_t *_descavp);
00072 int cr_route5(struct sip_msg * _msg, gparam_t *_carrier,
00073                 gparam_t *_domain, gparam_t *_prefix_matching,
00074                 gparam_t *_rewrite_user, enum hash_source _hsrc);
00075 
00076 
00094 int cr_nofallback_route(struct sip_msg * _msg, gparam_t *_carrier,
00095                 gparam_t *_domain, gparam_t *_prefix_matching,
00096                 gparam_t *_rewrite_user, enum hash_source _hsrc,
00097                 gparam_t *_dstavp);
00098 int cr_nofallback_route5(struct sip_msg * _msg, gparam_t *_carrier,
00099                 gparam_t *_domain, gparam_t *_prefix_matching,
00100                 gparam_t *_rewrite_user, enum hash_source _hsrc);
00101 
00102 
00116 int cr_load_next_domain(struct sip_msg * _msg, gparam_t *_carrier,
00117                 gparam_t *_domain, gparam_t *_prefix_matching, gparam_t *_host,
00118                 gparam_t *_reply_code, gparam_t *_dstavp);
00119 
00120 #endif