Page 1 of 1

Vicidial Agent waiting for ring

PostPosted: Wed Dec 30, 2015 9:13 pm
by markandresilo
Just asking

why does our vicidial agent is "waiting for ring" but we already answered the call and after a moment of time it says timed out

here are the photos:
http://imgur.com/KuVionT
http://imgur.com/6Nm5Zp5

Re: Vicidial Agent waiting for ring

PostPosted: Thu Dec 31, 2015 12:47 am
by mflorell
Usually a bad configuration or a carrier issue.

Re: Vicidial Agent waiting for ring

PostPosted: Tue Sep 27, 2016 6:40 am
by iboam
Im having the same issue
My carrier settings are:

[HOSTEDPBX]
type=peer
secret=XXXXXXXXXX
username=XXXXXXXXXX
host= XXX.XXX.XXX.XXX
dtmfmode=rfc2833
canreinvite=no
disallow=all
allow=ulaw
insecure=port,invite
fromuser=+1XXXXXXXXXX
fromdomain=XXX.XXX.XXX.XXX
context=trunkinbound


DIALTRUNK = SIP/HOSTEDPBX


exten => _9NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9NXXNXXXXXX,n,Dial(${DIALTRUNK}/+1${EXTEN:1},,tTo)
exten => _9NXXNXXXXXX,n,Hangup

exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,n,Dial(${DIALTRUNK}/+1${EXTEN:2},,tTo)
exten => _91NXXNXXXXXX,n,Hangup


Server IP: 0.0.0.0 ALL SERVERS


[trunkinbound]
; DID call routing process
exten => _XXXXXXXXXX,1,AGI(agi-DID_route.agi) ; use this one instead of the one below if you are having delay issues, and match to number of received digits
exten => _X.,1,AGI(agi-DID_route.agi)
exten => _X.,n,Hangup()
; If you have DIDs that arrive with a plus sign at the beginning then uncomment
exten => _+X.,1,AGI(agi-DID_route.agi)
exten => _+X.,n,Hangup()
; If you have DIDs that arrive with a plus and 1 at the beginning that you want to filter out, then uncomment
exten => _+1X.,1,Goto(trunkinbound,${EXTEN:1},1)


[Sep 23 21:02:00] == Manager 'sendcron' logged on from 127.0.0.1
[Sep 23 21:02:00] -- Executing [8600051@default:1] MeetMe("Local/8600051@default-0000000a;2", "8600051,F") in new stack
[Sep 23 21:02:00] > Channel Local/8600051@default-0000000a;1 was answered
[Sep 23 21:02:00] -- Executing [91XXXXXXXXXX@default:1] AGI("Local/8600051@default-0000000a;1", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 23 21:02:00] -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=ADMIN))
[Sep 23 21:02:00] -- <Local/8600051@default-0000000a;1>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 23 21:02:00] -- Executing [91XXXXXXXXXX@default:2] Dial("Local/8600051@default-0000000a;1", "SIP/HOSTEDPBX/+1XXXXXXXXXX,,tTo") in new stack
[Sep 23 21:02:00] == Using SIP RTP CoS mark 5
[Sep 23 21:02:00] -- Called SIP/HOSTEDPBX/+1XXXXXXXXXX
[Sep 23 21:02:00] == Manager 'sendcron' logged on from 127.0.0.1
[Sep 23 21:02:00] -- Executing [58600051@default:1] MeetMe("Local/58600051@default-0000000b;2", "8600051,Fmq") in new stack
[Sep 23 21:02:00] > Channel Local/58600051@default-0000000b;1 was answered
[Sep 23 21:02:00] -- Executing [8309@default:1] Answer("Local/58600051@default-0000000b;1", "") in new stack
[Sep 23 21:02:00] -- Executing [8309@default:2] Monitor("Local/58600051@default-0000000b;1", "wav,20160923-210152_XXXXXXXXXX_5000_ADMIN") in new stack
[Sep 23 21:02:00] -- Executing [8309@default:3] Wait("Local/58600051@default-0000000b;1", "3600") in new stack
[Sep 23 21:02:01] == Manager 'sendcron' logged off from 127.0.0.1
[Sep 23 21:02:01] == Manager 'sendcron' logged off from 127.0.0.1
[Sep 23 21:02:01] == Manager 'sendcron' logged on from 127.0.0.1
[Sep 23 21:02:01] == Manager 'sendcron' logged on from 127.0.0.1
[Sep 23 21:02:01] == Manager 'sendcron' logged off from 127.0.0.1
[Sep 23 21:02:04] -- SIP/HOSTEDPBX-00000007 is making progress passing it to Local/8600051@default-0000000a;1
[Sep 23 21:02:04] > 0x7f9064016cc0 -- Probation passed - setting RTP source address to XXX.XXX.XXX.XXX:17320
[Sep 23 21:02:05] -- SIP/HOSTEDPBX-00000007 is ringing
[Sep 23 21:02:06] == Manager 'sendcron' logged on from 127.0.0.1
[Sep 23 21:02:06] == Manager 'sendcron' logged off from 127.0.0.1
[Sep 23 21:02:11] == Manager 'sendcron' logged off from 127.0.0.1
[Sep 23 21:02:12] -- SIP/HOSTEDPBX-00000007 answered Local/8600051@default-0000000a;1


