Module: sip-router
Branch: master
Commit: 7a1a5ffff6a6dbf89f42ccb9f15d588d8bfe62d0
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7a1a5ff…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sat Feb 5 07:08:53 2011 +0100
tm: free parsed body for faked requests
- if sdp body was parsed in a failure route, the structure was left
uncleared
- reported by Bayan Towfiq, credits for troubleshooting access to live
server
- credits also to Ovidiu Sas for assistance with sdp parser
---
modules/tm/t_reply.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/tm/t_reply.c b/modules/tm/t_reply.c
index 382244f..c18c716 100644
--- a/modules/tm/t_reply.c
+++ b/modules/tm/t_reply.c
@@ -909,6 +909,12 @@ void free_faked_req(struct sip_msg *faked_req, struct cell *t)
hdr->parsed = 0;
}
}
+ /* free parsed body added by failure handlers */
+ if (faked_req->body) {
+ if(faked_req->body->free)
+ faked_req->body->free(&faked_req->body);
+ faked_req->body = 0;
+ }
}
Hi Kamailio Users,
I'm trying to use LCR module in Kamailio 3.1.1 and I', having some
problems with this function (load_gws).
I'm my kamailio.cfg , I have this route:
# SEARCH DEST
route[NUMBER] {
xlog("L_ALERT", "NUMBER IS $rU \n");
if ($rU=~"^55211020[0-9]{4}$") { # IS MY USERS
route(LDAP_NUM2USER);
} else { # NOT IS MY USER
if (!load_gws(1,$rU)) {
xlog("L_ALERT", "LOAD LOCAL GW FAILED $rU \n");
route(DSER);
return;
} else {
xlog("L_ALERT", "LOAD GW DEBUG $avp(i:709)\n");
} ;
if (!next_gw()) {
xlog("L_ALERT", "NEXT LOCAL GW FAILED\n");
sl_send_reply("503", "Service not available -
No gateways");
return;
};
setflag(29);
route(RELAY);
return;
};
};
When my call arrive to load_gws, I have this problem:
(2198) ERROR: <core> [action.c:1158]: runtime fixup failed for load_gws param 2
(2198) ERROR: <core> [action.c:1511]: run action error at:
/etc/kamailio/kamailio.cfg:472
I already saw the Kamailio Code and this error doesn't make sense.
Would somebody Help me with it?
Very thanks,
Thiago Maluf.
----------------------------------------------------------------
Thiago Maluf Resende
Tel: +55 21 9700-9113
e-mail: malufrj(a)gmail.com