mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
handle no-peer-specified-in-dial-string gracefully (issue #5132)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6537 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -7713,6 +7713,12 @@ static struct ast_channel *iax2_request(const char *type, int format, void *data
|
||||
|
||||
ast_copy_flags(&cai, &globalflags, IAX_NOTRANSFER | IAX_USEJITTERBUF | IAX_FORCEJITTERBUF);
|
||||
|
||||
if (!pds.peer) {
|
||||
ast_log(LOG_WARNING, "No peer given\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Populate our address from the given */
|
||||
if (create_addr(pds.peer, &sin, &cai)) {
|
||||
*cause = AST_CAUSE_UNREGISTERED;
|
||||
|
Reference in New Issue
Block a user