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.
V0.9.3
Help appreciated,
Jon
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.
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@iptel.org] Sent: Thursday, July 14, 2005 4:21 AM To: Jon Mansey Cc: serusers@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.
Hi
From my reporting I have seen a significant uptick in missed BYEs since
upgrading from 0.8.14 to 0.9.3, anyone have any tips where to start looking for why that might be? Im running a pretty stock onsip pstn with nat (rtpproxy) cfg file. I can post if necessary.
Thx
Jon
Jon, AFAIK, there should be no reason in terms of code change etc that should make you miss BYEs for 0.9.3 that you haven't for 0.8.14. I assume you mean accounting of BYEs? What is significant and can you track them going through SER? (using ngrep or xlog and log all BYEs) If so, there is an issue. If you cannot see them in the log file (and you record route everything except REGISTER), there is something else going on. g-)
Jon Mansey wrote:
Hi
From my reporting I have seen a significant uptick in missed BYEs since
upgrading from 0.8.14 to 0.9.3, anyone have any tips where to start looking for why that might be? Im running a pretty stock onsip pstn with nat (rtpproxy) cfg file. I can post if necessary.
Thx
Jon
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers