On 26 May 2010 15:49, alexis heron alexis.heron@crihan.fr wrote:
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); }
I'm not sure exactly what you are asking, I think by absorb you mean strip?
If so you just need to add
Strip(1); to the above statement..
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
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users