Skip to content
Snippets Groups Projects
Commit 70bf3715 authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

Merged revisions 19812 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19812 | kpfleming | 2006-04-13 12:40:21 -0500 (Thu, 13 Apr 2006) | 2 lines

oops... let's not set a variable and then immediately overwrite it while assuming its old value will magically return

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 8410bbf7
No related branches found
No related tags found
No related merge requests found
...@@ -167,16 +167,16 @@ static int page_exec(struct ast_channel *chan, void *data) ...@@ -167,16 +167,16 @@ static int page_exec(struct ast_channel *chan, void *data)
return -1; return -1;
} }
ast_copy_string(originator, chan->name, sizeof(originator));
if ((tmp = strchr(originator, '-')))
*tmp = '\0';
tmp = strsep(&options, "|"); tmp = strsep(&options, "|");
if (options) if (options)
ast_app_parse_options(page_opts, &flags, NULL, options); ast_app_parse_options(page_opts, &flags, NULL, options);
snprintf(meetmeopts, sizeof(meetmeopts), "%ud|%sqxdw", confid, ast_test_flag(&flags, PAGE_DUPLEX) ? "" : "m"); snprintf(meetmeopts, sizeof(meetmeopts), "%ud|%sqxdw", confid, ast_test_flag(&flags, PAGE_DUPLEX) ? "" : "m");
ast_copy_string(originator, chan->name, sizeof(originator));
if ((tmp = strchr(originator, '-')))
*tmp = '\0';
while ((tech = strsep(&tmp, "&"))) { while ((tech = strsep(&tmp, "&"))) {
/* don't call the originating device */ /* don't call the originating device */
if (!strcasecmp(tech, originator)) if (!strcasecmp(tech, originator))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment