00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef _UAC_H
00036 #define _UAC_H
00037
00038 #include <stdio.h>
00039 #include "../../str.h"
00040 #include "dlg.h"
00041 #include "t_hooks.h"
00042
00043
00044 #define DEFAULT_CSEQ 10
00045
00046
00047 extern int pass_provisional_replies;
00048
00049
00050
00051
00052
00053 typedef int (*reqwith_t)(str* m, str* h, str* b, dlg_t* d, transaction_cb c, void* cp);
00054 typedef int (*reqout_t)(str* m, str* t, str* f, str* h, str* b, dlg_t** d, transaction_cb c, void* cp);
00055 typedef int (*req_t)(str* m, str* ruri, str* t, str* f, str* h, str* b, str *oburi, transaction_cb c, void* cp);
00056
00057
00058
00059
00060
00061 void generate_fromtag(str* tag, str* callid);
00062
00063
00064
00065
00066
00067 int uac_init(void);
00068
00069
00070
00071
00072
00073 int t_uac(str* method, str* headers, str* body, dlg_t* dialog, transaction_cb cb, void* cbp);
00074
00075
00076
00077
00078
00079 int req_within(str* m, str* h, str* b, dlg_t* d, transaction_cb c, void* cp);
00080
00081
00082
00083
00084
00085 int req_outside(str* m, str* t, str* f, str* h, str* b, dlg_t** d, transaction_cb c, void* cp);
00086
00087
00088
00089
00090
00091 int request(str* m, str* ruri, str* to, str* from, str* h, str* b, str *oburi, transaction_cb c, void* cp);
00092
00093
00094 #endif