[Freeswitch-dev] FS-2877 patch

Beeton, Carolyn (Carolyn) cbeeton at avaya.com
Mon Oct 24 17:55:36 MSD 2011


Anthony,

I see that the patch from FS-2877 has been committed (thanks!  I hope it helps to address the BLF issues others have seen).  I did have a comment on that issue that there was a typo in the patch which I don't think was corrected in the commit.  The typo will cause the database to be dropped and rebuilt on every run.  This would fix it:

diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c
index e6076e8..a6de2f5 100644
--- a/src/mod/endpoints/mod_sofia/sofia_glue.c
+++ b/src/mod/endpoints/mod_sofia/sofia_glue.c
@@ -5974,7 +5974,7 @@ int sofia_glue_init_sql(sofia_profile_t *profile)
  switch_cache_db_test_reactive(dbh, test_sql, "DROP TABLE sip_subscriptions", sub_sql);

  free(test_sql);
- test_sql = switch_mprintf("delete from sip_dialogs where hostname='%q' and expires <> -9999 or rpid='' or from_tag=''", mod_sofia_globals.hostname);
+ test_sql = switch_mprintf("delete from sip_dialogs where hostname='%q' and expires <> -9999 or rpid='' or sip_from_tag=''", mod_sofia_globals.hostname);


  switch_cache_db_test_reactive(dbh, test_sql, "DROP TABLE sip_dialogs", dialog_sql);


Carolyn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111024/a2c0def2/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list