mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-14 13:58:38 +00:00
Merge "chan_sip: Don't crash in Dial on invalid destination" into 15
This commit is contained in:
@@ -30555,6 +30555,14 @@ static struct ast_channel *sip_request_call(const char *type, struct ast_format_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If stripping the DNID left us with nothing, bail out */
|
||||||
|
if (ast_strlen_zero(tmp)) {
|
||||||
|
dialog_unlink_all(p);
|
||||||
|
dialog_unref(p, "unref dialog p from bad destination");
|
||||||
|
*cause = AST_CAUSE_DESTINATION_OUT_OF_ORDER;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* Divvy up the items separated by slashes */
|
/* Divvy up the items separated by slashes */
|
||||||
AST_NONSTANDARD_APP_ARGS(args, tmp, '/');
|
AST_NONSTANDARD_APP_ARGS(args, tmp, '/');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user