Park Button not Working on FOP2 2.31.32
-
I have FreePBX 16 and Asterisk 18. When I have a live call, I can click the parkig lot and get the blue line, then click blind transfer and the call is parked and everything is fine. However, if I click the Park button, I get the following error in the console:
> Uncaught ReferenceError: defcommand is not definedat Object.action_parkcall (eval at plugin (eval at <anonymous> (eval at <anonymous> (VM88 jquery-1.11.3.min.js:2:2622))), <anonymous>:70:71) at Object.clicky (eval at <anonymous> (eval at <anonymous> (VM88 jquery-1.11.3.min.js:2:2622)), <anonymous>:1:117806) at HTMLDivElement.eval (eval at <anonymous> (eval at <anonymous> (VM88 jquery-1.11.3.min.js:2:2622)), <anonymous>:1:87755) at HTMLDivElement.dispatch (jquery-1.11.3.min.js:4:8549) at HTMLDivElement.r.handle (jquery-1.11.3.min.js:4:5252) action_parkcall @ VM122:70 clicky @ VM45:1 eval @ VM45:1 dispatch @ jquery-1.11.3.min.js:4 r.handle @ jquery-1.11.3.min.js:4 -
You can fix this by changing line 71 in /var/www/html/fop2/admin/plugins/parkbutton/parkbutton.js from
queuedcommand = "<msg data=\"" + myposition + "|"+defcommand+"|" + parkExten + "|" + hash + "\" />";
to
queuedcommand = "<msg data=\"" + myposition + "|" + defcommand + "|" + parkExten + "|" + hash + "\" />"; -
You may also have to take the 3rd "m" from "defcommmand" on line 53
-
Hey @jerryriggin , sorta off topic, but I'm trying to get fop2 running on raspbx. I see you are running asterisk 18 (I'm running 16). So apparently I should be able to get mine running?
Basically, everything appears to be running for me, except FOP2 says "Skipping user & device queries, not in user device mode", as the CLI command "database show devices" shows 0 devices (but I have enabled deviceanduser mode, and I have multiple devices (?)
Been struggling with this for quite some time now. I believe I need to have FreePBX/asterisk running in deviceanduser mode? Is this what you have done?
Any advice/hints/help would be greatly appreciated!
Thanks!
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