[Freeswitch-users] mod_directory - Cannot locate domain
Steven Ayre
steveayre at gmail.com
Tue Feb 19 12:16:24 MSK 2013
That XML looks valid...
Use the command "xml_curl debug_on"
It'll log a filename where the XML CURL result has been saved to a
file, which will let you examine what FS has actually received.
If you run 'xmllint $filename' on it (it's in libxml2-utils) then
you'll have another XML parser check it which might also give you a
hint where the error is from its error message(s).
-Steve
On 19 February 2013 07:16, Lloyd Aloysius <lloyd.aloysius at gmail.com> wrote:
> Brian/Mike,
>ly
>
> There is already a section tag end
>
> <document type="freeswitch/xml">
> <section name="configuration" description="FreeSWITCH Configuration">
> <configuration name="directory.conf" description="Directory">
> <settings>
> <param name="odbc-dsn" value="freeswitch:user:password"/>
> </settings>
> <profiles>
> <profile name="mydomain.com">
> <param name="digit-timeout" value="3000"/>
> <param name="max-menu-attempts" value="3"/>
> <param name="max-result" value="5"/>
> <param name="min-search-digits" value="3"/>
> <param name="new-search-key" value="3"/>
> <param name="next-key" value="6"/>
> <param name="prev-key" value="4"/>
> <param name="search-order" value="last_name"/>
> <param name="select-name-key" value="1"/>
> <param name="switch-order-key" value="*"/>
> <param name="terminator-key" value="#"/>
> </profile>
> </profiles>
> </configuration>
> </section>
> </document>
>
>
> When I reload the modules from cli. switch identify the profiles. But when I
> execute the ..
>
> session:execute("directory", domain_name.." "..domain_name)
>
> I got the
>
> 2013-02-16 21:43:04.621318 [ERR] switch_xml.c:1650 Error[[error near line
> 1]: unclosed tag <document>]
> 2013-02-16 21:43:04.621318 [WARNING] mod_directory.c:545 Cannot locate
> domain mydomain.com
>
> domain_name and profile name is same
>
> Thanks
> Lloyd
>
>
> On Sun, Feb 17, 2013 at 11:44 PM, Michael Collins <msc at freeswitch.org>
> wrote:
>>
>> You forgot to close the <section> tag...
>> -MC
>>
>> On Sat, Feb 16, 2013 at 6:58 PM, Lloyd Aloysius <lloyd.aloysius at gmail.com>
>> wrote:
>>>
>>> Hi All
>>>
>>> I have a strange problem with the mod_directory. I use xml_curl for all
>>> the applications. Only mod_directory giving this trouble.
>>>
>>>
>>> EXECUTE sofia/sipinterface_1/marv at mydomain.com directory(mydomain.com
>>> mydomain.com)
>>> 2013-02-16 21:43:04.601315 [DEBUG] mod_directory.c:518 [mydomain.com]
>>> rwlock
>>>
>>> 2013-02-16 21:43:04.621318 [ERR] switch_xml.c:1650 Error[[error near line
>>> 1]: unclosed tag <document>]
>>> 2013-02-16 21:43:04.621318 [WARNING] mod_directory.c:545 Cannot locate
>>> domain mydomain.com
>>>
>>> --
>>>
>>> my direcotroy.conf xml curl output
>>>
>>> <document type="freeswitch/xml">
>>> <section name="configuration" description="FreeSWITCH Configuration">
>>> <configuration name="directory.conf" description="Directory">
>>> <settings>
>>> <param name="odbc-dsn" value="freeswitch:user:password"/>
>>> </settings>
>>> <profiles>
>>> <profile name="mydomain.com">
>>> <param name="digit-timeout" value="3000"/>
>>> <param name="max-menu-attempts" value="3"/>
>>> <param name="max-result" value="5"/>
>>> <param name="min-search-digits" value="3"/>
>>> <param name="new-search-key" value="3"/>
>>> <param name="next-key" value="6"/>
>>> <param name="prev-key" value="4"/>
>>> <param name="search-order" value="last_name"/>
>>> <param name="select-name-key" value="1"/>
>>> <param name="switch-order-key" value="*"/>
>>> <param name="terminator-key" value="#"/>
>>> </profile>
>>> </profiles>
>>> </configuration>
>>> </document>
>>>
>>> Any help is appreciated.
>>>
>>> Thanks
>>> Lloyd
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>>
>>>
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>
>>
>>
>> --
>> Michael S Collins
>> Twitter: @mercutioviz
>> http://www.FreeSWITCH.org
>> http://www.ClueCon.com
>> http://www.OSTAG.org
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list