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
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
On Wednesday 26 May 2010, dotnetdub wrote:
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 : [..]
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..
Documentation for this command can be found here: http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:1.5.x#strip_int
Regards,
Henning
In fact I want to send 1941 from Mitel IPBX to kamailio and kamailio return only 941 in the cisco call manager, that's why I say that kamailio absorbs the number one.
Cisco Call Manager<--------->kamailio<----------->IPBX Mitel kamailio send 941<--receives 1941 and absorbs the 1<---send 1941 to kamailio
Is this most clear??
Henning Westerholt wrote:
On Wednesday 26 May 2010, dotnetdub wrote:
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 : [..]
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..
Documentation for this command can be found here: http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:1.5.x#strip_int
Regards,
Henning
Thank you very much. It works with strip(1);
best regards
Henning Westerholt wrote:
On Wednesday 26 May 2010, dotnetdub wrote:
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 : [..]
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..
Documentation for this command can be found here: http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:1.5.x#strip_int
Regards,
Henning