Содержимое xml_odbc.conf.xml
Код: Выделить всё
<configuration name="xml_odbc.conf" description="XML ODBC Configuration">
  <settings>
    <param name="binding" value="directory"/>
    <param name="odbc-dsn" value="freeswitch:fusionpbx:freepswd3"/>
    <param name="debug" value="true"/>
    <param name="keep_files_around" value="true"/>
  </settings>
  <templates>
        <template name="default">
          <xml-odbc-do name="query" on-empty-result-break-to="not-found"
                value="SELECT sip_password FROM freeusers WHERE sip_user = 'usertest';"/>
                 <document type="freeswitch/xml">
                  <section name="directory">
                   <domain name="${domain}">
                    <user id="usertest">
                     <params>
                      <param name="password", value="${sip_password}"/>
                     </params>
                    </user>
                   </domain>
                   </section>
                 </document>
        </template>
        <template name="not-found">
         <document type="freeswitch/xml">
          <section name="result">
                <result status="not found"/>
          </section>
         </document>
        </template>
 <X-PRE-PROCESS cmd="include" data="xml_odbc_templates/*.mysql.xml"/>
  </templates>
</configuration>
Код: Выделить всё
2014-08-20 10:11:17.620337 [INFO] switch_core_sqldb.c:1662 sofia:external-ipv6 Starting SQL thread.
2014-08-20 10:11:17.620489 [INFO] mod_xml_odbc.c:435 DEBUG in xml_odbc_search, header [section]=[directory]
2014-08-20 10:11:17.620495 [INFO] mod_xml_odbc.c:435 DEBUG in xml_odbc_search, header [Event-Name]=[REQUEST_PARAMS]
2014-08-20 10:11:17.620498 [INFO] mod_xml_odbc.c:435 DEBUG in xml_odbc_search, header [Core-UUID]=[2dc32a0c-2839-11e4-ac09-23caad7c50c0]
2014-08-20 10:11:17.620500 [INFO] mod_xml_odbc.c:435 DEBUG in xml_odbc_search, header [FreeSWITCH-Hostname]=[localhost]
2014-08-20 10:11:17.620503 [INFO] mod_xml_odbc.c:435 DEBUG in xml_odbc_search, header [FreeSWITCH-Switchname]=[localhost]
2014-08-20 10:11:17.620505 [INFO] mod_xml_odbc.c:435 DEBUG in xml_odbc_search, header [FreeSWITCH-IPv4]=[192.168.0.139]
2014-08-20 10:11:17.620507 [INFO] mod_xml_odbc.c:435 DEBUG in xml_odbc_search, header [FreeSWITCH-IPv6]=[::1]
2014-08-20 10:11:17.620510 [INFO] mod_xml_odbc.c:435 DEBUG in xml_odbc_search, header [Event-Date-Local]=[2014-08-20 10:11:17]
2014-08-20 10:11:17.620513 [INFO] mod_xml_odbc.c:435 DEBUG in xml_odbc_search, header [Event-Date-GMT]=[Wed, 20 Aug 2014 07:11:17 GMT]
2014-08-20 10:11:17.620515 [INFO] mod_xml_odbc.c:435 DEBUG in xml_odbc_search, header [Event-Date-Timestamp]=[1408518677620453]
2014-08-20 10:11:17.620518 [INFO] mod_xml_odbc.c:435 DEBUG in xml_odbc_search, header [Event-Calling-File]=[sofia.c]
2014-08-20 10:11:17.620521 [INFO] mod_xml_odbc.c:435 DEBUG in xml_odbc_search, header [Event-Calling-Function]=[launch_sofia_worker_threa          d]
2014-08-20 10:11:17.620523 [INFO] mod_xml_odbc.c:435 DEBUG in xml_odbc_search, header [Event-Calling-Line-Number]=[2634]
2014-08-20 10:11:17.620525 [INFO] mod_xml_odbc.c:435 DEBUG in xml_odbc_search, header [Event-Sequence]=[33]
2014-08-20 10:11:17.620528 [INFO] mod_xml_odbc.c:435 DEBUG in xml_odbc_search, header [purpose]=[gateways]
2014-08-20 10:11:17.620530 [INFO] mod_xml_odbc.c:435 DEBUG in xml_odbc_search, header [profile]=[external-ipv6]
2014-08-20 10:11:17.620532 [INFO] mod_xml_odbc.c:341 DEBUG GOING TO RENDER TEMPLATE [default]
2014-08-20 10:11:17.620538 [INFO] mod_xml_odbc.c:234 DEBUG Performing Query:
SELECT sip_password FROM freeusers WHERE sip_user = 'usertest';
2014-08-20 10:11:17.745689 [INFO] mod_xml_odbc.c:451 Debug dump of generated XML:
<document type="freeswitch/xml">
  <section name="directory">
    <domain name="192.168.0.139">
      <user id="usertest">
        <params>
          <param name="password" ,="" value="1213"></param>
        </params>
      </user>
    </domain>
  </section>
</document>
Проблема 2) после /usr/local/freeswitch/bin/freeswitch -nonat сам freeswitch уже не остановить, так и висит в процессах
/usr/local/freeswitch/bin/freeswitch -stop не помогает
kill idprocessa - не помогает
в /var/run/ и /var/lock/subsys/ его тоже не видать
Товарищи, направьте на путь истинный

