Browse code

t_uac_dlg can be loaded using tm_load, will be needed by presence server and voicemail

Jan Janak authored on 14/01/2003 15:00:01
Showing 3 changed files
... ...
@@ -51,6 +51,10 @@ int load_tm( struct tm_binds *tmb)
51 51
 		LOG( L_ERR, LOAD_ERROR "'t_uac' not found\n");
52 52
 		return -1;
53 53
 	}
54
+	if (!(tmb->t_uac_dlg=(tuacdlg_f)find_export(T_UAC_DLG, NO_SCRIPT)) ) {
55
+		LOG( L_ERR, LOAD_ERROR "'t_uac_dlg' not found\n");
56
+		return -1;
57
+	}
54 58
 	if (!(tmb->t_reply=(treply_f)find_export(T_REPLY, 2)) ) {
55 59
 		LOG( L_ERR, LOAD_ERROR "'t_reply' not found\n");
56 60
 		return -1;
... ...
@@ -41,6 +41,7 @@
41 41
 #define T_RELAY_TO "t_relay_to"
42 42
 #define T_RELAY "t_relay"
43 43
 #define T_UAC "t_uac"
44
+#define T_UAC_DLG "t_uac_dlg"
44 45
 #define T_REPLY "t_reply"
45 46
 #define T_REPLY_UNSAFE "t_reply_unsafe"
46 47
 #define T_FORWARD_NONACK "t_forward_nonack"
... ...
@@ -52,6 +53,7 @@ struct tm_binds {
52 52
 	cmd_function	t_relay_to;
53 53
 	cmd_function 	t_relay;
54 54
 	tuac_f			t_uac;
55
+	tuacdlg_f               t_uac_dlg;
55 56
 	treply_f		t_reply;
56 57
 	treply_f		t_reply_unsafe;
57 58
 	tfwd_f			t_forward_nonack;
... ...
@@ -59,6 +59,12 @@ typedef int (*tuac_f)(str *msg_type, str *dst, str *headers,str *body,
59 59
 	str *from, transaction_cb completion_cb, void *cbp,
60 60
 	struct dialog *dlg );
61 61
 
62
+typedef int (*tuacdlg_f)(str* msg_type, str* dst, str* ruri, str* to,
63
+			 str* from, str* totag, str* fromtag, int cseq,
64
+			 str* callid, str* headers, str* body,
65
+			 transaction_cb completion_cb, void* cbp
66
+			 );
67
+
62 68
 /* transactional UAC; look for an example of usage at fifo_uac */
63 69
 int t_uac( 
64 70
 	/* MESSAGE, OPTIONS, etc. */