Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c (16606 => 16607)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c 2010-02-11 18:54:17 UTC (rev 16606)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c 2010-02-11 19:19:27 UTC (rev 16607)
@@ -4567,7 +4567,7 @@
switch_core_db_test_reactive(db, test_sql, "DROP TABLE sip_shared_appearance_subscriptions", shared_appearance_sql);
free(test_sql);
- test_sql = switch_mprintf("delete from sip_shared_appearance_dialogs where contact_str = '' or hostname='%q'", mod_sofia_globals.hostname);
+ test_sql = switch_mprintf("delete from sip_shared_appearance_dialogs where contact_str = '' or hostname='%q' and network_ip like '%%'", mod_sofia_globals.hostname);
switch_core_db_test_reactive(db, test_sql, "DROP TABLE sip_shared_appearance_dialogs", shared_appearance_dialogs_sql);
free(test_sql);