FOP2 dial box trouble
Asterisk 1.8
FreePBX 2.9 with FOP2 module 1.2.9
./fop2_server -v
fop2_server version 2.24
Flash Operator Panel 2 - White Label Version.
Originate call to selected extension work well.
Dial from dial box won't work.
Permissions for user 393 from autoconfig-users-freepbx.sh:
perm=helpdesk:dial,hangup,hangupself,phonebook,pickup,preferences,queueagent,spy,transfer,transferexternal:
user=393:393:helpdesk,operator:All Trunks,All Conferences,All Queues,All Extensions,All Buttons
Here is log per Originate and Dial:
=== Originate ===
<= <msg data="20|originate|10|ef03dc3ea7f7c333c114779f990d1168" />
-- PROCESS_FLASH_COMMAND origen 20 accion originate destino 10 password ef03dc3ea7f7c333c114779f990d1168
VALIDAR USUARIO 393@GENERAL
VALIDAR USUARIO 393 OK con clave regular (XXX.XXX.XXX.XXX)
Validation ok, have dial permissions for 10
ORIGINATE:
Action: Originate
Channel: SIP/393
Exten: 398
Context: from-internal
Priority: 1
CallerID: 393 <393>
Async: True
=== Dial ===
<= <msg data="20|dial|398|ef03dc3ea7f7c333c114779f990d1168" />
-- PROCESS_FLASH_COMMAND origen 20 accion dial destino 398 password ef03dc3ea7f7c333c114779f990d1168
VALIDAR USUARIO 393@GENERAL
VALIDAR USUARIO 393 OK con clave regular (81.26.144.130)
Validation wrong, no custom permissions
DIAL permission denied!
====
I don't understand what is wrong in my config and what permission need here to make call from dial box.
FreePBX 2.9 with FOP2 module 1.2.9
./fop2_server -v
fop2_server version 2.24
Flash Operator Panel 2 - White Label Version.
Originate call to selected extension work well.
Dial from dial box won't work.
Permissions for user 393 from autoconfig-users-freepbx.sh:
perm=helpdesk:dial,hangup,hangupself,phonebook,pickup,preferences,queueagent,spy,transfer,transferexternal:
user=393:393:helpdesk,operator:All Trunks,All Conferences,All Queues,All Extensions,All Buttons
Here is log per Originate and Dial:
=== Originate ===
<= <msg data="20|originate|10|ef03dc3ea7f7c333c114779f990d1168" />
-- PROCESS_FLASH_COMMAND origen 20 accion originate destino 10 password ef03dc3ea7f7c333c114779f990d1168
VALIDAR USUARIO 393@GENERAL
VALIDAR USUARIO 393 OK con clave regular (XXX.XXX.XXX.XXX)
Validation ok, have dial permissions for 10
ORIGINATE:
Action: Originate
Channel: SIP/393
Exten: 398
Context: from-internal
Priority: 1
CallerID: 393 <393>
Async: True
=== Dial ===
<= <msg data="20|dial|398|ef03dc3ea7f7c333c114779f990d1168" />
-- PROCESS_FLASH_COMMAND origen 20 accion dial destino 398 password ef03dc3ea7f7c333c114779f990d1168
VALIDAR USUARIO 393@GENERAL
VALIDAR USUARIO 393 OK con clave regular (81.26.144.130)
Validation wrong, no custom permissions
DIAL permission denied!
====
I don't understand what is wrong in my config and what permission need here to make call from dial box.
Comments
As the dialbox can be used to dial ANY number, a custom permission is not enough to allow dialing from there. You must use the regular "dial" permission in that user to enable the dialbox.
Hope my explanation makes sense.
Best regards,
Hi Nicolas,
User has dial permission, you can see it from autoconfig-users-freepbx.sh output:
(group is included in the group "helpdesk" that have dial permission)
Btw, FOP2 server said about "custom" permission when there is dial attempt from dial-box:
It has some custom permissions, and as I said, the dial permission in a custom permition only allows you to use the dial button, not the dial box. You should see something like this in the user setting if you want the dialbox to work:
user=393:393:dial,helpdesk,operator:All Trunks,All Conferences,All Queues,All Extensions,All Buttons
Best regards,
Thank you for help, problem solved.
I understand now what is difference between regular and custom permissions
user=400:1324:dial,hangupself,pickup,transfer,transferexternal:All Extensions:configonreload
What else can I check to debug this?
/usr/local/fop2/autoconfig-users.sh | grep perm
?
I got this:
perm=norecordings:record:
No recordings is to keep people from recording, but using "all". I ended up dropping this and giving detailed permissions to the appropriate templates. So I'm not using that anymore.
Best regards,
Then, once I noticed that and provisioned the phone, I was clicking dial from my desk and the reception phone was getting the ring, 300 feet away (I was expecting my phone the ring, stupidly), so I wasn't noticing it was actually working. It just looked like it wasn't responding, but it was waiting for the phone to be picked up.
Perhaps a little indication to pick up the phone, or phone not provisioned would be nice (if that data is accessible to fop2). If not, then at least people will see this forum and slap their foreheads like I did. Cheers!