BTW, I don't know if I misused cvs when updating but I can not compile eval module because it includes uuid.h, which I have not been able to find anywhere...<br><br>Samuel.<br><br><div><span class="gmail_quote">2006/7/20, Michal Matyska &lt;
<a href="mailto:michal@iptel.org">michal@iptel.org</a>&gt;:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Well, with the CVS head version, you can use eval module to do that....<br><br>eval_push(&quot;<a href="mailto:x:%@from.uri.user">x:%@from.uri.user</a>&quot;); # get from uri username and put to stack<br>eval_push(&quot;1&quot;); #starting point
<br>eval_push{&quot;2&quot;); #length<br>eval_oper(&quot;substr&quot;);<br><br>then you can use the result as @eval.get[0] e.g.<br><br>if (@eval.get[0]==&quot;55&quot;) {...}<br><br>Michal<br><br>On Thu, Jul 20, 2006 at 11:46:20AM -0500, Teran Jesus wrote:
<br>&gt; Does anybody have an answer to my questions, i really apreciate any help.<br>&gt;<br>&gt; -----Original Message-----<br>&gt; From: Teran Jesus [mailto:<a href="mailto:jteran@mcmtelecom.com.mx">jteran@mcmtelecom.com.mx
</a>]<br>&gt; Sent: Miércoles, 19 de Julio de 2006 11:33 a.m.<br>&gt; To: <a href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</a><br>&gt; Subject: [SPAM header] - [Serusers] Number registered - Email found in
<br>&gt; subject<br>&gt;<br>&gt;<br>&gt; Hello<br>&gt; I want to validate and get the 2 first digits of the telephone number<br>&gt; registered, if i have a ip phone registered with a number like this<br>&gt; 5556000000, when i recieve a INVITE from this number, i want to get 55 and
<br>&gt; validate the number, are there something to do this?<br>&gt;<br>&gt; Can you help me?<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Serusers mailing list<br>&gt; <a href="mailto:Serusers@lists.iptel.org">
Serusers@lists.iptel.org</a><br>&gt; <a href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a><br>&gt; _______________________________________________<br>&gt; Serusers mailing list
<br>&gt; <a href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a><br>&gt; <a href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a><br>_______________________________________________
<br>Serusers mailing list<br><a href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a><br><a href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a><br></blockquote>
</div><br>