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 defined
at Object.action_parkcall (eval at plugin (eval at (eval at (VM88 jquery-1.11.3.min.js:2:2622))), :70:71)
at Object.clicky (eval at (eval at (VM88 jquery-1.11.3.min.js:2:2622)), :1:117806)
at HTMLDivElement.eval (eval at (eval at (VM88 jquery-1.11.3.min.js:2:2622)), :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 + "\" />";
    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!

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file