encode_uri.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
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);