[Serusers] proxy_authorize fails

Kjell Arild Frigstad kaf at cnd.no
Mon Jan 17 18:47:14 CET 2005


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.

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.




More information about the sr-users mailing list