[svn-commits] simon.perreault: branch group/v6-new r273184 - /team/group/v6-new/channels/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Jun 30 08:21:10 CDT 2010
Author: simon.perreault
Date: Wed Jun 30 08:21:06 2010
New Revision: 273184
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=273184
Log:
Added hostname and IPv6 support to the parsing of the maddr parameter.
Modified:
team/group/v6-new/channels/chan_sip.c
Modified: team/group/v6-new/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/channels/chan_sip.c?view=diff&rev=273184&r1=273183&r2=273184
==============================================================================
--- team/group/v6-new/channels/chan_sip.c (original)
+++ team/group/v6-new/channels/chan_sip.c Wed Jun 30 08:21:06 2010
@@ -8906,7 +8906,8 @@
int port;
maddr += 6;
- hn = strspn(maddr, "0123456789.") + 1;
+ hn = strspn(maddr, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ "0123456789-.:[]") + 1;
if (hn > sizeof(hostname))
hn = sizeof(hostname);
ast_copy_string(hostname, maddr, hn);
@@ -14178,7 +14179,8 @@
maddr = strstr(via, "maddr=");
if (maddr) {
maddr += 6;
- c = maddr + strspn(maddr, "0123456789.");
+ c = maddr + strspn(maddr, "abcdefghijklmnopqrstuvwxyz"
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-.:[]");
*c = '\0';
}
More information about the svn-commits
mailing list