[asterisk-commits] mmichelson: branch group/CCSS_Monitor_Restructure r244383 - /team/group/CCSS_...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 2 13:41:24 CST 2010


Author: mmichelson
Date: Tue Feb  2 13:41:22 2010
New Revision: 244383

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=244383
Log:
Make a copy of the incoming URI so we don't change the full one.

This is necessary so that we can successfully find the URI we stored
off.


Modified:
    team/group/CCSS_Monitor_Restructure/channels/chan_sip.c

Modified: team/group/CCSS_Monitor_Restructure/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS_Monitor_Restructure/channels/chan_sip.c?view=diff&rev=244383&r1=244382&r2=244383
==============================================================================
--- team/group/CCSS_Monitor_Restructure/channels/chan_sip.c (original)
+++ team/group/CCSS_Monitor_Restructure/channels/chan_sip.c Tue Feb  2 13:41:22 2010
@@ -15303,7 +15303,7 @@
 	if (req->rlPart2)
 		ast_copy_string(tmp, REQ_OFFSET_TO_STR(req, rlPart2), sizeof(tmp));
 	
-	uri = get_in_brackets(tmp);
+	uri = ast_strdupa(get_in_brackets(tmp));
 
 	if (parse_uri(uri, "sip:,sips:", &uri, NULL, &domain, NULL, NULL, NULL)) {
 		ast_log(LOG_WARNING, "Not a SIP header (%s)?\n", uri);




More information about the asterisk-commits mailing list