mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
fix dynamic conference. Bug #743 take two
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -626,21 +626,26 @@ static int conf_exec(struct ast_channel *chan, void *data)
|
||||
struct ast_conference *cnf;
|
||||
int confflags = 0;
|
||||
int dynamic = 0;
|
||||
char *info, *inflags = NULL, *inpin = NULL;
|
||||
char *notdata, *info, *inflags = NULL, *inpin = NULL;
|
||||
|
||||
if (!data || !strlen(data)) {
|
||||
allowretry = 1;
|
||||
data = "";
|
||||
notdata = "";
|
||||
} else {
|
||||
notdata = data;
|
||||
}
|
||||
LOCAL_USER_ADD(u);
|
||||
if (chan->_state != AST_STATE_UP)
|
||||
ast_answer(chan);
|
||||
|
||||
info = ast_strdupa((char *)data);
|
||||
info = ast_strdupa((char *)notdata);
|
||||
|
||||
if (info) {
|
||||
char *tmp = strsep(&info, "|");
|
||||
strncpy(confno, tmp, sizeof(confno));
|
||||
if (strlen(confno) == 0) {
|
||||
allowretry = 1;
|
||||
}
|
||||
}
|
||||
if (info)
|
||||
inflags = strsep(&info, "|");
|
||||
|
Reference in New Issue
Block a user