<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Setting up Fop2 with FreeSWITCH - Trying to bind to Asterisk Manager Port]]></title><description><![CDATA[<p dir="auto">Hi all,<br />
I am trying to install Fop2 to work with FreeSWITCH 1.8~<br />
I have been following the guide here:<br />
<a href="http://members.asternic.biz/knowledge_base/howto-how-to-configure-fop2-to-work-with-freeswitchhttp://" title="members.asternic.biz/knowledge_base/howto-how-to-configure-fop2-to-work-with-freeswitchhttp://" rel="nofollow ugc">members.asternic.biz/knowledge_base/howto-how-to-configure-fop2-to-work-with-freeswitchhttp://</a></p>
<p dir="auto">However, when I come to create the tables required with this command:<br />
<code>php /var/www/html/fop2/admin/update_conf.php 1 1</code><br />
I can see it is still trying to connect to the asterisk manager port on 5038.<br />
Here is the log:</p>
<blockquote>
<pre><code>Wed, 11 Dec 2019 12:53:33 +0000 - Unable to connect to manager 127.0.0.1:5038 (111): Connection refused
Updating buttons for context GENERAL
│ literal                                                                                                                                                                                                                                   
string (368) "256, SQL Error: SELECT CONCAT('SIP/',name) as dial,name as extension,sip.context as context,callerid as name,sip.mailbox,voicemail.password as vmpin,email FROM asterisk.sippeers AS sip LEFT JOIN asterisk.voicemail AS voicemail on sip.name=voicemail.mailbox
SELECT command denied to user 'fop2'@'localhost' for table 'sippeers' (/var/www/html/fop2/admin &gt;/dblib.php, 108"
Called from .../functions.php:2592 [fop2manager_error()]
PHP Fatal error:  Uncaught Error: Call to a member function connect() on null in /var/www/html/fop2 &gt;/admin/functions-custom.php:180
Stack trace:
#0 /var/www/html/fop2/admin/functions.php(115): custom_check_extension_usage()
#1 /var/www/html/fop2/admin/update_conf.php(35): system_all_buttons()
#2 {main}
  thrown in /var/www/html/fop2/admin/functions-custom.php on line 180
</code></pre>
</blockquote>
<p dir="auto">I have noticed if I edit my fop2.cfg file to include the <code>manager_port</code> it reads and tries to connect to whatever I point it at, but it tried to connect to the event socket expecting asterisk to be on the other end of it. When I use the <code>freeswitch_port</code> as the guide above requires, It defaults back to <code>5038</code> and does not seem to read the variable.<br />
Any advice would be greatly appreciated.<br />
Thanks,<br />
Frederick</p>
]]></description><link>https://forum.fop2.com/topic/2774/setting-up-fop2-with-freeswitch-trying-to-bind-to-asterisk-manager-port</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 20:03:06 GMT</lastBuildDate><atom:link href="https://forum.fop2.com/topic/2774.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Dec 2019 13:10:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Setting up Fop2 with FreeSWITCH - Trying to bind to Asterisk Manager Port on Wed, 11 Dec 2019 13:48:10 GMT]]></title><description><![CDATA[<p dir="auto">My apologies, the link does not seem to work, this should:<br />
<a href="http://members.asternic.biz/knowledge_base/howto-how-to-configure-fop2-to-work-with-freeswitch" rel="nofollow ugc">http://members.asternic.biz/knowledge_base/howto-how-to-configure-fop2-to-work-with-freeswitch</a></p>
]]></description><link>https://forum.fop2.com/post/11751</link><guid isPermaLink="true">https://forum.fop2.com/post/11751</guid><dc:creator><![CDATA[Zebedee]]></dc:creator><pubDate>Wed, 11 Dec 2019 13:48:10 GMT</pubDate></item></channel></rss>