[asterisk-commits] mmichelson: branch group/issue8824 r143892 - /team/group/issue8824/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 22 12:14:05 CDT 2008


Author: mmichelson
Date: Mon Sep 22 12:14:05 2008
New Revision: 143892

URL: http://svn.digium.com/view/asterisk?view=rev&rev=143892
Log:
Correct the reason parsing in get_rdnis. If there
were both URI and header parameters present, we
only fetched the URI parameters. "reason" is a 
header parameter for Diversion, so we would never
read the reason correctly. This has been corrected
and has been tested to work properly.


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

Modified: team/group/issue8824/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/group/issue8824/channels/chan_sip.c?view=diff&rev=143892&r1=143891&r2=143892
==============================================================================
--- team/group/issue8824/channels/chan_sip.c (original)
+++ team/group/issue8824/channels/chan_sip.c Mon Sep 22 12:14:05 2008
@@ -11296,7 +11296,9 @@
 	if (ast_strlen_zero(tmp))
 		return -1;
 
-	params = strchr(tmp, ';');
+	if (params = strchr(tmp, '>')) {
+		params = strchr(params, ';');
+	}
 
 	exten = get_in_brackets(tmp);
 	if (!strncasecmp(exten, "sip:", 4)) {




More information about the asterisk-commits mailing list