@@ -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;
}
@@ -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");
@@ -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,
2,
+ 0,
0
(fixup_function[]){
@@ -63,9 +66,10 @@ static struct module_exports nm_exports= {
fixup_t_forward_def,
fixup_t_send_reply,
- 7,
+ 8,
(response_function) t_on_reply_received
};
@@ -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");