[Serusers] Check_from() and check_to() issue
Jon Mansey
jon at tigrisnet.net
Thu Jul 14 17:05:27 CEST 2005
I guessed that the 401 was due to the check_to() failing here, I altered the
message to be sure.
My config is just the basic onsip.org pstn cfg.
if (!www_authorize("sip.mydomain.com","subscriber")) {
www_challenge("sip.mydomain.com","0");
break;
};
# not working for some reason
# if (!check_to()) {
# sl_send_reply("401", "Unauthorized check_to failed");
# break;
# };
> -----Original Message-----
> From: Jan Janak [mailto:jan at iptel.org]
> Sent: Thursday, July 14, 2005 4:21 AM
> To: Jon Mansey
> Cc: serusers at lists.iptel.org
> Subject: Re: [Serusers] Check_from() and check_to() issue
>
>
> On 13-07-2005 09:39, Jon Mansey wrote:
> > Hi
> >
> > I seem to be having trouble with check_to() for registrations and
> > check_from() for invites, even though I have them right after
> > *_authorize and challenge calls. Maybe I don't fully understand the
> > test that it does but it prevents registration from all my clients
> > seemingly. What is the test failing on? Im getting 401
> unauthorized.
> > If I comment out the check_to() test, I register just fine.
> >
> > Could someone more fully explain the test criteria here so
> I can see
> > where my problem is, thx.
>
> 401 Unathorized indicates that authentication was not
> successful, that
> means check_from and check_from should not be executed at
> all in this
> case. Could you, please, post relevant parts of your configuration
> files ?
>
> check_from and check_to tests should only be executed if
> www_authorize
> was successful.
>
> Jan.
>
More information about the sr-users
mailing list