Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Plugins
  3. Setting up Fop2 with FreeSWITCH - Trying to bind to Asterisk Manager Port

Setting up Fop2 with FreeSWITCH - Trying to bind to Asterisk Manager Port

Scheduled Pinned Locked Moved Plugins
2 Posts 1 Posters 337 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z
    Z
    Zebedee
    wrote on last edited by
    #1

    Hi all,
    I am trying to install Fop2 to work with FreeSWITCH 1.8~
    I have been following the guide here:
    members.asternic.biz/knowledge_base/howto-how-to-configure-fop2-to-work-with-freeswitchhttp://

    However, when I come to create the tables required with this command:
    php /var/www/html/fop2/admin/update_conf.php 1 1
    I can see it is still trying to connect to the asterisk manager port on 5038.
    Here is the log:

    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 >/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 >/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
    

    I have noticed if I edit my fop2.cfg file to include the manager_port 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 freeswitch_port as the guide above requires, It defaults back to 5038 and does not seem to read the variable.
    Any advice would be greatly appreciated.
    Thanks,
    Frederick

    1 Reply Last reply
    0
    • Z
      Z
      Zebedee
      wrote on last edited by
      #2

      My apologies, the link does not seem to work, this should:
      http://members.asternic.biz/knowledge_base/howto-how-to-configure-fop2-to-work-with-freeswitch

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better šŸ’—

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups