SIP Witch 1.9.15
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
eX_subscribe.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_SUBSCRIBE_H__
26 #define __EX_SUBSCRIBE_H__
27 
29 #include <time.h>
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
60  enum eXosip_ss {
65  };
66 
78  };
79 
95  };
96 
97 #ifndef MINISIZE
98 
110  int eXosip_subscribe_build_initial_request (struct eXosip_t *excontext, osip_message_t ** subscribe, const char *to, const char *from, const char *route, const char *event, int expires);
111 
118  int eXosip_subscribe_send_initial_request (struct eXosip_t *excontext, osip_message_t * subscribe);
119 
127  int eXosip_subscribe_build_refresh_request (struct eXosip_t *excontext, int did, osip_message_t ** sub);
128 
136  int eXosip_subscribe_send_refresh_request (struct eXosip_t *excontext, int did, osip_message_t * sub);
137 
144  int eXosip_subscribe_remove (struct eXosip_t *excontext, int did);
145 
162  int eXosip_insubscription_build_answer (struct eXosip_t *excontext, int tid, int status, osip_message_t ** answer);
163 
172  int eXosip_insubscription_send_answer (struct eXosip_t *excontext, int tid, int status, osip_message_t * answer);
173 
182  int eXosip_insubscription_build_request (struct eXosip_t *excontext, int did, const char *method, osip_message_t ** request);
183 
193  int eXosip_insubscription_build_notify (struct eXosip_t *excontext, int did, int subscription_status, int subscription_reason, osip_message_t ** request);
194 
202  int eXosip_insubscription_send_request (struct eXosip_t *excontext, int did, osip_message_t * request);
203 
210  int eXosip_insubscription_remove (struct eXosip_t *excontext, int did);
211 
212 
213 #endif
214 
218 #ifdef __cplusplus
219 }
220 #endif
221 #endif
out to lunch status
Definition: eX_subscribe.h:93
Structure for SIP Message (REQUEST and RESPONSE).
Definition: osip_message.h:55
int eXosip_insubscription_send_request(struct eXosip_t *excontext, int did, osip_message_t *request)
Send a request within subscription.
unknown state for subscription
Definition: eX_subscribe.h:85
giveup for subscription-state
Definition: eX_subscribe.h:76
active subscription-state
Definition: eX_subscribe.h:63
int eXosip_insubscription_remove(struct eXosip_t *excontext, int did)
Remove incoming subscription context.
deactivated for subscription-state
Definition: eX_subscribe.h:72
away status
Definition: eX_subscribe.h:91
int eXosip_subscribe_remove(struct eXosip_t *excontext, int did)
Remove outgoing subscription context.
on the phone status
Definition: eX_subscribe.h:92
eXosip_ss
Structure for subscription status.
Definition: eX_subscribe.h:60
terminated subscription-state
Definition: eX_subscribe.h:64
busy status
Definition: eX_subscribe.h:88
pending subscription-state
Definition: eX_subscribe.h:62
rejected for subscription-state
Definition: eX_subscribe.h:74
int eXosip_subscribe_build_initial_request(struct eXosip_t *excontext, osip_message_t **subscribe, const char *to, const char *from, const char *route, const char *event, int expires)
Build a default initial SUBSCRIBE request.
be right back status
Definition: eX_subscribe.h:89
closed status
Definition: eX_subscribe.h:94
int eXosip_insubscription_send_answer(struct eXosip_t *excontext, int tid, int status, osip_message_t *answer)
Send answer for an SUBSCRIBE request.
unknown subscription-state
Definition: eX_subscribe.h:61
noresource for subscription-state
Definition: eX_subscribe.h:77
subscription not yet accepted
Definition: eX_subscribe.h:86
eXosip_ss_status
Structure for notification status.
Definition: eX_subscribe.h:84
int eXosip_insubscription_build_answer(struct eXosip_t *excontext, int tid, int status, osip_message_t **answer)
Build answer for an SUBSCRIBE request.
int eXosip_subscribe_build_refresh_request(struct eXosip_t *excontext, int did, osip_message_t **sub)
Build a default new SUBSCRIBE message.
timeout for subscription-state
Definition: eX_subscribe.h:75
int eXosip_insubscription_build_request(struct eXosip_t *excontext, int did, const char *method, osip_message_t **request)
Build a request within subscription.
probation for subscription-state
Definition: eX_subscribe.h:73
int eXosip_insubscription_build_notify(struct eXosip_t *excontext, int did, int subscription_status, int subscription_reason, osip_message_t **request)
Build a NOTIFY request within subscription.
oSIP SIP Parser additionnal Routines
online status
Definition: eX_subscribe.h:87
eXosip_ss_reason
Structure for subscription reason.
Definition: eX_subscribe.h:71
int eXosip_subscribe_send_refresh_request(struct eXosip_t *excontext, int did, osip_message_t *sub)
Send a new SUBSCRIBE request.
int eXosip_subscribe_send_initial_request(struct eXosip_t *excontext, osip_message_t *subscribe)
Send an initial SUBSCRIBE request.