[Serusers] enum module error ser2.0

Michal Matyska michal at iptel.org
Wed Feb 28 21:53:23 CET 2007


On Wed, 2007-02-28 at 16:05 +0100, tzieleniewski wrote:
> Hi!
> 
> I was trying to utilize the enum module of ser but whenever I try to do the check for the user part of the request uri I get the following error:
> ser at sen:~/ser/ser-cvs/proxy$ ./ser -c -f ser.cfg
>  0(5401) parse error (721,14-15): unknown command, missing loadmodule?
> 
> I have the enum module loaded and the line for this happens is:
> if (is_user_from_e164()) {
> I also tried is_e164() which I found in the module header file but with the same result.

New version uses the is_e164 name, but expects one parameter - that's
the 1 just behind the function name (and it is the uri).

So you should use e.g. is_e164("@ruri") or is_e164("$avp")

Michal

> it this is not going to work how can I make the check by hand?
> for instance having such uri
> sip:+4822102 at domain.com
> will somthing like this work:
> uri=~ "sip:+[0-9]{7}@.*" 

Yes, it should work too.

> Bests
> Tomasz 
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list