Hi Nicolás,
I am making some progress here :)
I now can start the fop_server successfully - having installed the 2.27 version - and as you said, without needing to create a symlink for libcrypto libraries. netstat -nl now shows listening on port 4445 :)
Unfortunatelly I still cannot login in successfully. Not with my extension, which has enabled its voicemail, and not with a user, defined in fop2.cfg. (I tried also with uncommented button.cfg, and also with deactivated addons on my browser, even stopped iptables service to be sure, it is not a problem with the firewall)
So I decided to execute the shell script autoconfig-users-freepbx.sh manually to see what happens, and got this error:
sh autoconfig-users-freepbx.sh
autoconfig-users-freepbx.sh: line 32: syntax error near unexpected token `<'
autoconfig-users-freepbx.sh: line 32: `done < <( mysql -NB -u $DBUSER -p$DBPASS -h $DBHOST $DBNAME -e "SHOW tables FROM \`$DBNAME\` LIKE 'fop2users'" )'
repetition of my install steps:
- wget file to /usr/src and untarred it
- cd to created fop2 directory and executed make install
- modified fop2.cfg and set manager_user and manager_secret
- created /usr/local/fop2/tmp
- executed export PAR_GLOBAL_TMPDIR=/usr/local/fop2/tmp/
- cd /usr/local/fop2 and executed ./fop_server --test
-> Flash Operator Panel 2 - License file fop2.lic not found.
Running in Demo Mode
Connection to manager OK!
So I started server as daemon:
- ./fop2_server -d
Then I tried to login with an existing extension, which has a voicemail account configured, and this did not work, then tried with user 622 and pass 1234 which I uncommented in fop2.cfg but this did not let me login eather.
I get attemting to connect to server 1....2.....3.....4 and so on.
Thanks in advance for your help. :)
last thing, I tried is:
fop_server -X 3 and there it seems to be able to connect db as it shows:
127.0.0.1 -> AuthType: md5
127.0.0.1 -> Action: Challenge
127.0.0.1 -> ActionID: 1
127.0.0.1 <- Response: Success
127.0.0.1 <- ActionID: 1
127.0.0.1 <- Challenge: xxxxx
127.0.0.1 -> AuthType: md5
127.0.0.1 -> Events: on
127.0.0.1 -> Username: xxxx
127.0.0.1 -> Action: login
127.0.0.1 -> Key: xxxx
127.0.0.1 -> ActionID: 2
127.0.0.1 <- Response: Success
127.0.0.1 <- ActionID: 2
127.0.0.1 <- Message: Authentication accepted
127.0.0.1 -> Mailbox: xxxx@novm
127.0.0.1 -> Action: MailboxStatus
127.0.0.1 -> ActionID: 3
127.0.0.1 -> Action: Status
127.0.0.1 -> Action: QueueStatus
127.0.0.1 -> Action: Agent
127.0.0.1 -> Action: SipPeers
127.0.0.1 -> Action: IaxPeers
127.0.0.1 -> Action: ParkedCalls
127.0.0.1 -> Command: database show AMPUSER
127.0.0.1 -> Action: Command
127.0.0.1 -> ActionID: 4
127.0.0.1 -> Command: database show DEVICE
127.0.0.1 -> Action: Command
127.0.0.1 -> ActionID: 5
127.0.0.1 -> Command: meetme list xxxx concise
127.0.0.1 -> Action: Command
127.0.0.1 -> ActionID: 6
127.0.0.1 -> Conference: xxxx
127.0.0.1 -> Action: ConfbridgeList
127.0.0.1 -> ActionID: 7
127.0.0.1 -> Command: database show fop2notes
127.0.0.1 -> Action: Command
127.0.0.1 -> ActionID: 8
127.0.0.1 -> Command: database show fop2state
127.0.0.1 -> Action: Command
127.0.0.1 -> ActionID: 9
127.0.0.1 -> Action: CoreSettings
127.0.0.1 -> ActionID: 10
127.0.0.1 <- Event: FullyBooted
127.0.0.1 <- Privilege: system,all
127.0.0.1 <- Status: Fully Booted
127.0.0.1 <- Response: Success
127.0.0.1 <- ActionID: 3
127.0.0.1 <- Message: Mailbox Status
127.0.0.1 <- Mailbox: xxxx@novm
127.0.0.1 <- Waiting: 0
127.0.0.1 -> Mailbox: xxxx@novm
127.0.0.1 -> Action: MailboxCount
127.0.0.1 -> ActionID: 11
127.0.0.1 <- Response: Success
127.0.0.1 <- Message: Channel status will follow
127.0.0.1 <- Event: StatusComplete
127.0.0.1 <- Items: 0
127.0.0.1 <- Response: Success
127.0.0.1 <- Message: Queue status will follow
127.0.0.1 <- Event: QueueParams
127.0.0.1 <- Queue: default
127.0.0.1 <- Max: 0
127.0.0.1 <- Strategy: ringall
127.0.0.1 <- Calls: 0
127.0.0.1 <- Holdtime: 0
127.0.0.1 <- TalkTime: 0
127.0.0.1 <- Completed: 0
127.0.0.1 <- Abandoned: 0
127.0.0.1 <- ServiceLevel: 0
127.0.0.1 <- ServicelevelPerf: 0.0
127.0.0.1 <- Weight: 0
127.0.0.1 <- Event: QueueStatusComplete
127.0.0.1 <- Response: Error
127.0.0.1 <- Message: Invalid/unknown command: Agent. Use Action: List commands to show available commands.
127.0.0.1 <- Response: Success
127.0.0.1 <- EventList: start
127.0.0.1 <- Message: Peer status list will follow
127.0.0.1 <- Event: PeerEntry
127.0.0.1 <- Channeltype: SIP
127.0.0.1 <- ObjectName: xxxx
127.0.0.1 <- ChanObjectType: peer
127.0.0.1 <- IPaddress: -none-
127.0.0.1 <- IPport: 0
127.0.0.1 <- Dynamic: yes
127.0.0.1 <- AutoForcerport: no
127.0.0.1 <- Forcerport: yes
127.0.0.1 <- AutoComedia: no
127.0.0.1 <- Comedia: yes
127.0.0.1 <- VideoSupport: yes
127.0.0.1 <- TextSupport: no
127.0.0.1 <- ACL: yes
127.0.0.1 <- Status: UNKNOWN
127.0.0.1 <- RealtimeDevice: no
127.0.0.1 <- Description:
127.0.0.1 <- Event: PeerEntry
127.0.0.1 <- Channeltype: SIP
127.0.0.1 <- ObjectName: xxxx
127.0.0.1 <- ChanObjectType: peer
127.0.0.1 <- IPaddress: -none-
127.0.0.1 <- IPport: 0
127.0.0.1 <- Dynamic: yes
127.0.0.1 <- AutoForcerport: no
127.0.0.1 <- Forcerport: yes
127.0.0.1 <- AutoComedia: no
127.0.0.1 <- Comedia: yes
127.0.0.1 <- VideoSupport: yes
127.0.0.1 <- TextSupport: no
127.0.0.1 <- ACL: yes
127.0.0.1 <- Status: UNKNOWN
127.0.0.1 <- RealtimeDevice: no
127.0.0.1 <- Description:
and so on for all my peers, followed by the siptrunk connections:
127.0.0.1 <- Event: PeerEntry
127.0.0.1 <- Channeltype: SIP
127.0.0.1 <- ObjectName: <tel.number>
127.0.0.1 <- ChanObjectType: peer
127.0.0.1 <- IPaddress: ip.add.re.ss
127.0.0.1 <- IPport: port
127.0.0.1 <- Dynamic: no
127.0.0.1 <- AutoForcerport: no
127.0.0.1 <- Forcerport: yes
127.0.0.1 <- AutoComedia: no
127.0.0.1 <- Comedia: yes
127.0.0.1 <- VideoSupport: yes
127.0.0.1 <- TextSupport: no
127.0.0.1 <- ACL: no
127.0.0.1 <- Status: Unmonitored
127.0.0.1 <- RealtimeDevice: no
127.0.0.1 <- Description:
....
127.0.0.1 <- Event: PeerEntry
127.0.0.1 <- Channeltype: SIP
127.0.0.1 <- ObjectName: context for outgoing calls
127.0.0.1 <- ChanObjectType: peer
127.0.0.1 <- IPaddress: x.y.z.w
127.0.0.1 <- IPport: port
127.0.0.1 <- Dynamic: no
127.0.0.1 <- AutoForcerport: no
127.0.0.1 <- Forcerport: no
127.0.0.1 <- AutoComedia: no
127.0.0.1 <- Comedia: no
127.0.0.1 <- VideoSupport: yes
127.0.0.1 <- TextSupport: no
127.0.0.1 <- ACL: no
127.0.0.1 <- Status: OK (12 ms)
127.0.0.1 <- RealtimeDevice: no
127.0.0.1 <- Description:
127.0.0.1 <- Event: PeerlistComplete
127.0.0.1 <- EventList: Complete
127.0.0.1 <- ListItems: 46
127.0.0.1 <- Response: Success
127.0.0.1 <- EventList: start
127.0.0.1 <- Message: Peer status list will follow
127.0.0.1 <- Event: PeerlistComplete
127.0.0.1 <- EventList: Complete
127.0.0.1 <- ListItems: 0
127.0.0.1 <- Response: Success
127.0.0.1 <- Message: Parked calls will follow
127.0.0.1 <- Event: ParkedCallsComplete
127.0.0.1 <- Total: 0
127.0.0.1 <- Response: Follows
127.0.0.1 <- Privilege: Command
127.0.0.1 <- ActionID: 4
127.0.0.1 <- /AMPUSER//queues/qnostate
/AMPUSER/xxxx/answermode : disabled
/AMPUSER/xxxx/ccss/cc_agent_policy : generic
/AMPUSER/xxxx/ccss/cc_offer_timer : 30
/AMPUSER/xxxx/ccss/last_number : xxxx
/AMPUSER/xxxx/cfringtimer : 0
/AMPUSER/xxxx/cidnum : xxxx
/AMPUSER/xxxx/concurrency_limit : 0
/AMPUSER/xxxx/device : xxxx
/AMPUSER/xxxx/followme/changecid : default
/AMPUSER/xxxx/followme/ddial : DIRECT
/AMPUSER/xxxx/followme/fixedcid :
/AMPUSER/xxxx/followme/grpconf : DISABLED
/AMPUSER/xxxx/followme/grplist : tel_number#
/AMPUSER/xxxx/followme/grptime : 20
/AMPUSER/xxxx/followme/prering : 0
/AMPUSER/xxxx/language :
/AMPUSER/xxxx/noanswer :
/AMPUSER/xxxx/outboundcid :
/AMPUSER/xxxx/password : secret
/AMPUSER/xxxx/queues/qnostate : usestate
/AMPUSER/xxxx/recording :
/AMPUSER/xxxx/recording/in/external : dontcare
/AMPUSER/xxxx/recording/in/internal : dontcare
/AMPUSER/xxxx/recording/ondemand : disabled
/AMPUSER/xxxx/recording/out/external : dontcare
/AMPUSER/xxxx/recording/out/internal : dontcare
/AMPUSER/xxxx/recording/priority : 10
/AMPUSER/xxxx/ringtimer : 0
/AMPUSER/xxxx/voicemail : novm
and so on for my other extensions
127.0.0.1 -> Action: DBGet
127.0.0.1 -> Family: DEVICE/xxxx
127.0.0.1 -> Key: dial
127.0.0.1 -> ActionID: getDEVICE-xxxx
for all extensions again..
127.0.0.1 <- Response: Follows
127.0.0.1 <- Privilege: Command
127.0.0.1 <- ActionID: 5
127.0.0.1 <- /DEVICE/xxxx/default_user : xxxx
/DEVICE/xxxx/dial : SIP/xxxx
/DEVICE/xxxx/type : fixed
/DEVICE/xxxx/user : xxxx
...
127.0.0.1 <- Response: Follows
127.0.0.1 <- Privilege: Command
C127.0.0.1 <- ActionID: 6
127.0.0.1 <- No such command 'meetme list xxxx concise' (type 'core show help meetme list' for other possible commands)
--END COMMAND--
127.0.0.1 <- Response: Error
127.0.0.1 <- ActionID: 7
127.0.0.1 <- Message: No active conferences.
127.0.0.1 <- Response: Follows
127.0.0.1 <- Privilege: Command
127.0.0.1 <- ActionID: 8
127.0.0.1 <- 0 results found.
--END COMMAND--
127.0.0.1 <- Response: Follows
127.0.0.1 <- Privilege: Command
127.0.0.1 <- ActionID: 9
127.0.0.1 <- 0 results found.
--END COMMAND--
127.0.0.1 <- Response: Success
127.0.0.1 <- ActionID: 10
127.0.0.1 <- AMIversion: 1.3
127.0.0.1 <- AsteriskVersion: 11.2.2
127.0.0.1 <- SystemName:
127.0.0.1 <- CoreMaxCalls: 0
127.0.0.1 <- CoreMaxLoadAvg: 0.000000
127.0.0.1 <- CoreRunUser:
127.0.0.1 <- CoreRunGroup:
127.0.0.1 <- CoreMaxFilehandles: 0
127.0.0.1 <- CoreRealTimeEnabled: No
127.0.0.1 <- CoreCDRenabled: Yes
127.0.0.1 <- CoreHTTPenabled: No
127.0.0.1 <- Response: Success
127.0.0.1 <- ActionID: 11
127.0.0.1 <- Message: Mailbox Message Count
127.0.0.1 <- Mailbox: xxxx@novm
127.0.0.1 <- UrgMessages: 0
127.0.0.1 <- NewMessages: 0
127.0.0.1 <- OldMessages: 0
127.0.0.1 -> Mailbox: xxxx@novm
127.0.0.1 -> Action: MailboxStatus
127.0.0.1 -> ActionID: 12
127.0.0.1 <- Response: Success
127.0.0.1 <- ActionID: getDEVICE-xxxx
127.0.0.1 <- Message: Result will follow
127.0.0.1 <- Event: DBGetResponse
127.0.0.1 <- Family: DEVICE/xxxx
127.0.0.1 <- Key: dial
127.0.0.1 <- Val: SIP/xxxx
127.0.0.1 <- ActionID: getDEVICE-xxxx
127.0.0.1 <- Event: DBGetComplete
127.0.0.1 <- ActionID: getDEVICE-xxxx
.....
127.0.0.1 <- Response: Success
127.0.0.1 <- Message: Channel status will follow
127.0.0.1 <- Event: StatusComplete
127.0.0.1 <- Items: 0
127.0.0.1 <- Response: Success
127.0.0.1 <- Message: Queue status will follow
127.0.0.1 <- Event: QueueParams
127.0.0.1 <- Queue: default
127.0.0.1 <- Max: 0
127.0.0.1 <- Strategy: ringall
127.0.0.1 <- Calls: 0
127.0.0.1 <- Holdtime: 0
127.0.0.1 <- TalkTime: 0
127.0.0.1 <- Completed: 0
127.0.0.1 <- Abandoned: 0
127.0.0.1 <- ServiceLevel: 0
127.0.0.1 <- ServicelevelPerf: 0.0
127.0.0.1 <- Weight: 0
127.0.0.1 <- Event: QueueStatusComplete
127.0.0.1 <- Response: Success
127.0.0.1 <- ActionID: 13
127.0.0.1 <- Message: Mailbox Message Count
127.0.0.1 <- Mailbox: xxxx@novm
127.0.0.1 <- UrgMessages: 0
127.0.0.1 <- NewMessages: 0
127.0.0.1 <- OldMessages: 0
....
127.0.0.1 -> Action: Logoff
Removing /var/www/html/fop2-variables.txt...
Removing ./fop2-variablesGENERAL.txt...
Disconnecting from settings DB
Exiting...