I have 3 different carriers and had the same error with all of them

Re: Vicidial Agent waiting for ring

PostPosted: Tue Sep 27, 2016 8:34 am
by mflorell
At a glance the configurations look fine. The next step is to check for crashed database tables, then check for errors in the processes on the dialers, then attach to the FastAGIlog and ASTlisten screens while placing a call and see if it registers properly.

Re: Vicidial Agent waiting for ring

PostPosted: Tue Sep 27, 2016 8:52 am
by iboam
How do i
check for errors in the processes on the dialer


[Sep 27 09:55:19] -- Executing [8600051@default:1] MeetMe("Local/8600051@default-00000002;2", "8600051,F") in new stack
[Sep 27 09:55:19] > Channel Local/8600051@default-00000002;1 was answered
[Sep 27 09:55:19] -- Executing [917863251053@default:1] AGI("Local/8600051@default-00000002;1", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 27 09:55:19] -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=TESTCAMP))
[Sep 27 09:55:19] -- <Local/8600051@default-00000002;1>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 27 09:55:19] -- Executing [917863251053@default:2] Dial("Local/8600051@default-00000002;1", "SIP/HOSTEDPBX/+17863251053,,tTo") in new stack
[Sep 27 09:55:19] == Using SIP RTP CoS mark 5
[Sep 27 09:55:19] -- Called SIP/HOSTEDPBX/+17863251053
[Sep 27 09:55:19] == Manager 'sendcron' logged on from 127.0.0.1
[Sep 27 09:55:19] -- Executing [58600051@default:1] MeetMe("Local/58600051@default-00000003;2", "8600051,Fmq") in new stack
[Sep 27 09:55:19] > Channel Local/58600051@default-00000003;1 was answered
[Sep 27 09:55:19] -- Executing [8309@default:1] Answer("Local/58600051@default-00000003;1", "") in new stack
[Sep 27 09:55:19] -- Executing [8309@default:2] Monitor("Local/58600051@default-00000003;1", "wav,20160927-095518_7863251053_5000") in new stack
[Sep 27 09:55:19] -- Executing [8309@default:3] Wait("Local/58600051@default-00000003;1", "108000") in new stack
[Sep 27 09:55:20] == Manager 'sendcron' logged off from 127.0.0.1
[Sep 27 09:55:20] == Manager 'sendcron' logged off from 127.0.0.1
[Sep 27 09:55:23] -- SIP/HOSTEDPBX-00000001 is making progress passing it to Local/8600051@default-00000002;1
[Sep 27 09:55:23] > 0x7fbb6c015210 -- Probation passed - setting RTP source address to 54.172.60.52:18830
[Sep 27 09:55:23] -- SIP/HOSTEDPBX-00000001 is ringing
[Sep 27 09:55:26] -- SIP/HOSTEDPBX-00000001 answered Local/8600051@default-00000002;1


