Remote agent inbound calls - bug?

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Remote agent inbound calls - bug?

Postby frank83 » Tue Sep 28, 2021 4:00 am

Hello guys i'm trying to implement the remote agents but I have a problem with incoming calls, I try to explain better:
if in the in-group I select the option Next Agent Call: ring_all the system gives problems, sometimes it rings and the line drops or it doesn't ring, I am missing something or it's a bug?
When in the in-group I select Next Agent Call: random it works.
I tried the two modes On-Hook Agent: Yes and No but the result was the same.
Is there a way to ring all the phones with remote agents?

VERSION: 2.14-813a
BUILD: 210519-1747
frank83
 
Posts: 51
Joined: Thu Nov 15, 2018 10:59 am

Re: Remote agent inbound calls - bug?

Postby frank83 » Tue Sep 28, 2021 9:19 am

I forget the log.

vici*CLI>
 == Using SIP RTP TOS bits 184
 == Using SIP RTP CoS mark 5
 > 0x7f142808b9f0 -- Strict RTP learning after remote address set to: 200.21.x.x:53414

vici*CLI>
 -- Executing [0xxxxxxxx@trunkinbound:1] AGI("SIP/TRUNK_SIP-000002f7", "agi-DID_route.agi") in new stack
 -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_route.agi

vici*CLI>
 -- AGI Script Executing Application: (Monitor) Options: (wav,/var/spool/asterisk/monitor/MIX/20210928160647_0xxxxxxxx_0xxxxxxxx)

vici*CLI>
 -- <SIP/TRUNK_SIP-000002f7>AGI Script agi-DID_route.agi completed, returning 0

vici*CLI>
 -- Executing [99909*2***DID@default:1] Answer("SIP/TRUNK_SIP-000002f7", "") in new stack

vici*CLI>
 -- Executing [99909*2***DID@default:2] AGI("SIP/TRUNK_SIP-000002f7", "agi-VDAD_ALL_inbound.agi") in new stack

vici*CLI>
 -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi

vici*CLI>
 -- <SIP/TRUNK_SIP-000002f7> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')

vici*CLI>
 > 0x7f142808b9f0 -- Strict RTP switching to RTP target address 200.21.x.x:53414 as source

vici*CLI>
 -- <SIP/TRUNK_SIP-000002f7> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')

vici*CLI>
 == Manager 'sendcron' logged on from 127.0.0.1

vici*CLI>
 -- Called 200.21.x.x*1000@default

vici*CLI>
 -- Executing [200.21.x.x*1000@default:1] Goto("Local/200.21.x.x*1000@default-00000083;2", "default,1000,1") in new stack
 -- Goto (default,1000,1)
 -- Executing [1000@default:1] Dial("Local/200.21.x.x*1000@default-00000083;2", "SIP/1000,60,") in new stack
 == Using SIP RTP TOS bits 184
 == Using SIP RTP CoS mark 5
 -- Called SIP/1000

vici*CLI>
 == Manager 'sendcron' logged on from 127.0.0.1
 -- Called 200.21.x.x*1001@default
 -- Executing [200.21.x.x*1001@default:1] Goto("Local/200.21.x.x*1001@default-00000084;2", "default,1001,1") in new stack
 -- Goto (default,1001,1)
 -- Executing [1001@default:1] Dial("Local/200.21.x.x*1001@default-00000084;2", "SIP/1001,60,") in new stack
[Sep 28 16:06:48] WARNING[51281][C-00000282]: app_dial.c:2591 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
 == Everyone is busy/congested at this time (1:0/0/1)
 -- Executing [1001@default:2] Goto("Local/200.21.x.x*1001@default-00000084;2", "default,850266666666661001,1") in new stack
 -- Goto (default,850266666666661001,1)
 -- Executing [850266666666661001@default:1] Wait("Local/200.21.x.x*1001@default-00000084;2", "1") in new stack

vici*CLI>
 == Manager 'sendcron' logged on from 127.0.0.1
 -- Called 200.21.x.x*9997@default
 -- Executing [200.21.x.x*9997@default:1] Goto("Local/200.21.x.x*9997@default-00000085;2", "default,9997,1") in new stack
 -- Goto (default,9997,1)
 -- Executing [9997@default:1] Dial("Local/200.21.x.x*9997@default-00000085;2", "SIP/9997,60,") in new stack
 == Using SIP RTP TOS bits 184
 == Using SIP RTP CoS mark 5
 -- Called SIP/9997

vici*CLI>
 -- SIP/1000-000002f8 is ringing
 -- Local/200.21.x.x*1000@default-00000083;1 is ringing

