[asterisk-commits] kpfleming: branch sruffell/asterisk-1.4-transcoder r167370 - /team/sruffell/a...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 6 18:34:55 CST 2009


Author: kpfleming
Date: Tue Jan  6 18:34:54 2009
New Revision: 167370

URL: http://svn.digium.com/view/asterisk?view=rev&rev=167370
Log:
umm..... copy_request() exists for a reason, use it :-)


Modified:
    team/sruffell/asterisk-1.4-transcoder/channels/chan_sip.c

Modified: team/sruffell/asterisk-1.4-transcoder/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/sruffell/asterisk-1.4-transcoder/channels/chan_sip.c?view=diff&rev=167370&r1=167369&r2=167370
==============================================================================
--- team/sruffell/asterisk-1.4-transcoder/channels/chan_sip.c (original)
+++ team/sruffell/asterisk-1.4-transcoder/channels/chan_sip.c Tue Jan  6 18:34:54 2009
@@ -16001,7 +16001,7 @@
 	return 0;
 }
 
-static int queue_request(struct sip_pvt *p, struct sip_request *req, struct sockaddr_in *sin)
+static int queue_request(struct sip_pvt *p, const struct sip_request *req, const struct sockaddr_in *sin)
 {
 	struct request_queue_entry *rqe;
 
@@ -16009,7 +16009,7 @@
 		return -1;
 	}
 
-	rqe->request = *req;
+	copy_request(&rqe->request, req);
 	rqe->sin = *sin;
 	AST_LIST_INSERT_TAIL(&p->request_queue, rqe, next);
 	if (p->request_queue_sched_id == -1) {




More information about the asterisk-commits mailing list