msg_translator.h
9d045b03
 /*$Id$
  * 
  */
 
26b939c6
 #ifndef  _MSG_TRANSLATOR_H
 #define _MSG_TRANSLATOR_H
 
68a3fc65
 #define MY_HF_SEP ": "
 #define MY_HF_SEP_LEN 2
 
3881f12c
 #include "parser/msg_parser.h"
36ef0329
 #include "ip_addr.h"
26b939c6
 
9d045b03
 char * build_req_buf_from_sip_req (	struct sip_msg* msg, 
36ef0329
 				unsigned int *returned_len, struct socket_info* send_sock);
26b939c6
 
9d045b03
 char * build_res_buf_from_sip_res(	struct sip_msg* msg,
df51b111
 				unsigned int *returned_len);
5843cd1b
 
340bddb4
 char * build_res_buf_from_sip_req(	unsigned int code ,
df51b111
 				char *text ,
340bddb4
 				char *new_tag ,
 				unsigned int new_tag_len ,
df51b111
 				struct sip_msg* msg,
 				unsigned int *returned_len);
 char* via_builder( 			struct sip_msg *msg ,
36ef0329
 				unsigned int *len, struct socket_info* send_sock);
26b939c6
 
 
 #endif