[Serusers] authentication recommnedations

Klaus Darilion klaus.mailinglists at pernau.at
Fri Mar 19 20:46:49 CET 2004


is_local uses the domain module from ser. This module checks domains 
against the domain table fo the ser database. Therefore, you have to 
insert the domains ser is responsible for (e.g. my.sip.domain) into the 
"domain" table in the mysql database from ser.

Klaus

Ticknor.Scott at ic.gc.ca wrote:
>>>-----Original Message-----
>>>From: Klaus Darilion [mailto:klaus.mailinglists at pernau.at]
>>>Sent: Thursday, March 18, 2004 12:48 pm
>>>To: Ticknor, Scott: DGSE
>>>Cc: serusers at lists.iptel.org
>>>Subject: Re: [Serusers] authentication recommnedations
>>>
>>>
>>>Hi!
>>>
>>>I use this setup:
>>>
>>>if (is_from_local() ) {
>>>  if (!proxy_authorize("", "subscriber")) 
> 
> 
> sorry to keep beating this up...
> i am trying this logic out, but the debug messages show:
> 
> is_local(): Realm 'my.sip.domain' is not local
> is_local(): Realm 'X.X.X.X' is not local
> 
> is this an error in the database configuration, or is there somewhere else
> to configure local?? i found this via google:
> 
> if (RES_ROW_N(res) == 0) {
> 			DBG("is_local(): Realm '%.*s' is not local\n", 
> 			    _host->len, ZSW(_host->s));
> 			db_free_query(db_handle, res);
> 			return -1;
> 
> thanks,
> 
> scott t
> DSi 
> 
> 




More information about the sr-users mailing list