[asterisk-commits] file: branch file/bridging-softmixgen2 r184663 - in /team/file/bridging-softm...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Mar 27 09:26:18 CDT 2009
Author: file
Date: Fri Mar 27 09:26:11 2009
New Revision: 184663
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=184663
Log:
Merged revisions 184628,184630,184639 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r184628 | file | 2009-03-27 10:57:29 -0300 (Fri, 27 Mar 2009) | 6 lines
Fix a potential race condition when creating a software based mixing bridge.
It was possible for no timer to become available between creating the bridge
and starting it. We now open a timer when creating it and keep it open until the
bridge is destroyed.
........
r184630 | russell | 2009-03-27 11:00:18 -0300 (Fri, 27 Mar 2009) | 2 lines
Change g_eid to ast_eid_default.
........
r184639 | file | 2009-03-27 11:18:40 -0300 (Fri, 27 Mar 2009) | 2 lines
Remove a cast that is not needed.
........
Modified:
team/file/bridging-softmixgen2/ (props changed)
team/file/bridging-softmixgen2/include/asterisk/utils.h
team/file/bridging-softmixgen2/main/asterisk.c
team/file/bridging-softmixgen2/main/event.c
team/file/bridging-softmixgen2/main/pbx.c
team/file/bridging-softmixgen2/pbx/pbx_dundi.c
team/file/bridging-softmixgen2/res/ais/evt.c
Propchange: team/file/bridging-softmixgen2/
------------------------------------------------------------------------------
automerge = *
Propchange: team/file/bridging-softmixgen2/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Fri Mar 27 09:26:11 2009
@@ -1,1 +1,1 @@
-/trunk:1-184575
+/trunk:1-184658
Modified: team/file/bridging-softmixgen2/include/asterisk/utils.h
URL: http://svn.digium.com/svn-view/asterisk/team/file/bridging-softmixgen2/include/asterisk/utils.h?view=diff&rev=184663&r1=184662&r2=184663
==============================================================================
--- team/file/bridging-softmixgen2/include/asterisk/utils.h (original)
+++ team/file/bridging-softmixgen2/include/asterisk/utils.h Fri Mar 27 09:26:11 2009
@@ -688,7 +688,7 @@
* This is set in asterisk.conf, or determined automatically by taking the mac
* address of an Ethernet interface on the system.
*/
-extern struct ast_eid g_eid;
+extern struct ast_eid ast_eid_default;
/*!
* \brief Fill in an ast_eid with the default eid of this machine
Modified: team/file/bridging-softmixgen2/main/asterisk.c
URL: http://svn.digium.com/svn-view/asterisk/team/file/bridging-softmixgen2/main/asterisk.c?view=diff&rev=184663&r1=184662&r2=184663
==============================================================================
--- team/file/bridging-softmixgen2/main/asterisk.c (original)
+++ team/file/bridging-softmixgen2/main/asterisk.c Fri Mar 27 09:26:11 2009
@@ -182,7 +182,7 @@
/*! @} */
-struct ast_eid g_eid;
+struct ast_eid ast_eid_default;
/* XXX tmpdir is a subdir of the spool directory, and no way to remap it */
char record_cache_dir[AST_CACHE_DIR_LEN] = DEFAULT_TMP_DIR;
@@ -427,7 +427,7 @@
return NULL;
}
- ast_eid_to_str(eid_str, sizeof(eid_str), &g_eid);
+ ast_eid_to_str(eid_str, sizeof(eid_str), &ast_eid_default);
ast_cli(a->fd, "\nPBX Core settings\n");
ast_cli(a->fd, "-----------------\n");
@@ -2817,7 +2817,7 @@
ast_copy_string(cfg_paths.socket_path, DEFAULT_SOCKET, sizeof(cfg_paths.socket_path));
ast_copy_string(cfg_paths.run_dir, DEFAULT_RUN_DIR, sizeof(cfg_paths.run_dir));
- ast_set_default_eid(&g_eid);
+ ast_set_default_eid(&ast_eid_default);
/* no asterisk.conf? no problem, use buildtime config! */
if (cfg == CONFIG_STATUS_FILEMISSING || cfg == CONFIG_STATUS_FILEUNCHANGED || cfg == CONFIG_STATUS_FILEINVALID) {
@@ -2988,7 +2988,7 @@
struct ast_eid tmp_eid;
if (!ast_str_to_eid(&tmp_eid, v->value)) {
ast_verbose("Successfully set global EID to '%s'\n", v->value);
- g_eid = tmp_eid;
+ ast_eid_default = tmp_eid;
} else
ast_verbose("Invalid Entity ID '%s' provided\n", v->value);
} else if (!strcasecmp(v->name, "lightbackground")) {
Modified: team/file/bridging-softmixgen2/main/event.c
URL: http://svn.digium.com/svn-view/asterisk/team/file/bridging-softmixgen2/main/event.c?view=diff&rev=184663&r1=184662&r2=184663
==============================================================================
--- team/file/bridging-softmixgen2/main/event.c (original)
+++ team/file/bridging-softmixgen2/main/event.c Fri Mar 27 09:26:11 2009
@@ -954,7 +954,7 @@
if (!ast_event_get_ie_raw(event, AST_EVENT_IE_EID)) {
/* If the event is originating on this server, add the server's
* entity ID to the event. */
- ast_event_append_ie_raw(&event, AST_EVENT_IE_EID, &g_eid, sizeof(g_eid));
+ ast_event_append_ie_raw(&event, AST_EVENT_IE_EID, &ast_eid_default, sizeof(ast_eid_default));
}
return event;
Modified: team/file/bridging-softmixgen2/main/pbx.c
URL: http://svn.digium.com/svn-view/asterisk/team/file/bridging-softmixgen2/main/pbx.c?view=diff&rev=184663&r1=184662&r2=184663
==============================================================================
--- team/file/bridging-softmixgen2/main/pbx.c (original)
+++ team/file/bridging-softmixgen2/main/pbx.c Fri Mar 27 09:26:11 2009
@@ -2924,7 +2924,7 @@
} else if (!strcmp(var, "SYSTEMNAME")) {
s = ast_config_AST_SYSTEM_NAME;
} else if (!strcmp(var, "ENTITYID")) {
- ast_eid_to_str(workspace, workspacelen, &g_eid);
+ ast_eid_to_str(workspace, workspacelen, &ast_eid_default);
s = workspace;
}
}
Modified: team/file/bridging-softmixgen2/pbx/pbx_dundi.c
URL: http://svn.digium.com/svn-view/asterisk/team/file/bridging-softmixgen2/pbx/pbx_dundi.c?view=diff&rev=184663&r1=184662&r2=184663
==============================================================================
--- team/file/bridging-softmixgen2/pbx/pbx_dundi.c (original)
+++ team/file/bridging-softmixgen2/pbx/pbx_dundi.c Fri Mar 27 09:26:11 2009
@@ -4614,7 +4614,7 @@
ast_log(LOG_WARNING, "Unable to get host name!\n");
AST_LIST_LOCK(&peers);
- memcpy(&global_eid, &g_eid, sizeof(global_eid));
+ memcpy(&global_eid, &ast_eid_default, sizeof(global_eid));
global_storehistory = 0;
ast_copy_string(secretpath, "dundi", sizeof(secretpath));
Modified: team/file/bridging-softmixgen2/res/ais/evt.c
URL: http://svn.digium.com/svn-view/asterisk/team/file/bridging-softmixgen2/res/ais/evt.c?view=diff&rev=184663&r1=184662&r2=184663
==============================================================================
--- team/file/bridging-softmixgen2/res/ais/evt.c (original)
+++ team/file/bridging-softmixgen2/res/ais/evt.c Fri Mar 27 09:26:11 2009
@@ -141,7 +141,7 @@
return;
}
- if (!ast_eid_cmp(&g_eid, ast_event_get_ie_raw(event, AST_EVENT_IE_EID))) {
+ if (!ast_eid_cmp(&ast_eid_default, ast_event_get_ie_raw(event, AST_EVENT_IE_EID))) {
/* Don't feed events back in that originated locally. */
return;
}
@@ -183,7 +183,7 @@
ast_log(LOG_DEBUG, "Got an event to forward\n");
- if (ast_eid_cmp(&g_eid, ast_event_get_ie_raw(ast_event, AST_EVENT_IE_EID))) {
+ if (ast_eid_cmp(&ast_eid_default, ast_event_get_ie_raw(ast_event, AST_EVENT_IE_EID))) {
/* If the event didn't originate from this server, don't send it back out. */
ast_log(LOG_DEBUG, "Returning here\n");
return;
More information about the asterisk-commits
mailing list