<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Bad Password ... Somewhere ...</title>
		<link>http://wikipbx.subwiki.com/forum/t-130279/bad-password-somewhere</link>
		<description>Posts in the discussion thread &quot;Bad Password ... Somewhere ...&quot; - cURL not pulling data</description>
				<copyright></copyright>
		<lastBuildDate>Mon, 06 Feb 2012 00:44:54 +0000</lastBuildDate>
		
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-130279#post-402235</guid>
				<title>Re: Bad Password ... Somewhere ...</title>
				<link>http://wikipbx.subwiki.com/forum/t-130279/bad-password-somewhere#post-402235</link>
				<description></description>
				<pubDate>Tue, 03 Mar 2009 02:51:08 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>If you are using 8086 for web access, you will need to use a different port for freeswitch's event socket listener mechanism. I'd recommend just using the default of 8021.. They must be different though.</p> <p>The error above is happening because the wikipbx webserver grabs the 8086 port first, and then when freeswitch is started it tries to listen on that port and the OS doesn't let it, so it throws an error.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-130279#post-395780</guid>
				<title>Re: Bad Password ... Somewhere ...</title>
				<link>http://wikipbx.subwiki.com/forum/t-130279/bad-password-somewhere#post-395780</link>
				<description></description>
				<pubDate>Tue, 24 Feb 2009 23:15:51 +0000</pubDate>
				<wikidot:authorName>jgalgay</wikidot:authorName>				<wikidot:authorUserId>266378</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Okay … that seemed to take care of most my issues. Thanks. All seems to be working, except once the data is pulled by FS from Wikipbx … the FS console streams a continuous error of …</p> <p>2009-02-24&nbsp;22:53:46 [ERR] mod_event_socket.c:2097 mod_event_socket_runtime() Socket Error! Could not<br /> listen on 127.0.0.1:8086<br /> 2009-02-24&nbsp;22:53:47 [ERR] mod_event_socket.c:2097 mod_event_socket_runtime() Socket Error! Could not<br /> listen on 127.0.0.1:8086<br /> 2009-02-24&nbsp;22:53:47 [ERR] mod_event_socket.c:2097 mod_event_socket_runtime() Socket Error! Could not<br /> listen on 127.0.0.1:8086<br /> 2009-02-24&nbsp;22:53:47 [ERR] mod_event_socket.c:2097 mod_event_socket_runtime() Socket Error! Could not<br /> listen on 127.0.0.1:8086</p> <p>I am using 8086 on the same box for web access to the Wiki PBX also … does that cause a conflict … or are they supposed to be on the same port?</p> <p>Thanks again.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-130279#post-393441</guid>
				<title>Re: Bad Password ... Somewhere ...</title>
				<link>http://wikipbx.subwiki.com/forum/t-130279/bad-password-somewhere#post-393441</link>
				<description></description>
				<pubDate>Mon, 23 Feb 2009 02:19:11 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <div class="code"> <pre> <code>2009-02-14 00:58:19 [ERR] mod_xml_curl.c:230 xml_url_fetch() Received HTTP error 0 trying to fetch http://127.0.0.1:8021/xml_dialplan/data: [hostname=wikifs1.telivo.net&amp;section=configuration&amp;tag_name=configuration&amp;key_name=name&amp;key_value=sofia.conf]</code> </pre></div> <p>That looks like your xml_curl_conf.xml is pointing to the wrong port. Assuming you used the default port of 8086 for the wikipbx webserver, it should be pointing to 8086 and not 8021. 8021 is the default port for freeswitch to listen on for socket connections.</p> <blockquote> <p>In the initserver.py file I have removed the password for port binding with this line:<br /> 1. password = "C1uC0m"<br /> password = ""</p> </blockquote> <p>I would set some password, not sure how it behaves with blank password. That password is what freeswitch uses to authenticate incoming socket connections. You can set it by logging into wikipbx as the root user and clicking the "Event Socket" link under settings on the left. Then restart freeswitch, if you look at the wikipbx console you should see that password fly by when freeswitch pulls the configuration from wikipbx. Then when wikipbx needs to certain things like show live channels, initiates calls, it will use that same password to connect to freeswitch.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-130279#post-384634</guid>
				<title>Re: Bad Password ... Somewhere ...</title>
				<link>http://wikipbx.subwiki.com/forum/t-130279/bad-password-somewhere#post-384634</link>
				<description></description>
				<pubDate>Sat, 14 Feb 2009 01:47:27 +0000</pubDate>
				<wikidot:authorName>jgalgay</wikidot:authorName>				<wikidot:authorUserId>266378</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Note … the posting did not take one of the pastes well … as for the initserver.py file ..</p> <p>the original line …… password = "C1uC0m" …. is commented out (… not sure where the "1." came from)<br /> and replaced with … password = ""</p> <p>JJG</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-130279#post-384626</guid>
				<title>Bad Password ... Somewhere ...</title>
				<link>http://wikipbx.subwiki.com/forum/t-130279/bad-password-somewhere#post-384626</link>
				<description></description>
				<pubDate>Sat, 14 Feb 2009 01:41:20 +0000</pubDate>
				<wikidot:authorName>jgalgay</wikidot:authorName>				<wikidot:authorUserId>266378</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I have been trying to get FS + wikipbx installed and working in a container of openvz running centos 5.2. I am mostly there … using mysql … but getting an error on WikiPBX when it tries to register on port 8021 and / or FS tries to pull the config.</p> <p>Here is the error from Wikipbx:<br /> 2009-02-14&nbsp;00:58:28+0000 [-] Starting factory &lt;freepy.fseventlistener.FreeswitchEventListenerFactory<br /> instance at 0x90e7b2c&gt;<br /> 2009-02-14&nbsp;00:58:28+0000 [FreeswitchEventLogger,client] FREEPY: got Reply-Text<br /> 2009-02-14&nbsp;00:58:28+0000 [FreeswitchEventLogger,client] setRequestFinished called. response_content: -ERR invalid<br /> 2009-02-14&nbsp;00:58:28+0000 [FreeswitchEventLogger,client] General error: [Failure instance: Traceback<br /> (failure with no frames): &lt;type 'exceptions.Exception'&gt;: [Failure instance: Traceback (failure with<br /> no frames): &lt;type 'exceptions.Exception'&gt;: Login failed, most likely a bad password<br /> 2009-02-14&nbsp;00:58:28+0000 [FreeswitchEventLogger,client] ]<br /> 2009-02-14&nbsp;00:58:28+0000 [FreeswitchEventLogger,client] ]<br /> 2009-02-14&nbsp;00:58:28+0000 [FreeswitchEventLogger,client] ERROR!!</p> <p>In the initserver.py file I have removed the password for port binding with this line:</p> <ol> <li>password = "C1uC0m"</li> </ol> <p>password = ""</p> <p>Here is my /usr/local/freeswitch/conf/autoload_configs/xml_curl.conf.xml:<br /> &lt;configuration name="xml_curl.conf" description="cURL XML Gateway"&gt;<br /> &lt;bindings&gt;<br /> &lt;binding name="example"&gt;<br /> &lt;param name="gateway-url" value="<a href="http://127.0.0.1:8021/xml_dialplan/">http://127.0.0.1:8021/xml_dialplan/</a>" bindings="configuration,dialplan,directory"/&gt;<br /> &lt;!— &lt;param name="gateway-credentials" value="username:password"/&gt; —&gt;<br /> &lt;/binding&gt;<br /> &lt;/bindings&gt;<br /> &lt;/configuration&gt;</p> <p>When I run FS, mod_curl_xml load correctly …<br /> 2009-02-14&nbsp;00:58:19 [CONSOLE] switch_loadable_module.c:857 switch_loadable_module_load_file() Successfully Loaded [mod_xml_curl]<br /> 2009-02-14&nbsp;00:58:19 [NOTICE] switch_loadable_module.c:259 switch_loadable_module_process() Adding API Function 'xml_curl'</p> <p>But I receive HTTP errors everytime it tries to load config data from wikipbx as follows:</p> <p>2009-02-14&nbsp;00:58:19 [ERR] mod_xml_curl.c:230 xml_url_fetch() Received HTTP error 0 trying to fetch <a href="http://127.0.0.1:8021/xml_dialplan/data">http://127.0.0.1:8021/xml_dialplan/data</a>: [hostname=wikifs1.telivo.net&amp;section=configuration&amp;tag_name=configuration&amp;key_name=name&amp;key_value=sofia.conf]</p> <p>and 2 of these —-<br /> 2009-02-14&nbsp;00:58:19 [ERR] mod_xml_curl.c:230 xml_url_fetch() Received HTTP error 0 trying to fetch <a href="http://127.0.0.1:8021/xml_dialplan/">http://127.0.0.1:8021/xml_dialplan/</a><br /> data: [hostname=wikifs1.telivo.net&amp;section=directory&amp;tag_name=&amp;key_name=&amp;key_value=]</p> <p>As a side note … I do have 1 critical error I don't think is relevant … as follows -<br /> 2009-02-14&nbsp;00:58:26 [CRIT] switch_loadable_module.c:839 switch_loadable_module_load_file() Error Loading module /usr/local/freeswitch/mod/mod_cepstral.so <strong>libswift.so.5: cannot open shared object file: No such file or directory</strong></p> <p>Thanks for any pointers … JJG</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>
