<div dir="ltr"><div><div>Hi Saumar,<br><br>Thanks a lot for your help. I will do as you have said and would report if the issue is not resolved.<br><br></div>Regards,<br></div>Mitchelle <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 18, 2015 at 9:09 PM, Saumar Hajjar <span dir="ltr">&lt;<a href="mailto:saumar@uol.com.br" target="_blank">saumar@uol.com.br</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    The file is  &quot;src/switch_utils.c&quot;<br>
    Edit this file, replace the function &quot;switch_url_encode&quot; and
    rebuild.<br>
    <br>
    <a href="https://freeswitch.org/confluence/display/FREESWITCH/Installation" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Installation</a><div><div class="h5"><br>
    <br>
    <br>
    <div>On 18/05/2015 02:37, Mitchelle Johnson
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>Hi Saumar,<br>
            </div>
            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..<br>
            <br>
          </div>
          Thanks,<br>
        </div>
        Mitchelle<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Sun, May 17, 2015 at 7:21 PM, Saumar
          Hajjar <span dir="ltr">&lt;<a href="mailto:saumar@uol.com.br" target="_blank">saumar@uol.com.br</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hi Mitchelle,<br>
              <br>
              I&#39;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.<br>
              Shortly after that, I updated my setup to a more recent
              master and xml cdrs got broken again.<br>
              <br>
              broken 1.4.18+git~20150312T185523Z~4eed221b69~64bit (git
              4eed221 2015-03-12 18:55:23Z 64bit)<br>
              works 1.5.15b+git~20150117T062211Z~46cf8a4dce~64bit (git
              46cf8a4 2015-01-17 06:22:11Z 64bit)<br>
              broken 1.5.15b+git~20150421T235828Z~a4d877c189~64bit (git
              a4d877c 2015-04-21 23:58:28Z 64bit) <br>
              <br>
              Below you&#39;ll find what I&#39;m using in all versions I have
              installed now:<br>
              <br>
              // switch_utils.c<br>
              SWITCH_DECLARE(char *) switch_url_encode(const char *url,
              char *buf, size_t len)<br>
              {<br>
                  const char *p;<br>
                  size_t x = 0;<br>
                  const char urlunsafe[] = &quot;\r\n
              \&quot;#%&amp;+:;&lt;=&gt;?@[\\]^`{|}&quot;;<br>
                  const char hex[] = &quot;0123456789ABCDEF&quot;;<br>
              <br>
                  if (!buf) {<br>
                      return 0;<br>
                  }<br>
              <br>
                  if (!url) {<br>
                      return 0;<br>
                  }<br>
              <br>
                  len--;<br>
              <br>
                  for (p = url; *p; p++) {<br>
                      if (x &gt;= len) {<br>
                          break;<br>
                      }<br>
                      if (*p &lt; &#39; &#39; || *p &gt; &#39;~&#39; ||
              strchr(urlunsafe, *p)) {<br>
                          if ((x + 3) &gt; len) {<br>
                              break;<br>
                          }<br>
                          buf[x++] = &#39;%&#39;;<br>
                          buf[x++] = hex[(*p &gt;&gt; 4) &amp; 0x0f];<br>
                          buf[x++] = hex[*p &amp; 0x0f];<br>
                      } else {<br>
                          buf[x++] = *p;<br>
                      }<br>
                  }<br>
                  buf[x] = &#39;\0&#39;;<br>
              <br>
                  return buf;
              <div>
                <div><br>
                  }<br>
                  <br>
                  <div>On 17/05/2015 08:18, Mitchelle Johnson wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>
                        <div>
                          <div>Thanks Sergey, <br>
                          </div>
                          Could you please tell me how to apply changes
                          in off #192 pull request?<br>
                          <br>
                        </div>
                        Thanks,<br>
                      </div>
                      Mitchelle<br>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Sun, May 17, 2015 at
                        4:22 PM, Sergey Safarov <span dir="ltr">&lt;<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@gmail.com</a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                          <div dir="ltr">Mitchelle manually or using
                            patch utility apply changes in off #192 pull
                            request.
                            <div><a href="https://freeswitch.org/stash/projects/FS/repos/freeswitch/pull-requests/192/diff" target="_blank">https://freeswitch.org/stash/projects/FS/repos/freeswitch/pull-requests/192/diff</a><br>
                            </div>
                          </div>
                          <div>
                            <div>
                              <div class="gmail_extra"><br>
                                <div class="gmail_quote">On Sun, May 17,
                                  2015 at 10:57 AM, Mitchelle Johnson <span dir="ltr">&lt;<a href="mailto:mitchelle.bit@gmail.com" target="_blank">mitchelle.bit@gmail.com</a>&gt;</span>
                                  wrote:<br>
                                  <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                    <div dir="ltr">
                                      <div>
                                        <div>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.<br>
                                          <br>
                                        </div>
                                        Thanks,<br>
                                      </div>
                                      Mitchelle<br>
                                    </div>
                                    <div>
                                      <div>
                                        <div class="gmail_extra"><br>
                                          <div class="gmail_quote">On
                                            Sat, May 16, 2015 at 5:50
                                            PM, Sergey Safarov <span dir="ltr">&lt;<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@gmail.com</a>&gt;</span>
                                            wrote:<br>
                                            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                              <div dir="ltr">See <a href="https://freeswitch.org/jira/browse/FS-7258" target="_blank">https://freeswitch.org/jira/browse/FS-7258</a></div>
                                              <div class="gmail_extra"><br>
                                                <div class="gmail_quote"><span>On
                                                    Sat, May 16, 2015 at
                                                    10:44 AM, Mitchelle
                                                    Johnson <span dir="ltr">&lt;<a href="mailto:mitchelle.bit@gmail.com" target="_blank">mitchelle.bit@gmail.com</a>&gt;</span>
                                                    wrote:<br>
                                                  </span>
                                                  <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                                    <div>
                                                      <div>
                                                        <div dir="ltr">
                                                          <div><span>
                                                          <div>
                                                          <div>
                                                          <div>
                                                          <div>Hi,<br>
                                                          </div>
                                                          When I am
                                                          using the web
                                                          server to
                                                          handle xml
                                                          CDR&#39;s the xml
                                                          file which it
                                                          sends gives an
                                                          error.<br>
                                                          </div>
                                                          The error
                                                          being:<br>
                                                          <br>
                                                          XML Parsing
                                                          Error: not
                                                          well-formed<br>
                                                          Location: <a href="http://www.w3schools.com/xml/xml_validator.asp" target="_blank">http://www.w3schools.com/xml/xml_validator.asp</a><br>
                                                          Line Number
                                                          138, Column
                                                          25:<br>
                                                             
                                                          &lt;sip_full_from&gt;&lt;<a href="mailto:sip%3A1001@10.0.0.8" target="_blank">sip:1001@10.0.0.8</a>&gt;;tag=661a086d&lt;/sip_full_from&gt;<br>
