Attachment here!
From: sr-users-bounces(a)lists.sip-router.org
[mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Fatima
Chahrour~Vanrise Support
Sent: Wednesday, August 08, 2012 6:32 PM
To: 'SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
Mailing List'
Subject: [SR-Users] Kamailio LCR Module test scenario
Dears,
Am trying to apply Kamailio LCR feature lab test, after am finally able to
run Kamailio with no errors, am not able to reach my target clarified in
this following scenario:
Call 961312345 - route the call to 192.x.x.15 in first place and if failed
route the call to 192.x.x.10. I applied needed configuration in lcr tables
(attached image) and the routing script is:
route{
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
};
if (msg:len >= 2048 ) {
sl_send_reply("513", "Message too big");
exit;
};
if (!method=="REGISTER")
record_route();
if (loose_route()) {
append_hf("P-hint: rr-enforced\r\n");
route(1);
};
if (!uri==myself) {
append_hf("P-hint: outbound\r\n");
route(1);
};
if (is_method("INVITE"))
{
if (!load_gws(1)) {
sl_send_reply("503", "Unable to load gateways");
exit;
}
}
if (uri==myself) {
if (method=="REGISTER") {
save("location");
exit;
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
};
# native SIP destinations are handled using ourUSRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
exit;
};
append_hf("P-hint: usrloc applied\r\n");
};
route(1);
}
route[1] {
if (!t_relay()) {
sl_reply_error();
};
exit;
}
BUT when attempting a call am getting the message 'Call failed: Not found .'
Any help to achieve the successful call using above scenario is highly
appreciated.
Thanks in advance.
F.Chahrour