Bad Password ... Somewhere ...
Forum » WikiPBX / Technical Support » Bad Password ... Somewhere ...
Started by: jgalgayjgalgay
On: 1234575680|%e %b %Y, %H:%M %Z|agohover
Number of posts: 5
rss icon RSS: New posts
Summary:
cURL not pulling data
Bad Password ... Somewhere ...
jgalgayjgalgay 1234575680|%e %b %Y, %H:%M %Z|agohover

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.

Here is the error from Wikipbx:
2009-02-14 00:58:28+0000 [-] Starting factory <freepy.fseventlistener.FreeswitchEventListenerFactory
instance at 0x90e7b2c>
2009-02-14 00:58:28+0000 [FreeswitchEventLogger,client] FREEPY: got Reply-Text
2009-02-14 00:58:28+0000 [FreeswitchEventLogger,client] setRequestFinished called. response_content: -ERR invalid
2009-02-14 00:58:28+0000 [FreeswitchEventLogger,client] General error: [Failure instance: Traceback
(failure with no frames): <type 'exceptions.Exception'>: [Failure instance: Traceback (failure with
no frames): <type 'exceptions.Exception'>: Login failed, most likely a bad password
2009-02-14 00:58:28+0000 [FreeswitchEventLogger,client] ]
2009-02-14 00:58:28+0000 [FreeswitchEventLogger,client] ]
2009-02-14 00:58:28+0000 [FreeswitchEventLogger,client] ERROR!!

In the initserver.py file I have removed the password for port binding with this line:

  1. password = "C1uC0m"

password = ""

Here is my /usr/local/freeswitch/conf/autoload_configs/xml_curl.conf.xml:
<configuration name="xml_curl.conf" description="cURL XML Gateway">
<bindings>
<binding name="example">
<param name="gateway-url" value="http://127.0.0.1:8021/xml_dialplan/" bindings="configuration,dialplan,directory"/>
<!— <param name="gateway-credentials" value="username:password"/> —>
</binding>
</bindings>
</configuration>

When I run FS, mod_curl_xml load correctly …
2009-02-14 00:58:19 [CONSOLE] switch_loadable_module.c:857 switch_loadable_module_load_file() Successfully Loaded [mod_xml_curl]
2009-02-14 00:58:19 [NOTICE] switch_loadable_module.c:259 switch_loadable_module_process() Adding API Function 'xml_curl'

But I receive HTTP errors everytime it tries to load config data from wikipbx as follows:

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&section=configuration&tag_name=configuration&key_name=name&key_value=sofia.conf]

and 2 of these —-
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&section=directory&tag_name=&key_name=&key_value=]

As a side note … I do have 1 critical error I don't think is relevant … as follows -
2009-02-14 00:58:26 [CRIT] switch_loadable_module.c:839 switch_loadable_module_load_file() Error Loading module /usr/local/freeswitch/mod/mod_cepstral.so libswift.so.5: cannot open shared object file: No such file or directory

Thanks for any pointers … JJG

Reply  |  Options
Unfold Bad Password ... Somewhere ... by jgalgayjgalgay, 1234575680|%e %b %Y, %H:%M %Z|agohover
Re: Bad Password ... Somewhere ...
jgalgayjgalgay 1234576047|%e %b %Y, %H:%M %Z|agohover

Note … the posting did not take one of the pastes well … as for the initserver.py file ..

the original line …… password = "C1uC0m" …. is commented out (… not sure where the "1." came from)
and replaced with … password = ""

JJG

Reply  |  Options
Unfold Re: Bad Password ... Somewhere ... by jgalgayjgalgay, 1234576047|%e %b %Y, %H:%M %Z|agohover
Re: Bad Password ... Somewhere ...
tleydentleyden 1235355551|%e %b %Y, %H:%M %Z|agohover
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&section=configuration&tag_name=configuration&key_name=name&key_value=sofia.conf]

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.

In the initserver.py file I have removed the password for port binding with this line:
1. password = "C1uC0m"
password = ""

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.

Reply  |  Options
Unfold Re: Bad Password ... Somewhere ... by tleydentleyden, 1235355551|%e %b %Y, %H:%M %Z|agohover
Re: Bad Password ... Somewhere ...
jgalgayjgalgay 1235517351|%e %b %Y, %H:%M %Z|agohover

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 …

2009-02-24 22:53:46 [ERR] mod_event_socket.c:2097 mod_event_socket_runtime() Socket Error! Could not
listen on 127.0.0.1:8086
2009-02-24 22:53:47 [ERR] mod_event_socket.c:2097 mod_event_socket_runtime() Socket Error! Could not
listen on 127.0.0.1:8086
2009-02-24 22:53:47 [ERR] mod_event_socket.c:2097 mod_event_socket_runtime() Socket Error! Could not
listen on 127.0.0.1:8086
2009-02-24 22:53:47 [ERR] mod_event_socket.c:2097 mod_event_socket_runtime() Socket Error! Could not
listen on 127.0.0.1:8086

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?

Thanks again.

Reply  |  Options
Unfold Re: Bad Password ... Somewhere ... by jgalgayjgalgay, 1235517351|%e %b %Y, %H:%M %Z|agohover
Re: Bad Password ... Somewhere ...
tleydentleyden 1236048668|%e %b %Y, %H:%M %Z|agohover

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.

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.

Reply  |  Options
Unfold Re: Bad Password ... Somewhere ... by tleydentleyden, 1236048668|%e %b %Y, %H:%M %Z|agohover
New Post
page_revision: 0, last_edited: 1226259295|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License