[Freeswitch-users] [XML parsing error]

Mitchelle Johnson mitchelle.bit at gmail.com
Mon May 18 09:37:32 MSD 2015


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

On Sun, May 17, 2015 at 7:21 PM, Saumar Hajjar <saumar at uol.com.br> wrote:

>  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;
>
> }
>
> On 17/05/2015 08:18, Mitchelle Johnson wrote:
>
>   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 <s.safarov at gmail.com>
> wrote:
>
>> 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 <
>> mitchelle.bit at gmail.com> wrote:
>>
>>>  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 <s.safarov at gmail.com>
>>> wrote:
>>>
>>>> See https://freeswitch.org/jira/browse/FS-7258
>>>>
>>>> On Sat, May 16, 2015 at 10:44 AM, Mitchelle Johnson <
>>>> mitchelle.bit at gmail.com> wrote:
>>>>
>>>>>     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:1001 at 10.0.0.8>;tag=661a086d</sip_full_from>
>>>>> ------------------------^
>>>>>
>>>>>  Please help me resolve this.
>>>>>
>>>>>
>>>>>  Thanks,
>>>>>  Mitchelle
>>>>>
>>>>>
>>>>> _________________________________________________________________________
>>>>> Professional FreeSWITCH Consulting Services:
>>>>> consulting at 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
>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>> UNSUBSCRIBE:
>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>> http://www.freeswitch.org
>>>>>
>>>>
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at 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
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:
>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> http://www.freeswitch.org
>>>>
>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at 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
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at 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
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: consulting at freeswitch.orghttp://www.freeswitchsolutions.com
>
> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
>
> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at 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
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150518/7489c515/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list