mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
If a device disconnects, the session will go away.
If this happens during call setup, we need to give up. Issue 10325. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77993 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2727,6 +2727,11 @@ static int skinny_indicate(struct ast_channel *ast, int ind, const void *data, s
|
||||
struct skinnysession *s = d->session;
|
||||
char exten[AST_MAX_EXTENSION] = "";
|
||||
|
||||
if (!s) {
|
||||
ast_log(LOG_NOTICE, "Asked to indicate '%s' condition on channel %s, but session does not exist.\n", control2str(ind), ast->name);
|
||||
return -1;
|
||||
}
|
||||
|
||||
ast_copy_string(exten, S_OR(ast->macroexten, ast->exten), sizeof(exten));
|
||||
|
||||
if (skinnydebug)
|
||||
|
Reference in New Issue
Block a user