vici*CLI>
 -- SIP/9997-000002f9 is ringing

vici*CLI>
 -- Local/200.21.x.x*9997@default-00000085;1 is ringing

vici*CLI>
 -- Executing [850266666666661001@default:2] VoiceMail("Local/200.21.x.x*1001@default-00000084;2", "1001,u") in new stack

vici*CLI>
 -- Local/200.21.x.x*1001@default-00000084;1 answered
 -- Executing [138331*93*Y9281606470000000142*1001*@default:1] AGI("Local/200.21.x.x*1001@default-00000084;1", "agi-VDAD_local_optimize.agi,") in new stack
 -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_local_optimize.agi

vici*CLI>
 -- <Local/200.21.x.x*1001@default-00000084;1>AGI Script agi-VDAD_local_optimize.agi completed, returning 0
 -- Executing [138331*93*Y9281606470000000142*1001*@default:2] Wait("Local/200.21.x.x*1001@default-00000084;1", "2") in new stack

vici*CLI>
 -- <Local/200.21.x.x*1001@default-00000084;2> Playing 'vm-theperson.gsm' (language 'en')

vici*CLI>
 -- Started music on hold, class 'default', on channel 'SIP/TRUNK_SIP-000002f7'

vici*CLI>
 == Manager 'sendcron' logged off from 127.0.0.1

vici*CLI>
 > 0x7f143800e6e0 -- Strict RTP learning after remote address set to: 192.168.7.183:10056

vici*CLI>
 -- SIP/1000-000002f8 answered Local/200.21.x.x*1000@default-00000083;2
 -- Local/200.21.x.x*1000@default-00000083;1 answered
 -- Channel SIP/1000-000002f8 joined 'simple_bridge' basic-bridge <1bb9788a-8525-46fe-880f-78cfd7bfcca5>
 -- Executing [138331*93*Y9281606470000000142*1000*@default:1] AGI("Local/200.21.x.x*1000@default-00000083;1", "agi-VDAD_local_optimize.agi,") in new stack
 -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_local_optimize.agi

vici*CLI>
 -- Channel Local/200.21.x.x*1000@default-00000083;2 joined 'simple_bridge' basic-bridge <1bb9788a-8525-46fe-880f-78cfd7bfcca5>

vici*CLI>
 > 0x7f143800e6e0 -- Strict RTP qualifying stream type: audio

vici*CLI>
 -- <Local/200.21.x.x*1000@default-00000083;1>AGI Script agi-VDAD_local_optimize.agi completed, returning 0
 -- Executing [138331*93*Y9281606470000000142*1000*@default:2] Wait("Local/200.21.x.x*1000@default-00000083;1", "2") in new stack

vici*CLI>
 > 0x7f143800e6e0 -- Strict RTP switching source address to 200.2.x.x:10056

vici*CLI>
 -- Executing [138331*93*Y9281606470000000142*1001*@default:3] Hangup("Local/200.21.x.x*1001@default-00000084;1", "") in new stack
 == Spawn extension (default, 138331*93*Y9281606470000000142*1001*, 3) exited non-zero on 'Local/200.21.x.x*1001@default-00000084;1'
[Sep 28 16:06:51] WARNING[51280][C-00000284]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
 -- Executing [h@default:1] AGI("Local/200.21.x.x*1001@default-00000084;1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------------)") in new stack

vici*CLI>
 -- <Local/200.21.x.x*1001@default-00000084;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ----------) completed, returning 0

vici*CLI>
 == Spawn extension (default, 850266666666661001, 2) exited non-zero on 'Local/200.21.x.x*1001@default-00000084;2'
[Sep 28 16:06:51] WARNING[51281][C-00000282]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
 -- Executing [h@default:1] AGI("Local/200.21.x.x*1001@default-00000084;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----CHANUNAVAIL---------------)") in new stack
 -- <Local/200.21.x.x*1001@default-00000084;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ----------) completed, returning 0

vici*CLI>
 == Manager 'sendcron' logged off from 127.0.0.1

vici*CLI>
 > 0x7f142808b9f0 -- Strict RTP learning complete - Locking on source address 200.21.x.x:53414

vici*CLI>
 -- Executing [138331*93*Y9281606470000000142*1000*@default:3] Hangup("Local/200.21.x.x*1000@default-00000083;1", "") in new stack
 == Spawn extension (default, 138331*93*Y9281606470000000142*1000*, 3) exited non-zero on 'Local/200.21.x.x*1000@default-00000083;1'
[Sep 28 16:06:52] WARNING[51276][C-00000285]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
 -- Executing [h@default:1] AGI("Local/200.21.x.x*1000@default-00000083;1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------------)") in new stack

