[Freeswitch-trunk] [freeswitch] FreeSWITCH Source branch master updated. git2svn-syncpoint-master-1685-g83dea0e

git at svn.freeswitch.org git at svn.freeswitch.org
Wed Feb 2 20:04:59 MSK 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FreeSWITCH Source".

The branch, master has been updated
       via  83dea0ee45a1eed53fe6c7bcac96410229c2fe3c (commit)
      from  10d696ebacedde5416e99f03911c928eea8889d1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 83dea0ee45a1eed53fe6c7bcac96410229c2fe3c
Author: Anthony Minessale <anthm at freeswitch.org>
Date:   Wed Feb 2 10:53:33 2011 -0600

    FS-3024

diff --git a/src/switch_core_sqldb.c b/src/switch_core_sqldb.c
index 35311c9..2db2a0d 100644
--- a/src/switch_core_sqldb.c
+++ b/src/switch_core_sqldb.c
@@ -1409,9 +1409,13 @@ static void core_event_handler(switch_event_t *event)
 		}
 		break;
 	case SWITCH_EVENT_CHANNEL_UNBRIDGE:
-		new_sql() = switch_mprintf("delete from calls where (caller_uuid='%s' or callee_uuid='%q') and hostname='%q'",
-								   switch_event_get_header_nil(event, "caller-unique-id"), switch_core_get_variable("hostname"));
-		break;
+		{
+			char *uuid = switch_event_get_header_nil(event, "caller-unique-id");
+
+			new_sql() = switch_mprintf("delete from calls where (caller_uuid='%q' or callee_uuid='%q') and hostname='%q'",
+									   uuid, uuid, switch_core_get_variable("hostname"));
+			break;
+		}
 	case SWITCH_EVENT_SHUTDOWN:
 		new_sql() = switch_mprintf("delete from channels where hostname='%q';"
 								   "delete from interfaces where hostname='%q';"

-----------------------------------------------------------------------

Summary of changes:
 src/switch_core_sqldb.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
FreeSWITCH Source



More information about the Freeswitch-trunk mailing list