Multi server

Hi everyone,

I have fop2, installed in of my server, I have another remote server (not locally), My FOP2 is working great wiht my main server, I am trying to and the remote server but, not working for me, if I run fop2_server --test, I have "connecting manager ok", which my 2 servers connections.

Here is what I have in fop2.cfg file

"
;Main_Server definition
manager_host=main_server_ip
manager_port=5038
manager_user=main_server_manager_user
manager_secret=main_server_manager_secret

;Server02 definition
manager_host=server02_domain_host
manager_port=5038
manager_user=server02_manager_user
manager_secret=server02_manager_secret
"

then when I logins to my flash I get "manager connection problem" error

Can you please help..

Comments

  • Run fop2_server in debug mode to see the actual manager connections and look for errors there:
    service fop2 stop
    cd /usr/local/fop2
    ./fop2_server -X 3
    

    If you see that warning, is because one of your connections is failing.
  • Thanks for the reply

    Here is what I have after the debug.


    Cannot send command to IO::Socket::INET=GLOB(0x115d9cf0) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0x115d9cf0) (unauthenticated or connection failed)

    Cannot send command to (unauthenticated or connection failed)
    Cannot send command to (unauthenticated or connection failed)
  • As you see there is a connection problem, probably to your 2nd/remote asterisk ami, be sure you allow connections from remote ips. Test the connection by telnetting to port 5038 on the remote server.
  • I'm facing the same problem here:
    "Cannot send command to IO::Socket::INET=GLOB(0x148ae5d0) (unauthenticated or connection failed)"

    But I can login to the remote server from the box where I'm running FOP2:

    Trying 50.XXX.XXX.29...
    Connected to rrcs-50-XXX-XXX-29.sw.biz.rr.com (50.XXX.XXX.29).
    Escape character is '^]'.
    Asterisk Call Manager/1.1

    Username and password on the remote server are correct and have been put in the .cfg file:
    ; Dallas
    manager_host=50.XXX.XXX.29
    manager_port=5038
    manager_user=admin
    manager_secret=blablabla

    What else I have to check ?
  • Start fop2_server in debug mode and look at the actual connection between the fop2 server and all of your manager_hosts:
    service fop2 stop
    cd /usr/local/fop2
    script capture.log
    ./fop2_server -X 3
    

    After things settle down, stop capturing:
    ctrl-C
    exit
    service fop2 start
    

    You will have a capture.log file to review, with the actual connection and authorization attempts and their replies.
Sign In or Register to comment.