[svn-commits] trunk r8786 - in /trunk: ./ channels/chan_sip.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Fri Jan 27 01:07:46 MST 2006
Author: oej
Date: Fri Jan 27 02:07:43 2006
New Revision: 8786
URL: http://svn.digium.com/view/asterisk?rev=8786&view=rev
Log:
Merged revisions 8785 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r8785 | oej | 2006-01-27 09:02:16 +0100 (Fri, 27 Jan 2006) | 2 lines
Issue 6362 - Register without Contact: and Expires: fails (reporter: op)
........
Modified:
trunk/ (props changed)
trunk/channels/chan_sip.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=8786&r1=8785&r2=8786&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Jan 27 02:07:43 2006
@@ -5936,13 +5936,11 @@
it
*/
if (ast_strlen_zero(c) && ast_strlen_zero(expires)) {
+ /* If we have an active registration, tell them when the registration is going to expire */
if ((p->expire > -1) && !ast_strlen_zero(p->fullcontact)) {
- /* tell them when the registration is going to expire */
pvt->expiry = ast_sched_when(sched, p->expire);
- return PARSE_REGISTER_QUERY;
- } else {
- return PARSE_REGISTER_FAILED;
- }
+ }
+ return PARSE_REGISTER_QUERY;
} else if (!strcasecmp(c, "*") || !expiry) { /* Unregister this peer */
/* This means remove all registrations and return OK */
memset(&p->addr, 0, sizeof(p->addr));
More information about the svn-commits
mailing list