Does anybody have an answer to my questions, i really apreciate any help.
-----Original Message----- From: Teran Jesus [mailto:jteran@mcmtelecom.com.mx] Sent: Miércoles, 19 de Julio de 2006 11:33 a.m. To: serusers@lists.iptel.org Subject: [SPAM header] - [Serusers] Number registered - Email found in subject
Hello I want to validate and get the 2 first digits of the telephone number registered, if i have a ip phone registered with a number like this 5556000000, when i recieve a INVITE from this number, i want to get 55 and validate the number, are there something to do this?
Can you help me?
_______________________________________________ Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Well, with the CVS head version, you can use eval module to do that....
eval_push("x:%@from.uri.user"); # get from uri username and put to stack eval_push("1"); #starting point eval_push{"2"); #length eval_oper("substr");
then you can use the result as @eval.get[0] e.g.
if (@eval.get[0]=="55") {...}
Michal
On Thu, Jul 20, 2006 at 11:46:20AM -0500, Teran Jesus wrote:
Does anybody have an answer to my questions, i really apreciate any help.
-----Original Message----- From: Teran Jesus [mailto:jteran@mcmtelecom.com.mx] Sent: Miércoles, 19 de Julio de 2006 11:33 a.m. To: serusers@lists.iptel.org Subject: [SPAM header] - [Serusers] Number registered - Email found in subject
Hello I want to validate and get the 2 first digits of the telephone number registered, if i have a ip phone registered with a number like this 5556000000, when i recieve a INVITE from this number, i want to get 55 and validate the number, are there something to do this?
Can you help me?
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers _______________________________________________ Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
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...
Samuel.
2006/7/20, Michal Matyska michal@iptel.org:
Well, with the CVS head version, you can use eval module to do that....
eval_push("x:%@from.uri.user"); # get from uri username and put to stack eval_push("1"); #starting point eval_push{"2"); #length eval_oper("substr");
then you can use the result as @eval.get[0] e.g.
if (@eval.get[0]=="55") {...}
Michal
On Thu, Jul 20, 2006 at 11:46:20AM -0500, Teran Jesus wrote:
Does anybody have an answer to my questions, i really apreciate any
help.
-----Original Message----- From: Teran Jesus [mailto:jteran@mcmtelecom.com.mx] Sent: Miércoles, 19 de Julio de 2006 11:33 a.m. To: serusers@lists.iptel.org Subject: [SPAM header] - [Serusers] Number registered - Email found in subject
Hello I want to validate and get the 2 first digits of the telephone number registered, if i have a ip phone registered with a number like this 5556000000, when i recieve a INVITE from this number, i want to get 55
and
validate the number, are there something to do this?
Can you help me?
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers _______________________________________________ Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
You, should find it in you OS package repository...
under debian install uuid-dev in the RPM world it is commonly packaged in e2fsprogs-devel
Michal
On Fri, Jul 21, 2006 at 09:38:16AM +0200, samuel wrote:
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...
Samuel.
2006/7/20, Michal Matyska michal@iptel.org:
Well, with the CVS head version, you can use eval module to do that....
eval_push("x:%@from.uri.user"); # get from uri username and put to stack eval_push("1"); #starting point eval_push{"2"); #length eval_oper("substr");
then you can use the result as @eval.get[0] e.g.
if (@eval.get[0]=="55") {...}
Michal
On Thu, Jul 20, 2006 at 11:46:20AM -0500, Teran Jesus wrote:
Does anybody have an answer to my questions, i really apreciate any
help.
-----Original Message----- From: Teran Jesus [mailto:jteran@mcmtelecom.com.mx] Sent: Miércoles, 19 de Julio de 2006 11:33 a.m. To: serusers@lists.iptel.org Subject: [SPAM header] - [Serusers] Number registered - Email found in subject
Hello I want to validate and get the 2 first digits of the telephone number registered, if i have a ip phone registered with a number like this 5556000000, when i recieve a INVITE from this number, i want to get 55
and
validate the number, are there something to do this?
Can you help me?
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers _______________________________________________ Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Uuups... I thought it was some dependency within the SER repository. I've just downloaded uuid-dev and everything seems to work....not tryed yet the functionality itself but I guess it's ok.
Thanks a lot! Samuel.
2006/7/21, Michal Matyska michal@iptel.org:
You, should find it in you OS package repository...
under debian install uuid-dev in the RPM world it is commonly packaged in e2fsprogs-devel
Michal
On Fri, Jul 21, 2006 at 09:38:16AM +0200, samuel wrote:
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...
Samuel.
2006/7/20, Michal Matyska michal@iptel.org:
Well, with the CVS head version, you can use eval module to do that....
eval_push("x:%@from.uri.user"); # get from uri username and put to
stack
eval_push("1"); #starting point eval_push{"2"); #length eval_oper("substr");
then you can use the result as @eval.get[0] e.g.
if (@eval.get[0]=="55") {...}
Michal
On Thu, Jul 20, 2006 at 11:46:20AM -0500, Teran Jesus wrote:
Does anybody have an answer to my questions, i really apreciate any
help.
-----Original Message----- From: Teran Jesus [mailto:jteran@mcmtelecom.com.mx] Sent: Miércoles, 19 de Julio de 2006 11:33 a.m. To: serusers@lists.iptel.org Subject: [SPAM header] - [Serusers] Number registered - Email found
in
subject
Hello I want to validate and get the 2 first digits of the telephone number registered, if i have a ip phone registered with a number like this 5556000000, when i recieve a INVITE from this number, i want to get
55
and
validate the number, are there something to do this?
Can you help me?
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers _______________________________________________ Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hi,
If you just want to check for a fixed prefix, you might get away easier with:
if(@from.uri.host=~"55.*") {...}
WL.
Teran Jesus wrote:
Does anybody have an answer to my questions, i really apreciate any help.
-----Original Message----- From: Teran Jesus [mailto:jteran@mcmtelecom.com.mx] Sent: Miércoles, 19 de Julio de 2006 11:33 a.m. To: serusers@lists.iptel.org Subject: [SPAM header] - [Serusers] Number registered - Email found in subject
Hello I want to validate and get the 2 first digits of the telephone number registered, if i have a ip phone registered with a number like this 5556000000, when i recieve a INVITE from this number, i want to get 55 and validate the number, are there something to do this?
Can you help me?
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers _______________________________________________ Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers