Discussion:
[Freeswitch-users] [XML parsing error]
Mitchelle Johnson
2015-05-16 07:44:02 UTC
Permalink
Hi,
When I am using the web server to handle xml CDR's the xml file which it
sends gives an error.
The error being:

XML Parsing Error: not well-formed
Location: http://www.w3schools.com/xml/xml_validator.asp
Line Number 138, Column 25:
<sip_full_from><sip:***@10.0.0.8>;tag=661a086d</sip_full_from>
------------------------^

Please help me resolve this.


Thanks,
Mitchelle
Sergey Safarov
2015-05-16 12:20:13 UTC
Permalink
See https://freeswitch.org/jira/browse/FS-7258
Post by 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
Location: 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
Mitchelle Johnson
2015-05-17 07:57:18 UTC
Permalink
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
Post by Sergey Safarov
See https://freeswitch.org/jira/browse/FS-7258
On Sat, May 16, 2015 at 10:44 AM, Mitchelle Johnson <
Post by 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
Location: 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
Ali Jibran
2015-05-17 08:02:56 UTC
Permalink
I had the same issue with FusionPBX. The issue was that the data wasn't
being urlencoded correctly.
As a work around I had to manually encode every tag and then pass it on to
the XML parser.

That is very hectic. Turned out it was a FS issue. 1.5 was giving me this
issue. I reverted back to 1.4.15 and bam. Issue resolved.
Post by 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
Post by Sergey Safarov
See https://freeswitch.org/jira/browse/FS-7258
On Sat, May 16, 2015 at 10:44 AM, Mitchelle Johnson <
Post by 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
Location: http://www.w3schools.com/xml/xml_validator.asp
Post by Mitchelle Johnson
;tag=661a086d</sip_full_from>
------------------------^
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
Mitchelle Johnson
2015-05-17 08:20:04 UTC
Permalink
Hi Ali,
The issue I think is not with FreeSWITCH coz I have a production system
that has FS installed on a centOS environment. and when I took its xml cdr
to the check for the same issue... FS 1.5 on centOS didnt have the same
issue.

Thanks,
Mitchelle
Post by Ali Jibran
I had the same issue with FusionPBX. The issue was that the data wasn't
being urlencoded correctly.
As a work around I had to manually encode every tag and then pass it on to
the XML parser.
That is very hectic. Turned out it was a FS issue. 1.5 was giving me this
issue. I reverted back to 1.4.15 and bam. Issue resolved.
Post by 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
Post by Sergey Safarov
See https://freeswitch.org/jira/browse/FS-7258
On Sat, May 16, 2015 at 10:44 AM, Mitchelle Johnson <
Post by 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
Location: 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
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
Sergey Safarov
2015-05-17 10:52:24 UTC
Permalink
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
Post by 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
Post by Sergey Safarov
See https://freeswitch.org/jira/browse/FS-7258
On Sat, May 16, 2015 at 10:44 AM, Mitchelle Johnson <
Post by 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
Location: 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
Mitchelle Johnson
2015-05-17 11:18:17 UTC
Permalink
Thanks Sergey,
Could you please tell me how to apply changes in off #192 pull request?

Thanks,
Mitchelle
Post by 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 <
Post by 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
Post by Sergey Safarov
See https://freeswitch.org/jira/browse/FS-7258
On Sat, May 16, 2015 at 10:44 AM, Mitchelle Johnson <
Post by 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
Location: 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
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
Saumar Hajjar
2015-05-17 13:51:18 UTC
Permalink
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)

Below you'll find what I'm using in all versions I have installed now:

// 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 urlunsafe[] = "\r\n \"#%&+:;<=>?@[\\]^`{|}";
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 Johnson
Thanks Sergey,
Could you please tell me how to apply changes in off #192 pull request?
Thanks,
Mitchelle
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
Location: 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
Mitchelle Johnson
2015-05-18 05:37:32 UTC
Permalink
Hi 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
Post by Saumar Hajjar
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;
}
Thanks Sergey,
Could you please tell me how to apply changes in off #192 pull request?
Thanks,
Mitchelle
Post by 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 <
Post by 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
Post by Sergey Safarov
See https://freeswitch.org/jira/browse/FS-7258
On Sat, May 16, 2015 at 10:44 AM, Mitchelle Johnson <
Post by 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
Location: 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
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
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
_________________________________________________________________________
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://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
Saumar Hajjar
2015-05-18 15:39:02 UTC
Permalink
The file is "src/switch_utils.c"
Edit this file, replace the function "switch_url_encode" and rebuild.

https://freeswitch.org/confluence/display/FREESWITCH/Installation
Post by Mitchelle Johnson
Hi 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 Johnson
Thanks 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
Mitchelle Johnson
2015-05-18 16:40:26 UTC
Permalink
Hi Saumar,

Thanks a lot for your help. I will do as you have said and would report if
the issue is not resolved.

Regards,
Mitchelle
Post by Saumar Hajjar
The file is "src/switch_utils.c"
Edit this file, replace the function "switch_url_encode" and rebuild.
https://freeswitch.org/confluence/display/FREESWITCH/Installation
Hi 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
Post by Saumar Hajjar
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;
}
Thanks Sergey,
Could you please tell me how to apply changes in off #192 pull request?
Thanks,
Mitchelle
Post by 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 <
Post by 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
Post by Sergey Safarov
See https://freeswitch.org/jira/browse/FS-7258
On Sat, May 16, 2015 at 10:44 AM, Mitchelle Johnson <
Post by 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
Location: 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
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
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
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
_________________________________________________________________________
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://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
_________________________________________________________________________
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://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
Brian West
2015-05-18 16:45:11 UTC
Permalink
The issue is already reported, and has a patch pending testing.

https://freeswitch.org/jira/browse/FS-7258

That patch needs some testing! It will get merged and fix this issue but
not without more testing.
Post by Mitchelle Johnson
Hi Saumar,
Thanks a lot for your help. I will do as you have said and would report if
the issue is not resolved.
Regards,
Mitchelle
Post by Saumar Hajjar
The file is "src/switch_utils.c"
Edit this file, replace the function "switch_url_encode" and rebuild.
https://freeswitch.org/confluence/display/FREESWITCH/Installation
Hi 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
Post by Saumar Hajjar
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;
}
Thanks Sergey,
Could you please tell me how to apply changes in off #192 pull request?
Thanks,
Mitchelle
Post by 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 <
Post by 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
Post by Sergey Safarov
See https://freeswitch.org/jira/browse/FS-7258
On Sat, May 16, 2015 at 10:44 AM, Mitchelle Johnson <
Post by 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
Location: 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
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
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
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
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://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
_________________________________________________________________________
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://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
--
*Brian West*
***@freeswitch.org


*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

ClueCon 2015 Call for Speakers <https://www.cluecon.com/call-for-speakers/> |
Register <https://freeswitch.com/cart.php?gid=1> TODAY! | Reddit:
/r/freeswitch <https://www.reddit.com/r/freeswitch>

*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Mitchelle Johnson
2015-05-18 16:50:04 UTC
Permalink
Hi Brian,

I also wanted to confirm about the 'billsec' in the xml cdr. It behaves
abnormally. Even if the call is not answered it shows some value inspite of
showing 0.

Please help.

Thanks,
Mitchelle
Post by Brian West
The issue is already reported, and has a patch pending testing.
https://freeswitch.org/jira/browse/FS-7258
That patch needs some testing! It will get merged and fix this issue but
not without more testing.
On Mon, May 18, 2015 at 11:40 AM, Mitchelle Johnson <
Post by Mitchelle Johnson
Hi Saumar,
Thanks a lot for your help. I will do as you have said and would report
if the issue is not resolved.
Regards,
Mitchelle
Post by Saumar Hajjar
The file is "src/switch_utils.c"
Edit this file, replace the function "switch_url_encode" and rebuild.
https://freeswitch.org/confluence/display/FREESWITCH/Installation
Hi 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
Post by Saumar Hajjar
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;
}
Thanks Sergey,
Could you please tell me how to apply changes in off #192 pull request?
Thanks,
Mitchelle
Post by 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 <
Post by 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
Post by Sergey Safarov
See https://freeswitch.org/jira/browse/FS-7258
On Sat, May 16, 2015 at 10:44 AM, Mitchelle Johnson <
Post by 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
Location: 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
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
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
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
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://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
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://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
--
*Brian West*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
ClueCon 2015 Call for Speakers
<https://www.cluecon.com/call-for-speakers/> | Register
<https://freeswitch.com/cart.php?gid=1> TODAY! | Reddit: /r/freeswitch
<https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________
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
Mitchelle Johnson
2015-05-18 16:51:30 UTC
Permalink
Hi,

