[asterisk-commits] file: branch 1.4 r95946 -	/branches/1.4/channels/chan_sip.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Wed Jan  2 14:24:10 CST 2008
    
    
  
Author: file
Date: Wed Jan  2 14:24:09 2008
New Revision: 95946
URL: http://svn.digium.com/view/asterisk?view=rev&rev=95946
Log:
Allocate a SIP refer structure when performing a transfer using BYE with Also so that the transfer information is properly stored. (AST-2008-028)
(closes issue #11637)
Reported by: greyvoip
Modified:
    branches/1.4/channels/chan_sip.c
Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=95946&r1=95945&r2=95946
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Wed Jan  2 14:24:09 2008
@@ -9048,9 +9048,14 @@
 {
 	char tmp[256] = "", *c, *a;
 	struct sip_request *req = oreq ? oreq : &p->initreq;
-	struct sip_refer *referdata = p->refer;
+	struct sip_refer *referdata = NULL;
 	const char *transfer_context = NULL;
 	
+	if (!p->refer && !sip_refer_allocate(p))
+		return -1;
+
+	referdata = p->refer;
+
 	ast_copy_string(tmp, get_header(req, "Also"), sizeof(tmp));
 	c = get_in_brackets(tmp);
 
    
    
More information about the asterisk-commits
mailing list