[Freeswitch-svn] [commit] r5604 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN mikej at freeswitch.org
Thu Aug 16 13:19:27 EDT 2007


Author: mikej
Date: Thu Aug 16 13:19:27 2007
New Revision: 5604

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c

Log:
fix registration bug when doing authed calls

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	Thu Aug 16 13:19:27 2007
@@ -435,6 +435,10 @@
 	}
   reg:
 
+	if (regtype != REG_REGISTER) {
+		return 0;
+	}
+
 	if (exptime) {
 		if (!sofia_reg_find_reg_url(profile, to_user, to_host, buf, sizeof(buf))) {
 			sql = switch_mprintf("insert into sip_registrations values ('%q','%q','%q','%q', '%q', %ld)",



More information about the Freeswitch-svn mailing list