user login and logout not reflected in fop2
-
Setup is trixbox 2.8.0.4 in device and user mode.
fop2 displays the correct status for the users when started, but does not then reflect changes when users login or logout.
Any ideas? I think I have just missed something somewhere, but I can't seem to find it.
TIA,
Slator
-
Hello,
You must have the "all" permission in /etc/asterisk/manager.conf read and write lines for the fop user. Last time I tried, ,in trixbox, the user events (permission "user") are not honored unless you enable the "all" permissions. This does not happen in other distros or plain asterisk. For some feature you need to enable userevents, including user and device mode.
Best regards,
-
-
If this helps, the asterisk console shows the events below when I login
AGI Script Executing Application: (UserEvent) Options: (UserDeviceAdded|Data: 1601,7014)
> user_login_out.agi,logout,7014: insert_user: Setting FollowMe DEVSTATES for device 7014
> user_login_out.agi,logout,7014: get_followme_state: user 1601 got state returning INVALID
> user_login_out.agi,logout,7014: insert_user: Setting DND DEVSTATES for device 7014
> user_login_out.agi,logout,7014: get_dnd_state: user 1601 got state returning NOT_INUSE
> user_login_out.agi,logout,7014: get_voicemail_context: user: 1601 -
likewise fop2_server in debug mode shows this
127.0.0.1 <- Event: UserEvent
127.0.0.1 <- Privilege: hud,all
127.0.0.1 <- UserEvent: DBPut
127.0.0.1 <- Family: DEVICE
127.0.0.1 <- Key: 7014/user
127.0.0.1 <- Value: 010
127.0.0.1 <- Server: 0127.0.0.1 <- Event: AGIExec
127.0.0.1 <- Privilege: call,all
127.0.0.1 <- SubEvent: End
127.0.0.1 <- Channel: SIP/7014-00000090
127.0.0.1 <- CommandId: 1649682460
127.0.0.1 <- Command: DATABASE PUT "DEVICE" "7014/user" "1010"
127.0.0.1 <- ResultCode: 200
127.0.0.1 <- Result: Success
127.0.0.1 <- Server: 0 -
-
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