Move config between 16272M and 17084M does not work
Hi, yesterday i spent half a day trying to figure out what was happening in trying to move a configuration (that lookup dynamically via mod_xml_curl directory and dialplan) from FreeSWITCH version 16272M to 17084M . I've done a clean install and just moved only the few lines required by hand. Didn't worked: - On registration dynamic lookup works fine and users can login with password stored on remote server - On dial dynamic lookup of dialplan does not work and die with: 2010-03-25 08:33:47.777741 [ERR] mod_dialplan_xml.c:440 Open of dialplan failed I also tried to get the whoole /usr/local/freeswitch/conf of version "FreeSWITCH Version 1.0.5-20100109-0400 (16272M)" and put it as a replacement on top of the "FreeSWITCH Version 1.0.5-20100321-0400 (17084M)" but the problem remain exactly the same: - Registration works via dynamic lookup via mod_xml_curl - Dialing does not work and dynamic lookup via mod_xml_curl does not work In both case the configuration regarding mod_xml_curl is the following that works on 16272M but does not work on 17084M and is written in autoload_configs/xml_curl.conf.xml <binding name="directory"> <param name="gateway-url" value="http://xxx/directory" bindings="directory"/> <param name="auth-scheme" value="digest"/> </binding> <binding name="dialplan"> <param name="gateway-url" value="http://xxx/dialplan" bindings="dialplan"/> </binding> In both case i see in the log the correct initialization of xml_curl: 2010-03-25 08:29:50.193915 [NOTICE] mod_xml_curl.c:684 Binding [directory] XML Fetch Function [http://xxx/directory] [directory] 2010-03-25 08:29:50.193953 [NOTICE] mod_xml_curl.c:684 Binding [dialplan] XML Fetch Function [http://xxx/dialplan] [dialplan] 2010-03-25 08:29:50.196983 [CONSOLE] switch_loadable_module.c:900 Successfully Loaded [mod_xml_curl] 2010-03-25 08:29:50.197019 [NOTICE] switch_loadable_module.c:272 Adding API Function 'xml_curl' The same configuration works on 16272M but is broken on 17084M . There's some modification that was done to dialplan and/or to mod_xml_curl that could cause this issue? Is there some specific debugging i can do to understand if it's a bug (like it seems) or some configuration parameters changed regarding the dialplan lookup via mod_xml_curl ? Waiting for yours Fabio Pietrosanti
Hi all, i modified the source code in mod_dialplan_xml.c to distinguish between "Open of dialplan failed" error messages. The call die on the dialplan_xml_locate that does not find a dialplan even if it's defined in xml_curl.conf.xml as described below and from the freeswitch.xml the loading of dialplan from file has been removed . I noticed that FS 17084 vs 16272 have a lot of change in mod_dialplan_xml.c , maybe there's some bug and/or some new syntax to be used to make dynamic lookup of dialplan via xml_curl ? Fabio On 25/03/10 08.42, Fabio Pietrosanti (naif) wrote:
Hi,
yesterday i spent half a day trying to figure out what was happening in trying to move a configuration (that lookup dynamically via mod_xml_curl directory and dialplan) from FreeSWITCH version 16272M to 17084M .
I've done a clean install and just moved only the few lines required by hand. Didn't worked: - On registration dynamic lookup works fine and users can login with password stored on remote server - On dial dynamic lookup of dialplan does not work and die with: 2010-03-25 08:33:47.777741 [ERR] mod_dialplan_xml.c:440 Open of dialplan failed
I also tried to get the whoole /usr/local/freeswitch/conf of version "FreeSWITCH Version 1.0.5-20100109-0400 (16272M)" and put it as a replacement on top of the "FreeSWITCH Version 1.0.5-20100321-0400 (17084M)" but the problem remain exactly the same: - Registration works via dynamic lookup via mod_xml_curl - Dialing does not work and dynamic lookup via mod_xml_curl does not work
In both case the configuration regarding mod_xml_curl is the following that works on 16272M but does not work on 17084M and is written in autoload_configs/xml_curl.conf.xml <binding name="directory"> <param name="gateway-url" value="http://xxx/directory" bindings="directory"/> <param name="auth-scheme" value="digest"/> </binding> <binding name="dialplan"> <param name="gateway-url" value="http://xxx/dialplan" bindings="dialplan"/> </binding>
In both case i see in the log the correct initialization of xml_curl: 2010-03-25 08:29:50.193915 [NOTICE] mod_xml_curl.c:684 Binding [directory] XML Fetch Function [http://xxx/directory] [directory] 2010-03-25 08:29:50.193953 [NOTICE] mod_xml_curl.c:684 Binding [dialplan] XML Fetch Function [http://xxx/dialplan] [dialplan] 2010-03-25 08:29:50.196983 [CONSOLE] switch_loadable_module.c:900 Successfully Loaded [mod_xml_curl] 2010-03-25 08:29:50.197019 [NOTICE] switch_loadable_module.c:272 Adding API Function 'xml_curl'
The same configuration works on 16272M but is broken on 17084M .
There's some modification that was done to dialplan and/or to mod_xml_curl that could cause this issue?
Is there some specific debugging i can do to understand if it's a bug (like it seems) or some configuration parameters changed regarding the dialplan lookup via mod_xml_curl ?
Waiting for yours
Fabio Pietrosanti
Nothing between these two should have broken... in fact configs from two years ago should work. We work hard to make sure we don't break anything. /b On Mar 25, 2010, at 2:42 AM, Fabio Pietrosanti (naif) wrote:
The same configuration works on 16272M but is broken on 17084M .
I followed on both installation the same procedure: mkdir 23.03.2010-FS cd 23.03.2010-FS apt-get install subversion autoconf automake libtool gcc g++ make ncurses-dev libexpat1-dev zlib1g-dev libssl-dev libgnutls-dev libcurl3-openssl-dev automake1.9 wget http://latest.freeswitch.org/freeswitch-1.0.5-latest.tar.gz tar zxvf freeswitch-1.0.5-latest.tar.gz cd freeswitch-1.0.5-20100321-0400 vim modules.conf xml_int/mod_xml_curl applications/mod_curl applications/mod_cidlookup dialplans/mod_dialplan_directory applications/mod_directory directories/mod_ldap endpoints/mod_dingaling say/mod_say_it applications/mod_spy applications/mod_stress # 23.03.2010 make current #update from SVN make samples make install && make cd-sounds-install && make cd-moh-install Later i just made: mv /usr/local/freeswitch/conf /usr/local/freeswitch/conf.disabled cp -pr /usr/local/freeswitch.old/conf /usr/local/freeswitch/conf So the configurations are fully aligned (is the same), the modules.conf during the compilation is aligned, the operating system is aligned (debian/stable up-to-date), verified that mod\* is aligned . The dynamic xml_curl lookup for REGISTER works. The dynamic xml_curl lookup for dialplan does not work. The function that fail is dialplan_xml_locate with error: 2010-03-25 11:59:42.877926 [ERR] mod_dialplan_xml.c:440 Open of dialplan failed I verified with tcpdump that it does not even try to make the xml_curl lookup . The configuration file of xml_curl.conf.xml is *the same* . I noticed that mod_dialplan_xml.c changed in several parts between 16272 and 17084 revisions. Some place where to look at for a deep investigation? Enable dialplan debugging somehow? Fabio On 25/03/10 14.26, Brian West wrote:
Nothing between these two should have broken... in fact configs from two years ago should work. We work hard to make sure we don't break anything.
/b
On Mar 25, 2010, at 2:42 AM, Fabio Pietrosanti (naif) wrote:
The same configuration works on 16272M but is broken on 17084M .
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Tracked down to a patch that caused a regression in r16997 update to latest and the patch is reverted. On Thu, Mar 25, 2010 at 8:40 AM, Fabio Pietrosanti (naif) < lists@infosecurity.ch> wrote:
I followed on both installation the same procedure: mkdir 23.03.2010-FS cd 23.03.2010-FS apt-get install subversion autoconf automake libtool gcc g++ make ncurses-dev libexpat1-dev zlib1g-dev libssl-dev libgnutls-dev libcurl3-openssl-dev automake1.9
wget http://latest.freeswitch.org/freeswitch-1.0.5-latest.tar.gz tar zxvf freeswitch-1.0.5-latest.tar.gz cd freeswitch-1.0.5-20100321-0400 vim modules.conf xml_int/mod_xml_curl applications/mod_curl applications/mod_cidlookup dialplans/mod_dialplan_directory applications/mod_directory directories/mod_ldap endpoints/mod_dingaling say/mod_say_it applications/mod_spy applications/mod_stress
# 23.03.2010 make current #update from SVN make samples make install && make cd-sounds-install && make cd-moh-install
Later i just made: mv /usr/local/freeswitch/conf /usr/local/freeswitch/conf.disabled cp -pr /usr/local/freeswitch.old/conf /usr/local/freeswitch/conf
So the configurations are fully aligned (is the same), the modules.conf during the compilation is aligned, the operating system is aligned (debian/stable up-to-date), verified that mod\* is aligned .
The dynamic xml_curl lookup for REGISTER works. The dynamic xml_curl lookup for dialplan does not work.
The function that fail is dialplan_xml_locate with error: 2010-03-25 11:59:42.877926 [ERR] mod_dialplan_xml.c:440 Open of dialplan failed
I verified with tcpdump that it does not even try to make the xml_curl lookup .
The configuration file of xml_curl.conf.xml is *the same* .
I noticed that mod_dialplan_xml.c changed in several parts between 16272 and 17084 revisions.
Some place where to look at for a deep investigation? Enable dialplan debugging somehow?
Fabio On 25/03/10 14.26, Brian West wrote:
Nothing between these two should have broken... in fact configs from two years ago should work. We work hard to make sure we don't break anything.
/b
On Mar 25, 2010, at 2:42 AM, Fabio Pietrosanti (naif) wrote:
The same configuration works on 16272M but is broken on 17084M .
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
participants (3)
-
Anthony Minessale
-
Brian West
-
Fabio Pietrosanti (naif)