<div><div dir="auto">Even better. Upgrade to 1.10 if you can and use MySQL in the core (mod_mariadb), you MUST also enable mod_pgsql even if you won’t use it. The simply configure the DSN in switch.conf. No odbc needed.</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 14 Feb 2020 at 18:59, Nathan Neulinger <<a href="mailto:nneul@mst.edu">nneul@mst.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
  
    
  
  <div>
    <p>I just finished getting out of using mysql with ODBC driver on
      FS. If you have the option, strongly recommend moving to the
      mariadb support in 1.8. <br>
    </p>
    I had an .odbcinst.ini in freeswitch user homedir or possibly
    /etc/odbcinst.init file containing:
    <p>[freeswitch]<br>
      Driver      =
      /local/fslibs/install/lib/libmyodbc5a.so              (path to
      your libmyodbc lib file)<br>
      SERVER      = serverfqdn (this is optional)<br>
      PORT        = 3306<br>
      DATABASE    = databasename (optional)<br>
      OPTION      = 67108864<br>
    </p>
    <p>Then the dsn I previously used was:</p>
    <p>    odbc://INSTANCE:USER:PASSWORD<br>
    </p>
    <p>where INSTANCE = the "freeswitch" in the odbcinst.init, USER =
      the userid on database, PASSWORD = password on db</p>
    <p><br>
    </p>
    <p>mariadb support is much simpler, no extra setup, just use dsn
      like:</p>
    <p><br>
    </p>
    <p>   
mariadb://Server=serverfqdn;Database=databasname;Uid=userid;Pwd=password;:<br>
    </p>
    <p><br>
    </p>
    <p>and yes, you want that ;: at the end)<br>
    </p>
    <p><br>
    </p>
    <p>-- Nathan<br>
    </p></div><div>
    <div>On 2/14/20 5:31 PM, Joli Martinez
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">I have tried the following code in the
                switch.conf.xml file and did not work.  I went ahead and
                have followed the instructions in the link below, but I
                can't seem to access the "<a href="https://freeswitch.org/confluence/pages/editpage.action?pageId=6586653#UsingODBCinthecore-CompileFreeSWITCHwithODBCsupport" rel="nofollow" target="_blank">Compile FreeSWITCH with ODBC
                  Support</a><font face="-apple-system,
                  BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu,
                  Fira Sans, Droid Sans, Helvetica Neue, sans-serif" style="font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;color:rgb(23,43,77)"><span style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif">"
                    section.</span></font></div>
              <div dir="ltr"><font face="-apple-system,
                  BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu,
                  Fira Sans, Droid Sans, Helvetica Neue, sans-serif" style="font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;color:rgb(23,43,77)"><span style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif">We are
                    running freeswitch 1.6.19 and it was originally
                    installed from the Debian repos.  (yes I know it is
                    an old build and we will upgrade, but it shouldn't
                    affect what I am trying to do at the moment)</span><br>
                </font>
                <div><br>
                </div>
                <div><param name="core-db-dsn"
value="odbc://DRIVER=mysql;SERVER=<ip>;UID=devsca01;PWD=<password>;DATABASE=devsca01"><br>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div><a href="https://freeswitch.org/confluence/display/FREESWITCH/Using+ODBC+in+the+core" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Using+ODBC+in+the+core</a><br>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>I have created a remote DB and gave it the proper
                  permissions.  When I tested it, it appears to connect,
                  but not sure where to go from here.</div>
                <div><br>
                </div>
                <div>
                  <div>root@dev-sca01a:/etc/freeswitch# isql -v devsca01
                      </div>
                  <div>+---------------------------------------+</div>
                  <div>| Connected!                            |</div>
                  <div>|                                       |</div>
                  <div>| sql-statement                         |</div>
                  <div>| help [tablename]                      |</div>
                  <div>| quit                                  |</div>
                  <div>|                                       |</div>
                  <div>+---------------------------------------+</div>
                  <div>SQL> </div>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Fri, Feb 14, 2020 at 12:36
          PM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
          <div>
            <div dir="auto">That’s right. You don’t need to do anything
              else. Just make sure the user you setup in freeswitch has
              rights to create db, tables, etc.</div>
          </div>
          <div><br>
            <div class="gmail_quote">
              <div dir="ltr" class="gmail_attr">On Fri, 14 Feb 2020 at
                11:59, Joli Martinez <<a href="mailto:mrjoli021@gmail.com" target="_blank">mrjoli021@gmail.com</a>>
                wrote:<br>
              </div>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
                <div dir="ltr">Hello,
                  <div><br>
                  </div>
                  <div>So if I understand correctly.  I will create a
                    new mysql DB, update the switch.conf.xml and
                     restart FS.</div>
                  <div><br>
                  </div>
                  <div>Is that correct?</div>
                </div>
                <br>
                <div class="gmail_quote">
                  <div dir="ltr" class="gmail_attr">On Fri, Feb 14, 2020
                    at 10:30 AM Giovanni Maruzzelli <<a href="mailto:gmaruzz@gmail.com" target="_blank">gmaruzz@gmail.com</a>>
                    wrote:<br>
                  </div>
                  <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
                    <div dir="ltr">
                      <div>Hello,</div>
                      <div><br>
                      </div>
                      <div>you don't need to import anything, all tables
                        are created runtime, and they are for internal
                        FreeSWITCH usage, so FS will populate them, you
                        do not need to do anything. Obviously, you will
                        lose all registrations, until phones
                        re-register.</div>
                      <div><br>
                      </div>
                      <div>Do a lab, and experiment a little to get the
                        Knack of it</div>
                      <div><br>
                      </div>
                      <div>-giovanni</div>
                      <br>
                    </div>
                    <br>
                    <div class="gmail_quote">
                      <div dir="ltr" class="gmail_attr">On Fri, Feb 14,
                        2020 at 4:03 PM Joli Martinez <<a href="mailto:mrjoli021@gmail.com" target="_blank">mrjoli021@gmail.com</a>>
                        wrote:<br>
                      </div>
                      <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
                        <div dir="ltr">Hello,
                          <div><br>
                          </div>
                          <div>We have several freeswitch boxes that are
                            running sqlite.  We have outgrown this and
                            need to move the DB to mySQL.  Not sure how
                            to import it, or if there is a procedure
                            already in place for this.  What would be
                            the best option for this?</div>
                          <div><br>
                          </div>
                          <div>let me know</div>
                        </div>
