3 Copyright (C) 2010 Simon MORLAT (simon.morlat@free.fr)
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program 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.
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.
24 #include <eXosip2/eXosip.h>
28 sdp_message_t *media_description_to_sdp(const SalMediaDescription *sal);
29 int sdp_to_media_description(sdp_message_t *sdp, SalMediaDescription *desc);
32 SalCallbacks callbacks;
33 MSList *calls; /*MSList of SalOp */
34 MSList *registers;/*MSList of SalOp */
35 MSList *out_subscribes;/*MSList of SalOp */
36 MSList *in_subscribes;/*MSList of SalOp */
37 MSList *pending_auths;/*MSList of SalOp */
38 MSList *other_transactions; /*MSList of SalOp */
43 bool_t one_matching_codec;
58 SalMediaDescription *result;
59 sdp_message_t *sdp_answer;
60 eXosip_event_t *pending_auth;
61 osip_call_id_t *call_id; /*used for out of calls transaction in order
62 to retrieve the operation when receiving a response*/
65 bool_t supports_session_timers;
68 bool_t masquerade_via;
69 bool_t auto_answer_asked;
71 const SalAuthInfo *auth_info;
74 void sal_remove_out_subscribe(Sal *sal, SalOp *op);
75 void sal_remove_in_subscribe(Sal *sal, SalOp *op);
76 void sal_add_other(Sal *sal, SalOp *op, osip_message_t *request);
78 void sal_exosip_subscription_recv(Sal *sal, eXosip_event_t *ev);
79 void sal_exosip_subscription_answered(Sal *sal,eXosip_event_t *ev);
80 void sal_exosip_notify_recv(Sal *sal,eXosip_event_t *ev);
81 void sal_exosip_subscription_closed(Sal *sal,eXosip_event_t *ev);
83 void sal_exosip_in_subscription_closed(Sal *sal, eXosip_event_t *ev);
84 SalOp * sal_find_out_subscribe(Sal *sal, int sid);
85 SalOp * sal_find_in_subscribe(Sal *sal, int nid);
86 void sal_exosip_fix_route(SalOp *op);
88 void _osip_list_set_empty(osip_list_t *l, void (*freefunc)(void*));