Browse code

bug_fix: protolization of t_uac_dlg use completed

Jiri Kuthan authored on 28/02/2003 21:58:25
Showing 1 changed files
... ...
@@ -24,6 +24,10 @@
24 24
  * You should have received a copy of the GNU General Public License 
25 25
  * along with this program; if not, write to the Free Software 
26 26
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
+ *
28
+ * History:
29
+ * ----------
30
+ * 2003-02-28 protocolization of t_uac_dlg completed (jiri)
27 31
  */
28 32
 
29 33
 
... ...
@@ -53,41 +57,12 @@ typedef int (*tuac_f)(str *msg_type, str *dst, str *headers,str *body,
53 57
 	str *from, transaction_cb completion_cb, void *cbp,
54 58
 	struct dialog *dlg );
55 59
 
56
-typedef int (*tuacdlg_f)(str* msg_type, str* dst, str* ruri, str* to,
60
+typedef int (*tuacdlg_f)(str* msg_type, str* dst, int proto, str* ruri, str* to,
57 61
 			 str* from, str* totag, str* fromtag, int* cseq,
58 62
 			 str* callid, str* headers, str* body,
59 63
 			 transaction_cb completion_cb, void* cbp
60 64
 			 );
61 65
 
62
-/* transactional UAC; look for an example of usage at fifo_uac */
63
-int t_uac( 
64
-	/* MESSAGE, OPTIONS, etc. */
65
-	str *msg_type,  
66
-	/* sip:foo@bar, will be put in r-uri and To */
67
-	str *dst,	
68
-	int proto, 
69
-	/* all other header fields separated by CRLF, including 
70
-	   Content-type if body attached, excluding HFs
71
-	   generated by UAC: To, Content_length, CSeq, Call-ID, Via, From
72
-		(From is taken from config option)
73
-	*/
74
-	str *headers, 
75
-	/* body of the message if any */
76
-	str *body,
77
-	str *from, /* optional value to be included in From *without* tag;
78
-	              if 0, then config value uac_from will be used
79
-	           */
80
-	/* completion callback (optional) */
81
-	transaction_cb completion_cb,
82
-	/* callback parameter  -- it MUST be in shmem and it MAY NOT be
83
-	   released -- TM does release the fragment; (actually, we should
84
-	   do a favor to developers in cases like these and check the
85
-	   pointer ranges -- good idea for a de-luxe release)
86
-	*/
87
-	void *cbp,
88
-	struct dialog *dlg );
89
-
90
-
91 66
 /* look at uac.c for usage guidelines */
92 67
 /*
93 68
  * Send a request within a dialog