SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
eX_register.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_REGISTER_H__
26 #define __EX_REGISTER_H__
27 
29 #include <time.h>
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 
56  struct eXosip_reg_t;
57 
68  int eXosip_register_build_initial_register (struct eXosip_t *excontext, const char *from, const char *proxy, const char *contact, int expires, osip_message_t ** reg);
69 
81  int eXosip_register_build_initial_register_withqvalue (struct eXosip_t *excontext, const char *from, const char *proxy, const char *contact, int expires, const char *qvalue, osip_message_t ** reg);
82 
91  int eXosip_register_build_register (struct eXosip_t *excontext, int rid, int expires, osip_message_t ** reg);
92 
100  int eXosip_register_send_register (struct eXosip_t *excontext, int rid, osip_message_t * reg);
101 
108  int eXosip_register_remove (struct eXosip_t *excontext, int rid);
109 
113 #ifdef __cplusplus
114 }
115 #endif
116 #endif
Structure for SIP Message (REQUEST and RESPONSE).
Definition: osip_message.h:55
int eXosip_register_build_register(struct eXosip_t *excontext, int rid, int expires, osip_message_t **reg)
Build a new REGISTER request for an existing registration.
int eXosip_register_build_initial_register(struct eXosip_t *excontext, const char *from, const char *proxy, const char *contact, int expires, osip_message_t **reg)
Build initial REGISTER request.
int eXosip_register_remove(struct eXosip_t *excontext, int rid)
Remove existing registration without sending REGISTER.
int eXosip_register_build_initial_register_withqvalue(struct eXosip_t *excontext, const char *from, const char *proxy, const char *contact, int expires, const char *qvalue, osip_message_t **reg)
Build initial REGISTER request with qvalue for contact.
int eXosip_register_send_register(struct eXosip_t *excontext, int rid, osip_message_t *reg)
Send a REGISTER request for an existing registration.
oSIP SIP Parser additionnal Routines