Agent login requires password after migration/restore

Status
Not open for further replies.

ZIain

Member
Feb 22, 2019
30
0
6
52
I've just migrated to a new server using the restore script from the member section, and after a few issues it's mostly working.

However, one thing I can't seem to get to the bottom of is when agents try to log in with *22 it is playing the voicemail sound file requesting the password. Previously it was not required to enter a password to log in and I have changed nothing related to queues or agents, and all the passwords for the agents are automatically generated and complex so entering them on a deskphone handset is not really feasible.

This is the sanitised log section:
Code:
**guid** Dialplan: sofia/internal/201@**domain**:5060 Regex (PASS) [agent_status] destination_number(*22) =~ /^\*22$/ break=on-true
**guid** Dialplan: sofia/internal/201@**domain**:5060 Action set(agent_id=${sip_from_user})
**guid** Dialplan: sofia/internal/201@**domain**:5060 Action lua(app.lua agent_status)
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] switch_core_state_machine.c:281 (sofia/internal/201@**domain**:5060) State Change CS_ROUTING -> CS_EXECUTE
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] switch_core_state_machine.c:640 (sofia/internal/201@**domain**:5060) State ROUTING going to sleep
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] switch_core_state_machine.c:581 (sofia/internal/201@**domain**:5060) Running State Change CS_EXECUTE (Cur 1 Tot 80)
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] switch_core_state_machine.c:647 (sofia/internal/201@**domain**:5060) State EXECUTE
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] mod_sofia.c:213 sofia/internal/201@**domain**:5060 SOFIA EXECUTE
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] switch_core_state_machine.c:323 sofia/internal/201@**domain**:5060 Standard EXECUTE
**guid** EXECUTE [depth=0] sofia/internal/201@**domain**:5060 set(RFC2822_DATE=Sat, 20 May 2023 11:28:31 +0100)
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] mod_dptools.c:1673 SET sofia/internal/201@**domain**:5060 [RFC2822_DATE]=[Sat, 20 May 2023 11:28:31 +0100]
**guid** EXECUTE [depth=0] sofia/internal/201@**domain**:5060 export(origination_callee_id_name=*22)
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [origination_callee_id_name]=[*22]
**guid** EXECUTE [depth=0] sofia/internal/201@**domain**:5060 set(RFC2822_DATE=Sat, 20 May 2023 11:28:31 +0100)
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] mod_dptools.c:1673 SET sofia/internal/201@**domain**:5060 [RFC2822_DATE]=[Sat, 20 May 2023 11:28:31 +0100]
**guid** EXECUTE [depth=0] sofia/internal/201@**domain**:5060 hash(insert/**domain**-last_dial/201/*22)
**guid** EXECUTE [depth=0] sofia/internal/201@**domain**:5060 set(agent_id=201)
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] mod_dptools.c:1673 SET sofia/internal/201@**domain**:5060 [agent_id]=[201]
**guid** EXECUTE [depth=0] sofia/internal/201@**domain**:5060 lua(app.lua agent_status)
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] switch_core_media.c:8651 AUDIO RTP [sofia/internal/201@**domain**:5060] **pbx_lan_ip** port 21670 -> **phone_ip** port 12660 codec: 0 ms: 20
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] switch_rtp.c:4377 Starting timer [soft] 160 bytes per 20ms
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] switch_core_media.c:8963 sofia/internal/201@**domain**:5060 Set 2833 dtmf send payload to 101
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] switch_core_media.c:8970 sofia/internal/201@**domain**:5060 Set 2833 dtmf receive payload to 101
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] switch_core_media.c:8993 sofia/internal/201@**domain**:5060 Set rtp dtmf delay to 40
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] mod_sofia.c:913 Local SDP sofia/internal/201@**domain**:5060:
**guid** v=0
**guid** o=FreeSWITCH 1684556841 1684556842 IN IP4 **pbx_pub_ip**
**guid** s=FreeSWITCH
**guid** c=IN IP4 **pbx_pub_ip**
**guid** t=0 0
**guid** m=audio 21670 RTP/AVP 0 101
**guid** a=rtpmap:0 PCMU/8000
**guid** a=rtpmap:101 telephone-event/8000
**guid** a=fmtp:101 0-15
**guid** a=ptime:20
**guid** a=sendrecv
**guid**
**guid** 2023-05-20 11:28:31.654076 98.10% [NOTICE] switch_cpp.cpp:703 Channel [sofia/internal/201@**domain**:5060] has been answered
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] switch_channel.c:3893 (sofia/internal/201@**domain**:5060) Callstate Change RINGING -> ACTIVE
**guid** 2023-05-20 11:28:31.654076 98.10% [DEBUG] sofia.c:7487 Channel sofia/internal/201@**domain**:5060 entering state [completed][200]
**guid** 2023-05-20 11:28:31.694149 98.10% [DEBUG] sofia.c:7487 Channel sofia/internal/201@**domain**:5060 entering state [ready][200]
**guid** 2023-05-20 11:28:31.774085 98.10% [DEBUG] switch_rtp.c:7511 Correct audio ip/port confirmed.
**guid** 2023-05-20 11:28:32.654166 98.07% [DEBUG] switch_ivr_play_say.c:70 No language specified - Using [en]
**guid** 2023-05-20 11:28:32.674079 98.07% [DEBUG] switch_ivr_play_say.c:250 Handle play-file:[voicemail/vm-enter_pass.wav] (en:en)
**guid** 2023-05-20 11:28:32.674079 98.07% [DEBUG] switch_ivr_play_say.c:262 Setting playback volume to 0
**guid** 2023-05-20 11:28:32.674079 98.07% [DEBUG] switch_ivr_play_say.c:1566 Codec Activated L16@8000hz 1 channels 20ms
**guid** 2023-05-20 11:28:35.534108 98.07% [DEBUG] switch_ivr_play_say.c:2015 done playing file /usr/share/freeswitch/sounds/en/us/callie/voicemail/vm-enter_pass.wav
**guid** 2023-05-20 11:28:35.634111 98.07% [DEBUG] switch_ivr_play_say.c:250 Handle say:[#] (en:en)
**guid** 2023-05-20 11:28:35.634111 98.07% [DEBUG] switch_ivr_play_say.c:1566 Codec Activated L16@8000hz 1 channels 20ms
**guid** 2023-05-20 11:28:36.674146 98.03% [DEBUG] switch_ivr_play_say.c:2015 done playing file file_string://ascii/35.wav
**guid** 2023-05-20 11:28:37.854072 98.07% [NOTICE] sofia.c:1065 Hangup sofia/internal/201@**domain**:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2023-05-20 11:28:37.854072 98.07% [NOTICE] switch_cpp.cpp:1465 [user status] SQL: SELECT * FROM v_call_center_agents WHERE domain_uuid = :domain_uuid AND (agent_id = :agent_id or agent_name = :agent_id) AND agent_password = :agent_password ; params:{"agent_password":"","domain_uuid":"**domain_uuid**","agent_id":"201"}
2023-05-20 11:28:37.854072 98.07% [NOTICE] switch_cpp.cpp:1465 [user status][login] agent id: 201 authorized: false

The Dialplan looks like this:
dialplan.png
Any ideas how to resolve?

Thanks
 

ZIain

Member
Feb 22, 2019
30
0
6
52
I've checked the agent_status lua script and it's identical apart form
Enable those agent_authorized lines.
OMG!

Thank you for helping me see the wood through the trees. I've obviously been working too long and need more sleep.o_O
 
Status
Not open for further replies.