fop2 startup problem
-
Well, I seem to have messed things up pretty good this time.
I muddled my way through installing fop2 and had it basically working (phonebook error, but I see there are instructions for that). I THINK my troubles started when I installed fop2admin. Now when I try starting fop2_server I get the following:
Modification of non-creatable array value attempted, subscript -1 at script/fop2_server.pl line 1505, <CONFIG> line 5.
I have been poking around and trying different configuration changes, but it still won't start. At this point, I have diasbled fop2admin in freepbx and I'm kind of lost here.
Any insight would be appreciated.
-
Run the autoconfig-users-freepbx.sh and autoconfig-buttons-freepbx.sh script and look for errors when doing so. That might give us a hint on what is wrong.
-
I'm not sure if there's a log file I'm missing, but there doesn't appear to be any kind of error, or I don't see it. Here's what I have:
[root@asterisk fop2]# /usr/local/fop2/fop2_server
Modification of non-creatable array value attempted, subscript -1 at script/fop2_server.pl line 1505, <CONFIG> line 5.[root@asterisk fop2]# /usr/local/fop2/autoconfig-users-freepbx.sh
group=Office:ZAP/1,ZAP/2,SIP/500,SIP/503,CONFERENCE/8000,SIP/callcentric,ZAP/15,ENUM/,PARK/default
user=500:123:all:Office
buttonfile=autobuttons.cfg[root@asterisk fop2]# /usr/local/fop2/autoconfig-buttons-freepbx.sh
[CONFERENCE/8000]
type=conference
extension=8000
label=general
context=from-internal
queuecontext=from-queue
extenvoicemail=*[ZAP/1]
type=extension
extension=400
label=Bobs Desk
context=from-internal
queuecontext=from-queue
extenvoicemail=*
privacy=none
group=Office[ZAP/2]
type=extension
extension=401
label=Smurf
context=from-internal
queuecontext=from-queue
extenvoicemail=*
privacy=none
group=Office[ZAP/7]
type=extension
extension=409
label=Spirit-Horse-Ext
context=from-internal
queuecontext=from-queue
extenvoicemail=*
privacy=none[ZAP/8]
type=extension
extension=410
label=House Phone
context=from-internal
queuecontext=from-queue
extenvoicemail=*
privacy=none[IAX2/499]
type=extension
extension=499
label=Wolcott Electric Fax
context=from-internal
queuecontext=from-queue
extenvoicemail=*
privacy=none[SIP/500]
type=extension
extension=500
label=Snom-1
mailbox=500@default
context=from-internal
queuecontext=from-queue
extenvoicemail=*500@default
privacy=none
group=Office[SIP/501]
type=extension
extension=501
label=Bobs Laptop
context=from-internal
queuecontext=from-queue
extenvoicemail=*
privacy=none[SIP/502]
type=extension
extension=502
label=Bobs Desktop PC
context=from-internal
queuecontext=from-queue
extenvoicemail=*
privacy=none[SIP/503]
type=extension
extension=503
label=BobMode Cordless
context=from-internal
queuecontext=from-queue
extenvoicemail=*
privacy=none
group=Office[SIP/504]
type=extension
extension=504
label=SmurfModeCordless
context=from-internal
queuecontext=from-queue
extenvoicemail=*
privacy=none[SIP/510]
type=extension
extension=510
label=Bobs Cell on Snom
context=from-internal
queuecontext=from-queue
extenvoicemail=*
privacy=none[SIP/511]
type=extension
extension=511
label=Bobs Laptop for house num
context=from-internal
queuecontext=from-queue
extenvoicemail=*
privacy=none[SIP/512]
type=extension
extension=512
label=Snom as house
context=from-internal
queuecontext=from-queue
extenvoicemail=*
privacy=none[SIP/513]
type=extension
extension=513
label=Snom as Fax
context=from-internal
queuecontext=from-queue
extenvoicemail=*
privacy=none[SIP/514]
type=extension
extension=514
label=Snom as Spirit Horse
context=from-internal
queuecontext=from-queue
extenvoicemail=*
privacy=none[PARK/default]
type=park
extension=70
context=parkedcalls
queuecontext=from-queue
extenvoicemail=*[SIP/callcentric]
type=trunk
label=SIP/callcentric
queuecontext=from-queue
extenvoicemail=*[ZAP/15]
type=trunk
label=ZAP/15
queuecontext=from-queue
extenvoicemail=*[ZAP/16]
type=trunk
label=ZAP/16
queuecontext=from-queue
extenvoicemail=*[ZAP/17]
type=trunk
label=ZAP/17
queuecontext=from-queue
extenvoicemail=*[ZAP/18]
type=trunk
label=ZAP/18
queuecontext=from-queue
extenvoicemail=*[ENUM/]
type=trunk
label=ENUM/
queuecontext=from-queue
extenvoicemail=*[IAX2/demo]
type=trunk
label=IAX2/demo
queuecontext=from-queue
extenvoicemail=*[root@asterisk fop2]#
-
-
I don't seem to know how to do that. :oops:
I even tried deleting the ENUM trunk and restarting Asterisk, but when I run /usr/local/fop2/autoconfig-buttons-freepbx.sh, it's still there. I looked at the various config files in /usr/local/fop2. What am I missing?
I very much appreciate the help.
-
-
I deleted the group. I even deleted the user and re-created it. I went in to buttons and removed any references to the deleted group. And I still have:
[root@asterisk bobw]# /usr/local/fop2/fop2_server restart
Modification of non-creatable array value attempted, subscript -1 at script/fop2_server.pl line 1505, <CONFIG> line 5.I'm afraid that in my trying to fix things before I posted my problem, I may have changed something I shouldn't have.
For instance, in fop2.cfg, should I have buttonfile=buttons.cfg commented out? I've tried both ways. -
Alright, I think I might have it. After my last post, I went back and reviewed some of the config files and found that at some point, thinking I was following directions in some tutorial or something, I changed manager_host=127.0.0.1 to manager_host=192.168.0.16 which is the asterisk server's IP address. So I changed it back and things started working.
The only strange thing was that when I issued the fop2_server restart command, I never got my cursor back.
Otherwise, it looks as if things are working now.
Thank you so much for your help!!
-
great you found the problem. Regarding the restart, the fop2_server binary is not an init script. If you run it from the command line without the -d option it will never return back. The init script is usually installed as /etc/rc.d/init.d/fop2 and its that script that accepts the start,stop,restart,reload commands.
Best regards
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