mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 10:58:15 +00:00
Fix attended transfer crash (bug #4404 with changes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -170,6 +170,7 @@ static struct cfalias {
|
|||||||
{ "To", "t" },
|
{ "To", "t" },
|
||||||
{ "Supported", "k" },
|
{ "Supported", "k" },
|
||||||
{ "Refer-To", "r" },
|
{ "Refer-To", "r" },
|
||||||
|
{ "Referred-By", "b" },
|
||||||
{ "Allow-Events", "u" },
|
{ "Allow-Events", "u" },
|
||||||
{ "Event", "o" },
|
{ "Event", "o" },
|
||||||
{ "Via", "v" },
|
{ "Via", "v" },
|
||||||
@@ -5712,6 +5713,7 @@ static int get_refer_info(struct sip_pvt *sip_pvt, struct sip_request *outgoing_
|
|||||||
|
|
||||||
if (!( (p_referred_by = get_header(req, "Referred-By")) && (h_referred_by = ast_strdupa(p_referred_by)) )) {
|
if (!( (p_referred_by = get_header(req, "Referred-By")) && (h_referred_by = ast_strdupa(p_referred_by)) )) {
|
||||||
ast_log(LOG_WARNING, "No Referrred-By Header That's not illegal\n");
|
ast_log(LOG_WARNING, "No Referrred-By Header That's not illegal\n");
|
||||||
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
referred_by = ditch_braces(h_referred_by);
|
referred_by = ditch_braces(h_referred_by);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user