vici*CLI>
 -- <Local/200.21.x.x*1000@default-00000083;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ----------) completed, returning 0

vici*CLI>
 -- Channel Local/200.21.x.x*1000@default-00000083;2 left 'simple_bridge' basic-bridge <1bb9788a-8525-46fe-880f-78cfd7bfcca5>
 == Spawn extension (default, 1000, 1) exited non-zero on 'Local/200.21.x.x*1000@default-00000083;2'
 -- Executing [h@default:1] AGI("Local/200.21.x.x*1000@default-00000083;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----4-----2-----SIP 200 OK)") in new stack

vici*CLI>
 -- Channel SIP/1000-000002f8 left 'simple_bridge' basic-bridge <1bb9788a-8525-46fe-880f-78cfd7bfcca5>

vici*CLI>
 -- <Local/200.21.x.x*1000@default-00000083;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... -2-----SIP 200 OK) completed, returning 0

vici*CLI>
 -- Stopped music on hold on SIP/TRUNK_SIP-000002f7
 -- <SIP/TRUNK_SIP-000002f7> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')

vici*CLI>
 -- <SIP/TRUNK_SIP-000002f7> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')

vici*CLI>
 -- <SIP/TRUNK_SIP-000002f7> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')

vici*CLI>
 -- <SIP/TRUNK_SIP-000002f7> Playing 'generic_hold.gsm' (escape_digits=) (sample_offset 0) (language 'en')

vici*CLI>
 -- <SIP/TRUNK_SIP-000002f7>AGI Script agi-VDAD_ALL_inbound.agi completed, returning 4
 == Spawn extension (default, 99909*2***DID, 2) exited non-zero on 'SIP/TRUNK_SIP-000002f7'

vici*CLI>
[Sep 28 16:06:54] WARNING[51263][C-00000280]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
 -- Executing [h@default:1] AGI("SIP/TRUNK_SIP-000002f7", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------)") in new stack

vici*CLI>
 -- <SIP/TRUNK_SIP-000002f7>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ----------) completed, returning 0

vici*CLI>
frank83
 
Posts: 51
Joined: Thu Nov 15, 2018 10:59 am

Re: Remote agent inbound calls - bug?

Postby mflorell » Tue Sep 28, 2021 8:06 pm

ring_all is complicated, and resource-intensive, and I can't say I've tested it in a couple of years because we usually recommend not using it due to all of the things that can go wrong with it.
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Remote agent inbound calls - bug?

Postby frank83 » Wed Sep 29, 2021 3:10 am

Thanks Matt for the answer, but if I have four hardware phones in some office and I have to share a single phone number in a unique group how can I do it?
Can I make a dialplan like this?

exten => 300,1,NoOp(HR GROUP)
exten => 300,2,AGI(agi-NVA_recording.agi,BOTH------Y---N---Y---N---N---N---Y---ALLLISTS---N---Y---Y)
exten => 300,3,Dial(SIP/9997&SIP/1000&SIP/1001,20)
exten => Hangup
frank83
 
Posts: 51
Joined: Thu Nov 15, 2018 10:59 am

Re: Remote agent inbound calls - bug?

Postby mflorell » Wed Sep 29, 2021 2:34 pm

I believe that should work, it looks correct, give it a try and let us know.
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Remote agent inbound calls - bug?

Postby frank83 » Thu Sep 30, 2021 2:54 am

Hello Matt I tried and it works, there's only a problem, in the tables call_log and user_call_log the value extension is the number of the group, is there a way to put the extension of who answered?
frank83
 
Posts: 51
Joined: Thu Nov 15, 2018 10:59 am

Re: Remote agent inbound calls - bug?

Postby mflorell » Thu Sep 30, 2021 6:09 am

Not currently, since it's just pure Asterisk after the AGI script runs, the vicidial scripts don't know who answered the call since they weren't the ones that routed it.
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Remote agent inbound calls - bug?

Postby frank83 » Thu Sep 30, 2021 8:20 am

Ok, thanks Matt.
frank83
 
Posts: 51
Joined: Thu Nov 15, 2018 10:59 am

Re: Remote agent inbound calls - bug?

Postby ramizuabhalim » Thu Jul 20, 2023 10:29 pm

Hi Frank/Matt,

Is that diaplan working, let say the first call answer by extension 9997 and the next call will be ringing as well to the same extension even that extension on call status?

Thank You in advance.
ramizuabhalim
 
Posts: 97
Joined: Sat Dec 07, 2019 11:14 am


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 57 guests