encode_uri.h

Go to the documentation of this file.
00001 /* $Id: encode_uri.h 5192 2008-11-13 10:18:48Z eliasbaixas $
00002  *
00003  * Copyright (C) 2006-2007 VozTelecom Sistemas S.L
00004  *
00005  * This file is part of Kamailio, a free SIP server.
00006  *
00007  * Kamailio is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version
00011  *
00012  * Kamailio is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License 
00018  * along with this program; if not, write to the Free Software 
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020  */
00021 
00022 #include "../../str.h"
00023 #include "../../parser/msg_parser.h"
00024 
00025 #define SIP_OR_TEL_F 0x01
00026 #define SECURE_F  0x02
00027 #define USER_F    0x04
00028 #define PASSWORD_F   0x08
00029 #define HOST_F    0x10
00030 #define PORT_F    0x20
00031 #define PARAMETERS_F 0x40
00032 #define HEADERS_F 0x80
00033 
00034 #define TRANSPORT_F  0x01
00035 #define TTL_F     0x02
00036 #define USER_F    0x04
00037 #define METHOD_F  0x08
00038 #define MADDR_F      0x10
00039 #define LR_F      0x20
00040 
00041 #define MAX_XURI_LEN 23
00042 
00043 int encode_uri2(char *hdr,int hdrlen,str uri_str, struct sip_uri *uri_parsed,unsigned char *where);
00044 int print_encoded_uri(FILE* fd,unsigned char *payload,int paylen,char *hdr,int hdrlen,char *prefix);
00045 int print_uri_junit_tests(char *hdrstart,int hdrlen,unsigned char *payload,int paylen,FILE* fd,char also_hdr,char *prefix);

Generated on Wed May 23 06:00:45 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6