hello
I want to absorb a number with kamailio just to make out only three but
I can not. In fact I send 1941 kamailio and i spring 941 with kamailio
so I absorb a number. Here is how I :
if ($rU=~"^1+941$") {
log(1, "kamailio vers CCM 9xx");
route(10);
}
route[10] {
log(1, "In route[10]");
rewritehostport("142.145.98.138:5060");
append_hf("P-hint: redirection CCM\r\n");
xlog("L_INFO", "$rm from $fu to $tu");
t_on_failure("2");
if (!t_relay())
{
sl_reply_error();
};
exit;
}
Can someone help me??
best regards