[Serusers] proxy_authorize fails

Jan Janak jan at iptel.org
Wed Jan 19 22:59:55 CET 2005


On 17-01 19:47, Kjell Arild Frigstad wrote:
> When trying to use proxy_authorize in ser.cfg, we get a problem. 
> www_authorize works in REGISTER events, but when we try to do a
> proxy_authorize (in INVITE events) it returs false even if the user is registered.

  Does the INVITE message include digest credentials ? Does the user
  agent re-send the INVITE when it is challenged by ser ? Could you send
  us SIP message dumps ?

    Jan.

> 
> What we want to do is to authorize requests before relaying calls to
> PSTN/Internet.
> 
> Below is a simple test we did. The first test returns false no matter what.
> We have also tried with 'proxy_authorize("<our domain>", "subscriber")'.
> 
> if (method=="INVITE") {
>   if (proxy_authorize("", "subscriber")) {
>     log(1, "INFO1(INVITE):  user exist in subscriber database TRUE");
>   } else {
>     log(1, "INFO1(INVITE) user does not exist in subscriber database: FALSE");
>   };
>   if (lookup("location")) {
>     log(1, "INFO1(INVITE):  user exist in location database TRUE");
>   } else {
>     log(1, "INFO1(INVITE) user does not exist in location database: FALSE");
>   };
> };
> 
> Anyone seen this before?
> Does 'proxy_authorize' depend on some system settings? SER is running on
> Fedora Core 2.
> Does anyone of you know a way to trace the database queries? Our MySQL
> implementation does not have debug compiled in.
> 
> 
> Regards,
> Kjell A.
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list