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_CALL_H__
27
30 #include <time.h>
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35
62 struct eXosip_call_t;
63
72
81
93
101
111
120
129
139
148
157
166
176
185
195
205
215
224
233
243
244
252
256 #ifdef __cplusplus
257 }
258 #endif
259 #endif
Structure for SIP Message (REQUEST and RESPONSE).
int eXosip_call_build_request(struct eXosip_t *excontext, int did, const char *method, osip_message_t **request)
Build a default request within a call.
int eXosip_call_send_prack(struct eXosip_t *excontext, int tid, osip_message_t *prack)
Send a PRACK for invite.
int eXosip_call_set_reference(struct eXosip_t *excontext, int id, void *reference)
Set a new application context for an existing call.
int eXosip_call_send_request(struct eXosip_t *excontext, int did, osip_message_t *request)
send the request within call.
int eXosip_call_build_refer(struct eXosip_t *excontext, int did, const char *refer_to, osip_message_t **request)
Build a default REFER for a call transfer.
int eXosip_call_terminate(struct eXosip_t *excontext, int cid, int did)
Terminate a call.
int eXosip_call_build_prack(struct eXosip_t *excontext, int tid, osip_message_t **prack)
Build a PRACK for invite.
int eXosip_call_find_by_replaces(struct eXosip_t *excontext, char *replaces)
Return did (or cid) for the replace header.
int eXosip_call_build_initial_invite(struct eXosip_t *excontext, osip_message_t **invite, const char *to, const char *from, const char *route, const char *subject)
Build a default INVITE message for a new call.
int eXosip_call_send_ack(struct eXosip_t *excontext, int did, osip_message_t *ack)
Send the ACK for the 200ok received.
void * eXosip_call_get_reference(struct eXosip_t *excontext, int cid)
Get the application context pointer for an existing call.
int eXosip_call_build_ack(struct eXosip_t *excontext, int did, osip_message_t **ack)
Build a default ACK for a 200ok received.
int eXosip_call_build_notify(struct eXosip_t *excontext, int did, int subscription_status, osip_message_t **request)
Build a default NOTIFY within a call.
int eXosip_call_send_initial_invite(struct eXosip_t *excontext, osip_message_t *invite)
Initiate a call.
int eXosip_call_get_referto(struct eXosip_t *excontext, int did, char *refer_to, size_t refer_to_len)
Get Refer-To header with Replace parameter from dialog.
int eXosip_call_send_answer(struct eXosip_t *excontext, int tid, int status, osip_message_t *answer)
Send Answer for invite.
int eXosip_call_build_options(struct eXosip_t *excontext, int did, osip_message_t **request)
Build a default OPTIONS within a call.
oSIP SIP Parser additionnal Routines
int eXosip_call_build_info(struct eXosip_t *excontext, int did, osip_message_t **request)
Build a default INFO within a call.
int eXosip_call_build_answer(struct eXosip_t *excontext, int tid, int status, osip_message_t **answer)
Build default Answer for request.
int eXosip_call_build_update(struct eXosip_t *excontext, int did, osip_message_t **request)
Build a default UPDATE within a call.