opensips/modules/enum/enum.h

changeset 19
3374f578f080
parent 18
8ec65b8f6e2c
child 20
2ff1f58715ce
     1.1 --- a/opensips/modules/enum/enum.h	Wed Feb 10 21:25:01 2010 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,78 +0,0 @@
     1.4 -/*
     1.5 - * $Id: enum.h 5901 2009-07-21 07:45:05Z bogdan_iancu $
     1.6 - *
     1.7 - * Header file for Enum and E164 related functions
     1.8 - *
     1.9 - * Copyright (C) 2002-2008 Juha Heinanen
    1.10 - *
    1.11 - * This file is part of opensips, a free SIP server.
    1.12 - *
    1.13 - * opensips is free software; you can redistribute it and/or modify
    1.14 - * it under the terms of the GNU General Public License as published by
    1.15 - * the Free Software Foundation; either version 2 of the License, or
    1.16 - * (at your option) any later version
    1.17 - *
    1.18 - * opensips is distributed in the hope that it will be useful,
    1.19 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.20 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.21 - * GNU General Public License for more details.
    1.22 - *
    1.23 - * You should have received a copy of the GNU General Public License 
    1.24 - * along with this program; if not, write to the Free Software 
    1.25 - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.26 - */
    1.27 -
    1.28 -
    1.29 -#ifndef ENUM_H
    1.30 -#define ENUM_H
    1.31 -
    1.32 -
    1.33 -#include "../../parser/msg_parser.h"
    1.34 -
    1.35 -
    1.36 -#define MAX_DOMAIN_SIZE 256
    1.37 -#define MAX_COMPONENT_SIZE 32  /* separator, apex, ... This simplifies checks */
    1.38 -		
    1.39 -
    1.40 -/*
    1.41 - * Check if from user is an e164 number and has a naptr record
    1.42 - */
    1.43 -int is_from_user_enum_0(struct sip_msg* _msg, char* _str1, char* _str2);
    1.44 -int is_from_user_enum_1(struct sip_msg* _msg, char* _suffix, char* _str2);
    1.45 -int is_from_user_enum_2(struct sip_msg* _msg, char* _suffix, char* _service);
    1.46 -
    1.47 -/*
    1.48 - * do source number destination routing.
    1.49 - * that is, make the ruri based on the from number
    1.50 - * this is like source ip policy routing
    1.51 - */
    1.52 -int enum_pv_query_1(struct sip_msg* _msg, char* _sp);
    1.53 -int enum_pv_query_2(struct sip_msg* _msg, char* _sp, char* _suffix);
    1.54 -int enum_pv_query_3(struct sip_msg* _msg, char* _sp, char* _suffix,
    1.55 -		    char* _service);
    1.56 -
    1.57 -/*
    1.58 - * Make enum query and if query succeeds, replace current uri with the
    1.59 - * result of the query
    1.60 - */
    1.61 -int enum_query_0(struct sip_msg* _msg, char* _str1, char* _str2);
    1.62 -int enum_query_1(struct sip_msg* _msg, char* _suffix, char* _str2);
    1.63 -int enum_query_2(struct sip_msg* _msg, char* _suffix, char* _service);
    1.64 -
    1.65 -/*
    1.66 - * Infrastructure ENUM versions.
    1.67 - */
    1.68 -int i_enum_query_0(struct sip_msg* _msg, char* _str1, char* _str2);
    1.69 -int i_enum_query_1(struct sip_msg* _msg, char* _suffix, char* _str2);
    1.70 -int i_enum_query_2(struct sip_msg* _msg, char* _suffix, char* _service);
    1.71 -
    1.72 -/*
    1.73 - * Make ISN query and if query succeeds, replace current uri with the
    1.74 - * result of the query
    1.75 - */
    1.76 -int isn_query_0(struct sip_msg* _msg, char* _str1, char* _str2);
    1.77 -int isn_query_1(struct sip_msg* _msg, char* _suffix, char* _str2);
    1.78 -int isn_query_2(struct sip_msg* _msg, char* _suffix, char* _service);
    1.79 -
    1.80 -
    1.81 -#endif /* ENUM_H */

mercurial