2
The osipua library is a library based on oSIP that implements CallLeg and User Agent
4
Copyright (C) 2001 Simon MORLAT simon.morlat@free.fr
5
Aymeric MOIZARD jack@atosc.org
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) any later version.
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Lesser General Public License for more details.
16
You should have received a copy of the GNU Lesser General Public
17
License along with this library; if not, write to the Free Software
18
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
#include <osip/osip.h>
22
#include <osip/smsgtypes.h>
23
#include "osipdialog.h"
25
transaction_t * ua_transaction_new(OsipDialog *call, sip_t *msg);
28
#define ua_transaction_get_dialog(trn) ((OsipDialog*)((trn)->your_instance))
30
void ua_transaction_set_incoming_invite_tr(transaction_t *trn,OsipDialog *call);
31
void ua_transaction_set_outgoing_invite_tr(transaction_t *trn,OsipDialog *call);
32
void ua_transaction_set_incoming_bye_tr(transaction_t *trn,OsipDialog *call);
33
void ua_transaction_set_outgoing_bye_tr(transaction_t *trn,OsipDialog *call);
34
void ua_transaction_set_outgoing_register_tr(transaction_t *trn,OsipDialog *call);
35
void ua_transaction_set_outgoing_cancel_tr(transaction_t *trn,OsipDialog *call);
36
void ua_transaction_set_incoming_cancel_tr(transaction_t *trn,OsipDialog *call);
38
void ua_transaction_free(transaction_t *transaction);
40
void ua_transaction_set_destination(transaction_t *trn,char *destination, int port);
42
int ua_transaction_get_destination(transaction_t *trn, char **destination, int *port);
44
/* execute a transaction outside the udp thread context */
45
void ua_transaction_execute(transaction_t *trn, sipevent_t *ev);