_________________________________________________________________________<br>
                        <br>
                        The FreeSWITCH project is sponsored by
                        SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
                        Enhance your FreeSWITCH install with disruptive
                        priced SMS and PSTN services.<br>
                        Build your next product on our scalable cloud
                        platform.<br>
                        <br>
                        Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
                        <br>
                        Professional FreeSWITCH Services<br>
                        <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
                        <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
                        <br>
                        Official FreeSWITCH Sites<br>
                        <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
                        <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
                        <a href="https://cluecon.com" rel="noreferrer" target="_blank">https://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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                        UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                        <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote>
                    </div>
                    <br clear="all">
                    <br>
                    -- <br>
                    <div dir="ltr">Sincerely,<br>
                      <br>
                      Giovanni Maruzzelli<br>
                      OpenTelecom.IT<br>
                      cell: +39 347 266 56 18<br>
                      <br>
                    </div>
_________________________________________________________________________<br>
                    <br>
                    The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
                    Enhance your FreeSWITCH install with disruptive
                    priced SMS and PSTN services.<br>
                    Build your next product on our scalable cloud
                    platform.<br>
                    <br>
                    Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
                    <br>
                    Professional FreeSWITCH Services<br>
                    <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
                    <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
                    <br>
                    Official FreeSWITCH Sites<br>
                    <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
                    <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
                    <a href="https://cluecon.com" rel="noreferrer" target="_blank">https://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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                    UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                    <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote>
                </div>
_________________________________________________________________________<br>
                <br>
                The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
                Enhance your FreeSWITCH install with disruptive priced
                SMS and PSTN services.<br>
                Build your next product on our scalable cloud platform.<br>
                <br>
                Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
                <br>
                Professional FreeSWITCH Services<br>
                <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
                <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
                <br>
                Official FreeSWITCH Sites<br>
                <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
                <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
                <a href="https://cluecon.com" rel="noreferrer" target="_blank">https://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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote>
            </div>
          </div>
          -- <br>
          <div dir="ltr">
            <div dir="ltr">
              <div>Regards,</div>
              <div><br>
              </div>
              David Villasmil
              <div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div>
              <div>phone: +34669448337</div>
            </div>
          </div>
_________________________________________________________________________<br>
          <br>
          The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
          Enhance your FreeSWITCH install with disruptive priced SMS and
          PSTN services.<br>
          Build your next product on our scalable cloud platform.<br>
          <br>
          Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
          <br>
          Professional FreeSWITCH Services<br>
          <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
          <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
          <br>
          Official FreeSWITCH Sites<br>
          <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
          <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
          <a href="https://cluecon.com" rel="noreferrer" target="_blank">https://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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
          UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
          <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote>
      </div>
      <br>
      <fieldset></fieldset>
      <pre style="font-family:monospace">_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" target="_blank" style="font-family:monospace">https://signalwire.com</a>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time <a href="https://signalwire.community" target="_blank" style="font-family:monospace">https://signalwire.community</a>

Professional FreeSWITCH Services
<a href="mailto:sales@freeswitch.com" target="_blank" style="font-family:monospace">sales@freeswitch.com</a>
<a href="https://freeswitch.com" target="_blank" style="font-family:monospace">https://freeswitch.com</a>

Official FreeSWITCH Sites
<a href="https://freeswitch.com/oss" target="_blank" style="font-family:monospace">https://freeswitch.com/oss</a>
<a href="https://freeswitch.org/confluence" target="_blank" style="font-family:monospace">https://freeswitch.org/confluence</a>
<a href="https://cluecon.com" target="_blank" style="font-family:monospace">https://cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" style="font-family:monospace">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" style="font-family:monospace">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" style="font-family:monospace">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="https://freeswitch.com" target="_blank" style="font-family:monospace">https://freeswitch.com</a></pre>
    </blockquote>
    <pre cols="120" style="font-family:monospace">-- 
------------------------------------------------------------
Nathan Neulinger                            <a href="mailto:nneul@mst.edu" target="_blank" style="font-family:monospace">nneul@mst.edu</a>
Missouri S&T Information Technology         (573) 341-6679
System Administrator - Architect            (573) 612-1412
System and Desktop Infrastructure Team Manager</pre>
  </div>

_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>