mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
Make sure outgoing is not NULL
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -817,12 +817,14 @@ static int dial_exec(struct ast_channel *chan, void *data)
|
|||||||
} else
|
} else
|
||||||
to = -1;
|
to = -1;
|
||||||
|
|
||||||
if (outgoing->musiconhold) {
|
if (outgoing) {
|
||||||
moh=1;
|
if (outgoing->musiconhold) {
|
||||||
ast_moh_start(chan, NULL);
|
moh=1;
|
||||||
} else if (outgoing->ringbackonly) {
|
ast_moh_start(chan, NULL);
|
||||||
ast_indicate(chan, AST_CONTROL_RINGING);
|
} else if (outgoing->ringbackonly) {
|
||||||
sentringing++;
|
ast_indicate(chan, AST_CONTROL_RINGING);
|
||||||
|
sentringing++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
peer = wait_for_answer(chan, outgoing, &to, &allowredir_in, &allowredir_out, &allowdisconnect, &sentringing);
|
peer = wait_for_answer(chan, outgoing, &to, &allowredir_in, &allowredir_out, &allowdisconnect, &sentringing);
|
||||||
|
Reference in New Issue
Block a user