<div dir="ltr">Not sure if it was a copy/paste error, but you are missing your closing ">" at the end of the configuration file. Freeswitch will completely fail to start if the cumulative XML cannot be parsed. All you get is a not-very-helpful log in /var/log/messages that says you have an XML parse error.<div><br></div><div><br><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 6, 2018 at 11:14 AM Francesco Facco de Lagarda <<a href="mailto:francesco@delagarda.com">francesco@delagarda.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="IT" link="#0563C1" vlink="#954F72"><div class="m_-4789524550119603083WordSection1"><p class="MsoNormal" style="margin-left:18.0pt"><span lang="EN-US">I have (details below) <u></u><u></u></span></p><ol style="margin-top:0cm" start="1" type="1"><li class="m_-4789524550119603083MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">I have setup a mysql db as specified in docs<u></u><u></u></span></li><li class="m_-4789524550119603083MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">I have setup odbc and tested with isql<u></u><u></u></span></li><li class="m_-4789524550119603083MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">I have installed relevant modules (apt get as that’s how my fs is installed)<u></u><u></u></span></li><li class="m_-4789524550119603083MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">I have included module in autoload modules.conf.xml<u></u><u></u></span></li><li class="m_-4789524550119603083MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">I have configured odbc_cdr.conf<u></u><u></u></span></li></ol><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Every time I try to start freeswitch service it crashes, neither 'systemctl status freeswitch.service' or 'journalctl -xn' give any useful info (6):<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Freewitch runs fine if I exlude odbc_cdr.conf<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Please help<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">DETAILS<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">=========================================================================<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">1. cdr db tables<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">=========================================================================<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">CREATE</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">TABLE</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`cdr_table_a_leg`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`CallId`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`orig_id`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`term_id`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`ClientId`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`IP`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`IPInternal`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`CODEC`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`directGateway`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`redirectGateway`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`CallerID`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`TelNumber`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`TelNumberFull`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`sip_endpoint_disposition`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`sip_current_application`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL<u></u><u></u></span></b></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">COLLATE</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">=</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:green">'latin1_swedish_ci'<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">ENGINE</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">=</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">InnoDB<u></u><u></u></span></b></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue"><u></u> <u></u></span></b></p><p class="MsoNormal" style="text-autospace:none"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">CREATE</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">TABLE</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`cdr_table_b_leg`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`CallId`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`orig_id`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`term_id`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`ClientId`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`IP`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`IPInternal`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`CODEC`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`directGateway`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`redirectGateway`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`CallerID`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`TelNumber`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`TelNumberFull`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`sip_endpoint_disposition`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`sip_current_application`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL<u></u><u></u></span></b></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">COLLATE</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">=</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:green">'latin1_swedish_ci'<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">ENGINE</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">=</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">InnoDB<u></u><u></u></span></b></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">CREATE</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">TABLE</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`cdr_table_both`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`CallId`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`orig_id`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">,<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:olive">`TEST_id`</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">VARCHAR</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">(</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:purple">80</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">DEFAULT</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">NULL<u></u><u></u></span></b></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">)<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">COLLATE</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">=</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:green">'latin1_swedish_ci'<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">ENGINE</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">=</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:maroon">InnoDB<u></u><u></u></span></b></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue">;<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New";color:blue"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">=========================================================================<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">2. ODBC setup<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">=========================================================================<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">/etc/odbcinst.ini<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">[myodbc_mysql]<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Description=ODBC for MySQL<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Driver=/usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Setup=/usr/lib/x86_64-linux-gnu/odbc/libodbcmyS.so<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">UsageCount=2<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">/etc/odbc.ini<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">[freeswitch]<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Description=description of your DSN<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Driver=myodbc_mysql<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Server=localhost<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Port=3306<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Socket=/var/run/mysqld/mysqld.sock<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Database=telispe3<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Username=root<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Password=passw0rd<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Option=3<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">ReadOnly=No<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">[cdr]<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Description=description of your DSN<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Driver=myodbc_mysql<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Server=localhost<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Port=3306<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Socket=/var/run/mysqld/mysqld.sock<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Database=cdr<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Username=root<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Password=passw0rd<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">Option=3<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">ReadOnly=No<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">=========================================================================<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">3. install modules<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">=========================================================================<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">apt-get install freeswitch-mod-odbc-cdr<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">=========================================================================<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">4. modules.conf.xml<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">=========================================================================<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><load module="mod_cdr_csv"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><load module="mod_odbc_cdr" /><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><!-- load module="mod_cdr_sqlite"/ --><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">=========================================================================<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">5. odbc_cdr.conf<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">=========================================================================<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><configuration name="odbc_cdr.conf" description="ODBC CDR Configuration"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <settings><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <!-- <param name="odbc-dsn" value="database:username:password"/> --><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <param name="odbc-dsn" value="odbc://cdr"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <!-- global value can be "a-leg", "b-leg", "both" (default is "both") --><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <param name="log-leg" value="both"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <!-- value can be "always", "never", "on-db-fail" --><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <param name="write-csv" value="on-db-fail"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <!-- location to store csv copy of CDR --><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <param name="csv-path" value="/usr/local/freeswitch/log/odbc_cdr"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <!-- if "csv-path-on-fail" is set, failed INSERTs will be placed here as CSV files otherwise they will be placed in "csv-path" --><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <param name="csv-path-on-fail" value="/usr/local/freeswitch/log/odbc_cdr/failed"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <!-- dump SQL statement after leg ends --><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <param name="debug-sql" value="true"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> </settings><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <tables><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <!-- only a-legs will be inserted into this table --><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <table name="cdr_table_a_leg" log-leg="a-leg"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="CallId" chan-var-name="call_uuid"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="orig_id" chan-var-name="uuid"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="term_id" chan-var-name="sip_call_id"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="ClientId" chan-var-name="uuid"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="IP" chan-var-name="sip_network_ip"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="IPInternal" chan-var-name="sip_via_host"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="CODEC" chan-var-name="read_codec"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="directGateway" chan-var-name="sip_req_host"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="redirectGateway" chan-var-name="sip_redirect_contact_host_0"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="CallerID" chan-var-name="sip_from_user"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="TelNumber" chan-var-name="sip_req_user"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="TelNumberFull" chan-var-name="sip_to_user"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="sip_endpoint_disposition" chan-var-name="endpoint_disposition"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="sip_current_application" chan-var-name="current_application"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> </table><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <!-- only b-legs will be inserted into this table --><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <table name="cdr_table_b_leg" log-leg="b-leg"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="CallId" chan-var-name="call_uuid"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="orig_id" chan-var-name="uuid"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="term_id" chan-var-name="sip_call_id"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="ClientId" chan-var-name="uuid"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="IP" chan-var-name="sip_network_ip"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="IPInternal" chan-var-name="sip_via_host"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="CODEC" chan-var-name="read_codec"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="directGateway" chan-var-name="sip_req_host"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="redirectGateway" chan-var-name="sip_redirect_contact_host_0"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="CallerID" chan-var-name="sip_from_user"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="TelNumber" chan-var-name="sip_req_user"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="TelNumberFull" chan-var-name="sip_to_user"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="sip_endpoint_disposition" chan-var-name="endpoint_disposition"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="sip_current_application" chan-var-name="current_application"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> </table><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <!-- both legs will be inserted into this table --><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <table name="cdr_table_both"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="CallId" chan-var-name="uuid"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="orig_id" chan-var-name="Caller-Unique-ID"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <field name="TEST_id" chan-var-name="sip_from_uri"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> </table><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> </tables><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"></configuration<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">=========================================================================<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">6. systemctl status freeswitch.service<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">=========================================================================<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-left:18.0pt"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Aug 06 14:49:32 telispe3 systemd[1]: Failed to start freeswitch.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Aug 06 14:49:32 telispe3 systemd[1]: Unit freeswitch.service entered failed state.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Aug 06 14:49:32 telispe3 systemd[1]: freeswitch.service holdoff time over, scheduling restart.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Aug 06 14:49:32 telispe3 systemd[1]: Stopping freeswitch...<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Aug 06 14:49:32 telispe3 systemd[1]: Starting freeswitch...<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Aug 06 14:49:32 telispe3 systemd[1]: freeswitch.service start request repeated too quickly, refusing to start.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Aug 06 14:49:32 telispe3 systemd[1]: Failed to start freeswitch.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Aug 06 14:49:32 telispe3 systemd[1]: Unit freeswitch.service entered failed state.<u></u><u></u></span></p></div></div>_________________________________________________________________________<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>