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 <
<a href="mailto:michal@iptel.org">michal@iptel.org</a>>:</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("<a href="mailto:x:%@from.uri.user">x:%@from.uri.user</a>"); # get from uri username and put to stack<br>eval_push("1"); #starting point
<br>eval_push{"2"); #length<br>eval_oper("substr");<br><br>then you can use the result as @eval.get[0] e.g.<br><br>if (@eval.get[0]=="55") {...}<br><br>Michal<br><br>On Thu, Jul 20, 2006 at 11:46:20AM -0500, Teran Jesus wrote:
<br>> Does anybody have an answer to my questions, i really apreciate any help.<br>><br>> -----Original Message-----<br>> From: Teran Jesus [mailto:<a href="mailto:jteran@mcmtelecom.com.mx">jteran@mcmtelecom.com.mx
</a>]<br>> Sent: Miércoles, 19 de Julio de 2006 11:33 a.m.<br>> To: <a href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</a><br>> Subject: [SPAM header] - [Serusers] Number registered - Email found in
<br>> subject<br>><br>><br>> Hello<br>> I want to validate and get the 2 first digits of the telephone number<br>> registered, if i have a ip phone registered with a number like this<br>> 5556000000, when i recieve a INVITE from this number, i want to get 55 and
<br>> validate the number, are there something to do this?<br>><br>> Can you help me?<br>><br>><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>> _______________________________________________<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>_______________________________________________
<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>