------------------------^<br>
                                                          <br>
                                                          </div>
                                                          Please help me
                                                          resolve this.<br>
                                                          <br>
                                                          <br>
                                                          </div>
                                                          </span>Thanks,<br>
                                                          </div>
                                                          Mitchelle<br>
                                                        </div>
                                                        <br>
                                                      </div>
                                                    </div>
_________________________________________________________________________<br>
                                                    Professional
                                                    FreeSWITCH
                                                    Consulting Services:<br>
                                                    <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
                                                    <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
                                                    <br>
                                                    Official FreeSWITCH
                                                    Sites<br>
                                                    <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                                                    <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
                                                    <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                                                    <br>
                                                    FreeSWITCH-users
                                                    mailing list<br>
                                                    <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                                                    <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                                                    UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                                                    <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                                                  </blockquote>
                                                </div>
                                                <br>
                                              </div>
                                              <br>
_________________________________________________________________________<br>
                                              Professional FreeSWITCH
                                              Consulting Services:<br>
                                              <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
                                              <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
                                              <br>
                                              Official FreeSWITCH Sites<br>
                                              <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                                              <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
                                              <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                                              <br>
                                              FreeSWITCH-users mailing
                                              list<br>
                                              <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                                              <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                                              UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                                              <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                                            </blockquote>
                                          </div>
                                          <br>
                                        </div>
                                      </div>
                                    </div>
                                    <br>
_________________________________________________________________________<br>
                                    Professional FreeSWITCH Consulting
                                    Services:<br>
                                    <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
                                    <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
                                    <br>
                                    Official FreeSWITCH Sites<br>
                                    <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                                    <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
                                    <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                                    <br>
                                    FreeSWITCH-users mailing list<br>
                                    <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                                    <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                                    UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                                    <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                                  </blockquote>
                                </div>
                                <br>
                              </div>
                            </div>
                          </div>
                          <br>
_________________________________________________________________________<br>
                          Professional FreeSWITCH Consulting Services:<br>
                          <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
                          <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
                          <br>
                          Official FreeSWITCH Sites<br>
                          <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                          <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
                          <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                          <br>
                          FreeSWITCH-users mailing list<br>
                          <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                          <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                          UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                          <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                    <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></pre>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
            <br>
_________________________________________________________________________<br>
            Professional FreeSWITCH Consulting Services:<br>
            <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
            <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
            <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
            <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
            <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
            UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>