<br><br><div class="gmail_quote">On 26 May 2010 15:49, alexis heron <span dir="ltr">&lt;<a href="mailto:alexis.heron@crihan.fr">alexis.heron@crihan.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

hello<br>
<br>
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 :<br>
<br>
 if ($rU=~&quot;^1+941$&quot;) {<br>
                log(1, &quot;kamailio vers CCM 9xx&quot;);<br>
                route(10);<br>
        }<br>
<br></blockquote><div><br></div><div><br></div><div>I&#39;m not sure exactly what you are asking, I think by absorb you mean strip?</div><div><br></div><div>If so you just need to add</div><div><br></div><div>Strip(1); to the above statement..</div>

<div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
route[10] {<br>
        log(1, &quot;In route[10]&quot;);<br>
<br>
        rewritehostport(&quot;<a href="http://142.145.98.138:5060" target="_blank">142.145.98.138:5060</a>&quot;);<br>
<br>
        append_hf(&quot;P-hint: redirection CCM\r\n&quot;);<br>
<br>
        xlog(&quot;L_INFO&quot;, &quot;$rm from $fu to $tu&quot;);<br>
<br>
        t_on_failure(&quot;2&quot;);<br>
<br>
        if (!t_relay())<br>
        {<br>
                sl_reply_error();<br>
        };<br>
exit;<br>
}<br>
<br>
Can someone help me??<br>
best regards<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br>