2
0
Эх сурвалжийг харах

*** empty log message ***

Bogdan-Andrei Iancu 24 жил өмнө
parent
commit
d2dfebc930

+ 2 - 2
modules/tm/sip_msg.c

@@ -6,7 +6,7 @@
 
 struct sip_msg* sip_msg_cloner( struct sip_msg *org_msg )
 {
-    struct sip_msg   *new_msg=NULL;
+    struct sip_msg   *new_msg=0;
     struct hdr_field  *header, *last_hdr, *new_hdr;
 
     /* clones the sip_msg structure */
@@ -132,7 +132,7 @@ struct sip_msg* sip_msg_cloner( struct sip_msg *org_msg )
 error:
 	sip_msg_free( new_msg );
 	sh_free( new_msg );
-	return NULL;
+	return 0;
 
 }
 

+ 1 - 0
modules/tm/t_funcs.c

@@ -592,6 +592,7 @@ int t_send_reply(  struct sip_msg* p_msg , unsigned int code , char * text )
    }
 
    buf = build_res_buf_from_sip_req( code , text , T->inbound_request , &len );
+
    if (!buf)
    {
       DBG("DEBUG: t_send_reply: response building failed\n");

+ 6 - 2
modules/tm/tm.c

@@ -36,7 +36,8 @@ static struct module_exports nm_exports= {
 				"t_forward_def",
 				"t_forward_uri",
 				"t_send_reply",
-				"t_retransmit_reply"
+				"t_retransmit_reply",
+				"t_release"
 			},
 	(cmd_function[]){
 					t_add_transaction,
@@ -46,6 +47,7 @@ static struct module_exports nm_exports= {
 					t_forward_uri,
 					w_t_send_reply,
 					t_retransmit_reply,
+					t_put_on_wait
 					},
 	(int[]){
 				0,
@@ -54,6 +56,7 @@ static struct module_exports nm_exports= {
 				1,
 				0,
 				2,
+				0,
 				0
 			},
 	(fixup_function[]){
@@ -63,9 +66,10 @@ static struct module_exports nm_exports= {
 				fixup_t_forward_def,
 				0,
 				fixup_t_send_reply,
+				0,
 				0
 		},
-	7,
+	8,
 	(response_function) t_on_reply_received
 };
 

+ 1 - 1
t_debug.cfg

@@ -22,7 +22,7 @@ route{
 	if ( t_lookup_request()) {
 		if ( method=="ACK" )	{
 			log("SER: ACK received -> t_release\n");
-			t_put_on_wait();
+			t_release();
 		} else {
 			t_retransmit_reply();
 			log("SER: yet another annoying retranmission\n");