#183 uri module: is_user should not depend on credentials

trunk
closed-invalid
modules (454)
5
2009-09-04
2009-09-04
Thomas Gelf
No

According to http://opensips.org/html/docs/modules/devel/uri.html#id271241
is_user shall be called as follows:

> is_user("john")

Running latest revision from trunk (6069) this leads to:

> ERROR:uri:is_user: no authorized credentials found (error in scripts)
> ERROR:uri:is_user: Call {www,proxy}_authorize before calling is_user
> function !

Call is from PSTN to local user, I'd like to call is_user("$rU").
Calling
*_authorize doesn't make sanse here, as does requiring credentials - at
least if username is passed to this function.

Best regards,
Thomas Gelf

Discussion

  • Bogdan-Andrei Iancu

    • assigned_to: nobody --> ironmissy
     
  • Irina-Maria Stanescu

    According to http://opensips.org/html/docs/modules/devel/uri.html#id271241 is_user function does the following: "Check if the username in credentials matches the given username.". So, requiring credentials is essential here.

    I'm not sure i understand the reasons you want to use this function.

    Regards,
    Irina Stanescu

     
  • Thomas Gelf

    Thomas Gelf - 2009-09-04
    • status: open --> closed-invalid
     
  • Thomas Gelf

    Thomas Gelf - 2009-09-04

    You're right, sorry. This is what happens when you are making changes
    to your config at 02:00 AM :-/

    Thank you for your efforts!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks