Browse code

Switch to the sr convention of calling t_request_within

Jan Janak authored on 17/03/2009 20:23:04
Showing 1 changed files
... ...
@@ -1452,6 +1452,7 @@ int send_notify_request(subs_t* subs, subs_t * watcher_subs,
1452 1452
 	int result= 0;
1453 1453
     c_back_param *cb_param= NULL;
1454 1454
 	str* final_body= NULL;
1455
+	uac_req_t uac_r;
1455 1456
 	
1456 1457
 	LM_DBG("dialog info:\n");
1457 1458
 	printf_subs(subs);
... ...
@@ -1564,14 +1565,9 @@ jump_over_body:
1564 1565
 		goto error;	
1565 1566
 	}	
1566 1567
 
1567
-	result = tmb.t_request_within
1568
-		(&met,              /* method*/
1569
-		&str_hdr,           /* extra headers*/
1570
-		notify_body,        /* body*/
1571
-		td,                 /* dialog structure*/
1572
-		p_tm_callback,      /* callback function*/
1573
-		(void*)cb_param);   /* callback parameter*/
1574
-
1568
+	set_uac_req(&uac_r, &met, &str_hdr, notify_body, td, 0, p_tm_callback,
1569
+				(void*)cb_param);
1570
+	result = tmb.t_request_within(&uac_r);
1575 1571
 	if(result< 0)
1576 1572
 	{
1577 1573
 		LM_ERR("in function tmb.t_request_within\n");