Edit this file, replace the function "switch_url_encode" and rebuild.
Post by Mitchelle JohnsonHi Saumar,
Could you please tell me where to incorporate the code snippet that
you posted? It will be a lot of help if you could tell me in detail as
to what file to make changes in and the location of the file, etc..
Thanks,
Mitchelle
Hi Mitchelle,
I've also faced this issue when I started developing with 1.4
release - at the time I gave the master branch a try - and then
got lucky.
Shortly after that, I updated my setup to a more recent master and
xml cdrs got broken again.
broken 1.4.18+git~20150312T185523Z~4eed221b69~64bit (git 4eed221
2015-03-12 18:55:23Z 64bit)
works 1.5.15b+git~20150117T062211Z~46cf8a4dce~64bit (git 46cf8a4
2015-01-17 06:22:11Z 64bit)
broken 1.5.15b+git~20150421T235828Z~a4d877c189~64bit (git a4d877c
2015-04-21 23:58:28Z 64bit)
// switch_utils.c
SWITCH_DECLARE(char *) switch_url_encode(const char *url, char
*buf, size_t len)
{
const char *p;
size_t x = 0;
const char hex[] = "0123456789ABCDEF";
if (!buf) {
return 0;
}
if (!url) {
return 0;
}
len--;
for (p = url; *p; p++) {
if (x >= len) {
break;
}
if (*p < ' ' || *p > '~' || strchr(urlunsafe, *p)) {
if ((x + 3) > len) {
break;
}
buf[x++] = '%';
buf[x++] = hex[(*p >> 4) & 0x0f];
buf[x++] = hex[*p & 0x0f];
} else {
buf[x++] = *p;
}
}
buf[x] = '\0';
return buf;
}
Post by Mitchelle JohnsonThanks Sergey,
Could you please tell me how to apply changes in off #192 pull request?
Thanks,
Mitchelle
On Sun, May 17, 2015 at 4:22 PM, Sergey Safarov
Mitchelle manually or using patch utility apply changes in
off #192 pull request.
https://freeswitch.org/stash/projects/FS/repos/freeswitch/pull-requests/192/diff
On Sun, May 17, 2015 at 10:57 AM, Mitchelle Johnson
I am sorry, I am not able to understand to how use the
link provided by you to resolve my issue...could you
please explain me the process in detail.
Thanks,
Mitchelle
On Sat, May 16, 2015 at 5:50 PM, Sergey Safarov
See https://freeswitch.org/jira/browse/FS-7258
On Sat, May 16, 2015 at 10:44 AM, Mitchelle Johnson
Hi,
When I am using the web server to handle xml
CDR's the xml file which it sends gives an error.
XML Parsing Error: not well-formed
http://www.w3schools.com/xml/xml_validator.asp
------------------------^
Please help me resolve this.
Thanks,
Mitchelle
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org