I will generate a new thread on billsec tag of xml cdr.

Thanks,
Mitchelle
Post by Mitchelle Johnson
Hi Brian,
I also wanted to confirm about the 'billsec' in the xml cdr. It behaves
abnormally. Even if the call is not answered it shows some value inspite of
showing 0.
Please help.
Thanks,
Mitchelle
Post by Brian West
The issue is already reported, and has a patch pending testing.
https://freeswitch.org/jira/browse/FS-7258
That patch needs some testing! It will get merged and fix this issue but
not without more testing.
On Mon, May 18, 2015 at 11:40 AM, Mitchelle Johnson <
Post by Mitchelle Johnson
Hi Saumar,
Thanks a lot for your help. I will do as you have said and would report
if the issue is not resolved.
Regards,
Mitchelle
Post by Saumar Hajjar
The file is "src/switch_utils.c"
Edit this file, replace the function "switch_url_encode" and rebuild.
https://freeswitch.org/confluence/display/FREESWITCH/Installation
Hi 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
Post by Saumar Hajjar
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;
}
Thanks Sergey,
Could you please tell me how to apply changes in off #192 pull request?
Thanks,
Mitchelle
Post by 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 <
Post by 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
Post by Sergey Safarov
See https://freeswitch.org/jira/browse/FS-7258
On Sat, May 16, 2015 at 10:44 AM, Mitchelle Johnson <
Post by 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
Location: http://www.w3schools.com/xml/xml_validator.asp
Post by Mitchelle Johnson
;tag=661a086d</sip_full_from>
------------------------^
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
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
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
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
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://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
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://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
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
--
*Brian West*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
ClueCon 2015 Call for Speakers
<https://www.cluecon.com/call-for-speakers/> | Register
<https://freeswitch.com/cart.php?gid=1> TODAY! | Reddit: /r/freeswitch
<https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________
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
Mitchelle Johnson
2015-05-18 18:01:16 UTC
Permalink
Hi Saumar,

I still get the same error even after making the changes suggested by you.

Thanks,
Mitchelle
Post by Mitchelle Johnson
Hi,
I will generate a new thread on billsec tag of xml cdr.
Thanks,
Mitchelle
On Mon, May 18, 2015 at 10:20 PM, Mitchelle Johnson <
Post by Mitchelle Johnson
Hi Brian,
I also wanted to confirm about the 'billsec' in the xml cdr. It behaves
abnormally. Even if the call is not answered it shows some value inspite of
showing 0.
Please help.
Thanks,
Mitchelle
Post by Brian West
The issue is already reported, and has a patch pending testing.
https://freeswitch.org/jira/browse/FS-7258
That patch needs some testing! It will get merged and fix this issue
but not without more testing.
On Mon, May 18, 2015 at 11:40 AM, Mitchelle Johnson <
Post by Mitchelle Johnson
Hi Saumar,
Thanks a lot for your help. I will do as you have said and would report
if the issue is not resolved.
Regards,
Mitchelle
Post by Saumar Hajjar
The file is "src/switch_utils.c"
Edit this file, replace the function "switch_url_encode" and rebuild.
https://freeswitch.org/confluence/display/FREESWITCH/Installation
Hi 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
Post by Saumar Hajjar
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;
}
Thanks Sergey,
Could you please tell me how to apply changes in off #192 pull request?
Thanks,
Mitchelle
Post by 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 <
Post by 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 <
Post by Sergey Safarov
See https://freeswitch.org/jira/browse/FS-7258
On Sat, May 16, 2015 at 10:44 AM, Mitchelle Johnson <
Post by 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
Location: http://www.w3schools.com/xml/xml_validator.asp
Post by Mitchelle Johnson
;tag=661a086d</sip_full_from>
------------------------^
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
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
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
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
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://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
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://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
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
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
*Brian West*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
ClueCon 2015 Call for Speakers
<https://www.cluecon.com/call-for-speakers/> | Register
<https://freeswitch.com/cart.php?gid=1> TODAY! | Reddit: /r/freeswitch
<https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________
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
Loading...