screen -r
There are several suitable screens on:
1960.ASTfastlog (Detached)
1957.ASTVDremote (Detached)
1954.ASTVDauto (Detached)
1951.ASTlisten (Detached)
1948.ASTsend (Detached)
1945.ASTupdate (Detached)
1658.asterisk (Detached)
1651.astshell20160927094411 (Detached)


Inbound calling works fine.
I just realize that i have 200 leads in the hopper, 1 agents waiting and NO LIVE CALLS WAITING

Re: Vicidial Agent waiting for ring

PostPosted: Tue Sep 27, 2016 9:49 am
by mflorell
You check for errors, warnings and notices in the screenlog.0 file.

Re: Vicidial Agent waiting for ring

PostPosted: Tue Sep 27, 2016 3:04 pm
by iboam
what to do next ??? can't make outbound ... :(

Re: Vicidial Agent waiting for ring

PostPosted: Tue Sep 27, 2016 3:51 pm
by mflorell
We have noticed some clients having problems with carriers modifying the call CallerIdName randomly. You could check the listen logs to see if that's happening.

Re: Vicidial Agent waiting for ring

PostPosted: Wed Sep 28, 2016 7:02 am
by iboam
[Sep 28 07:57:25] -- Executing [8600051@default:1] MeetMe("Local/8600051@default-0000000c;2", "8600051,F") in new stack
[Sep 28 07:57:25] > Channel Local/8600051@default-0000000c;1 was answered
[Sep 28 07:57:25] -- Executing [917863251053@default:1] AGI("Local/8600051@default-0000000c;1", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 28 07:57:25] -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=TESTCAMP))
[Sep 28 07:57:25] -- <Local/8600051@default-0000000c;1>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 28 07:57:25] -- Executing [917863251053@default:2] Dial("Local/8600051@default-0000000c;1", "SIP/HOSTEDPBX/+17863251053,,tTo") in new stack
[Sep 28 07:57:25] == Using SIP RTP CoS mark 5
[Sep 28 07:57:25] -- Called SIP/HOSTEDPBX/+17863251053
[Sep 28 07:57:26] == Manager 'sendcron' logged on from 127.0.0.1
[Sep 28 07:57:26] -- Executing [58600051@default:1] MeetMe("Local/58600051@default-0000000d;2", "8600051,Fmq") in new stack
[Sep 28 07:57:26] > Channel Local/58600051@default-0000000d;1 was answered
[Sep 28 07:57:26] -- Executing [8309@default:1] Answer("Local/58600051@default-0000000d;1", "") in new stack
[Sep 28 07:57:26] -- Executing [8309@default:2] Monitor("Local/58600051@default-0000000d;1", "wav,20160928-075725_7863251053_5000_TESTCAMP") in new stack
[Sep 28 07:57:26] -- Executing [8309@default:3] Wait("Local/58600051@default-0000000d;1", "3600") in new stack
[Sep 28 07:57:26] == Manager 'sendcron' logged off from 127.0.0.1
[Sep 28 07:57:27] == Manager 'sendcron' logged off from 127.0.0.1
[Sep 28 07:57:32] -- SIP/HOSTEDPBX-0000000a is making progress passing it to Local/8600051@default-0000000c;1
[Sep 28 07:57:32] > 0x7f6ed8019340 -- Probation passed - setting RTP source address to 54.172.60.126:14570
[Sep 28 07:57:34] -- SIP/HOSTEDPBX-0000000a answered Local/8600051@default-0000000c;1


The caller id is the same as the campaign ...

Re: Vicidial Agent waiting for ring

PostPosted: Thu Sep 29, 2016 1:40 pm
by VoIPEssential
This could also be an issue with NAT. Make sure your port forwarding rules are correctly set up.

Re: Vicidial Agent waiting for ring

PostPosted: Thu Sep 29, 2016 2:32 pm
by iboam
it was asterisk version @ Admin -> Servers !!!!

i changed Asterisk Version from 1.4.21.2 to 11.22.0-vici
it's working right now !!!! :)