[SR-Users] prefix with kamailio
dotnetdub
dotnetdub at gmail.com
Wed May 26 16:57:18 CEST 2010
On 26 May 2010 15:49, alexis heron <alexis.heron at 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100526/86148ad0/attachment.htm>
More information about the sr-users
mailing list