SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
eX_message.h
Go to the documentation of this file.
1 /*
2  eXosip - This is the eXtended osip library.
3  Copyright (C) 2001-2012 Aymeric MOIZARD amoizard@antisip.com
4 
5  eXosip is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  eXosip is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19 
20 
21 #ifdef ENABLE_MPATROL
22 #include <mpatrol.h>
23 #endif
24 
25 #ifndef __EX_MESSAGE_H__
26 #define __EX_MESSAGE_H__
27 
29 #include <time.h>
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
71  int eXosip_message_build_request (struct eXosip_t *excontext, osip_message_t ** message, const char *method, const char *to, const char *from, const char *route);
72 
79  int eXosip_message_send_request (struct eXosip_t *excontext, osip_message_t * message);
80 
89  int eXosip_message_build_answer (struct eXosip_t *excontext, int tid, int status, osip_message_t ** answer);
90 
99  int eXosip_message_send_answer (struct eXosip_t *excontext, int tid, int status, osip_message_t * answer);
100 
104 #ifdef __cplusplus
105 }
106 #endif
107 #endif
Structure for SIP Message (REQUEST and RESPONSE).
Definition: osip_message.h:55
int eXosip_message_send_request(struct eXosip_t *excontext, osip_message_t *message)
Send an request.
int eXosip_message_build_request(struct eXosip_t *excontext, osip_message_t **message, const char *method, const char *to, const char *from, const char *route)
Build a default request message.
int eXosip_message_send_answer(struct eXosip_t *excontext, int tid, int status, osip_message_t *answer)
Send answer for a request.
int eXosip_message_build_answer(struct eXosip_t *excontext, int tid, int status, osip_message_t **answer)
Build answer for a request.
oSIP SIP Parser additionnal Routines