<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    The file is  "src/switch_utils.c"<br>
    Edit this file, replace the function "switch_url_encode" and
    rebuild.<br>
    <br>
    <a class="moz-txt-link-freetext" href="https://freeswitch.org/confluence/display/FREESWITCH/Installation">https://freeswitch.org/confluence/display/FREESWITCH/Installation</a><br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 18/05/2015 02:37, Mitchelle Johnson
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANBm6SyXEfkyFkReYkrB+=LKBkYZv5-0hWuHqWBY-gMbMWLYgQ@mail.gmail.com"
      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 moz-do-not-send="true"
              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'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'll find what I'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[] = "\r\n
              \"#%&amp;+:;&lt;=&gt;?@[\\]^`{|}";<br>
                  const char hex[] = "0123456789ABCDEF";<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; ' ' || *p &gt; '~' ||
              strchr(urlunsafe, *p)) {<br>
                          if ((x + 3) &gt; len) {<br>
                              break;<br>
                          }<br>
                          buf[x++] = '%';<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] = '\0';<br>
              <br>
                  return buf;
              <div>
                <div class="h5"><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
                            moz-do-not-send="true"
                            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 moz-do-not-send="true"
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
                                      moz-do-not-send="true"
                                      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
                                                moz-do-not-send="true"
                                                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
                                                  moz-do-not-send="true"
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
                                                        moz-do-not-send="true"
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'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
moz-do-not-send="true"
                                                          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
moz-do-not-send="true" 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
                                                      moz-do-not-send="true"
href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
                                                    <a
                                                      moz-do-not-send="true"
href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
                                                    <br>
                                                    Official FreeSWITCH
                                                    Sites<br>
                                                    <a
                                                      moz-do-not-send="true"
href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                                                    <a
                                                      moz-do-not-send="true"
href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
                                                    <a
                                                      moz-do-not-send="true"
href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                                                    <br>
                                                    FreeSWITCH-users
                                                    mailing list<br>
                                                    <a
                                                      moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                                                    <a
                                                      moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                                                      target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                                                    UNSUBSCRIBE:<a
                                                      moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                                                      target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                                                    <a
                                                      moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
                                              <a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
                                              <br>
                                              Official FreeSWITCH Sites<br>
                                              <a moz-do-not-send="true"
href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                                              <a moz-do-not-send="true"
href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
                                              <a moz-do-not-send="true"
href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                                              <br>
                                              FreeSWITCH-users mailing
                                              list<br>
                                              <a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                                              <a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                                                target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                                              UNSUBSCRIBE:<a
                                                moz-do-not-send="true"
                                                href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                                                target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                                              <a moz-do-not-send="true"
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 moz-do-not-send="true"
                                      href="mailto:consulting@freeswitch.org"
                                      target="_blank">consulting@freeswitch.org</a><br>
                                    <a moz-do-not-send="true"
                                      href="http://www.freeswitchsolutions.com"
                                      target="_blank">http://www.freeswitchsolutions.com</a><br>
                                    <br>
                                    Official FreeSWITCH Sites<br>
                                    <a moz-do-not-send="true"
                                      href="http://www.freeswitch.org"
                                      target="_blank">http://www.freeswitch.org</a><br>
                                    <a moz-do-not-send="true"
                                      href="http://confluence.freeswitch.org"
                                      target="_blank">http://confluence.freeswitch.org</a><br>
                                    <a moz-do-not-send="true"
                                      href="http://www.cluecon.com"
                                      target="_blank">http://www.cluecon.com</a><br>
                                    <br>
                                    FreeSWITCH-users mailing list<br>
                                    <a moz-do-not-send="true"
                                      href="mailto:FreeSWITCH-users@lists.freeswitch.org"
                                      target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                                    <a moz-do-not-send="true"
                                      href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                                      target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                                    UNSUBSCRIBE:<a
                                      moz-do-not-send="true"
                                      href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                                      target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                                    <a moz-do-not-send="true"
                                      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 moz-do-not-send="true"
                            href="mailto:consulting@freeswitch.org"
                            target="_blank">consulting@freeswitch.org</a><br>
                          <a moz-do-not-send="true"
                            href="http://www.freeswitchsolutions.com"
                            target="_blank">http://www.freeswitchsolutions.com</a><br>
                          <br>
                          Official FreeSWITCH Sites<br>
                          <a moz-do-not-send="true"
                            href="http://www.freeswitch.org"
                            target="_blank">http://www.freeswitch.org</a><br>
                          <a moz-do-not-send="true"
                            href="http://confluence.freeswitch.org"
                            target="_blank">http://confluence.freeswitch.org</a><br>
                          <a moz-do-not-send="true"
                            href="http://www.cluecon.com"
                            target="_blank">http://www.cluecon.com</a><br>
                          <br>
                          FreeSWITCH-users mailing list<br>
                          <a moz-do-not-send="true"
                            href="mailto:FreeSWITCH-users@lists.freeswitch.org"
                            target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                          <a moz-do-not-send="true"
                            href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                            target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                          UNSUBSCRIBE:<a moz-do-not-send="true"
                            href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                            target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                          <a moz-do-not-send="true"
                            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 moz-do-not-send="true" href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a moz-do-not-send="true" href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://www.cluecon.com"
              target="_blank">http://www.cluecon.com</a><br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
            UNSUBSCRIBE:<a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>