VICIDIAL works in MANUAL way but not in ADAPT_HARD_LIMIT

All installation and configuration problems and questions

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

VICIDIAL works in MANUAL way but not in ADAPT_HARD_LIMIT

Postby DOconexion » Tue Nov 13, 2007 8:29 pm

Hi,
Hope someone could helpme with this,

My problem is with the predictive dialer,
everything worked fine with manual VICIDIAL, but when i tried the
ADAPT_HARD_LIMIT i had this weird behavior.
When the resume button is pressed on, the auto dialer begins to call the numbers, the
phone rings, but when is answered it hungs up automatically; the agent in the conference hear nothing all the time.

i'm using:
a SIPDISCOUNT account and X-lite softphones, with Asterisk 1.4.4 and 1.2.13, both with the same problem. astguiclient 2.0.1.
plus centOS 4.5.

I tried (as a recommendation in this site FAQs):
- i started up AST_VDauto_dial script manually,
- register: my account appears as regitered in CLI for sipdiscount
- i checked no junk records in vicidial_auto_calls table.
-i added a sip-silence.gsm in my /var/lib/asterisk/sounds, and configured that in the Vicidial extension 8365.


this is what the CLI shows when any time with the ADAPT_HARD_LIMIT:

== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
-- Call on SIP/sipdiscount-097adfd0 left from hold
-- SIP/sipdiscount-097adfd0 answered Local/005114476429@default-22fe,2
[Nov 9 15:13:36] WARNING[4952]: pbx.c:4976 ast_pbx_outgoing_exten: Local/005114476429@default-22fe,1 already has a call record??
> Channel Local/005114476429@default-22fe,1 was answered.
== Manager 'sendcron' logged off from 127.0.0.1
-- Executing [8365@default:1] AGI("Local/005114476429@default-22fe,1", "agi://127.0.0.1:4577/call_log") in new stack
[Nov 9 15:13:37] WARNING[5101]: res_agi.c:216 launch_netscript: Connect to 'agi://127.0.0.1:4577/call_log' failed: Connection refused
-- Executing [8365@default:2] AGI("Local/005114476429@default-22fe,1", "agi-VDADtransfer.agi|8365") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDADtransfer.agi
-- AGI Script agi-VDADtransfer.agi completed, returning 0
-- Executing [8365@default:3] AGI("Local/005114476429@default-22fe,1", "agi-VDADtransfer.agi|8365") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDADtransfer.agi
-- AGI Script agi-VDADtransfer.agi completed, returning 0
-- Executing [8365@default:4] AGI("Local/005114476429@default-22fe,1", "agi-VDADtransfer.agi|8365") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDADtransfer.agi
-- AGI Script agi-VDADtransfer.agi completed, returning 0
-- Executing [8365@default:5] Hangup("Local/005114476429@default-22fe,1", "") in new stack
== Spawn extension (default, 8365, 5) exited non-zero on 'Local/005114476429@default-22fe,1'
== Spawn extension (default, 005114476429, 2) exited non-zero on 'Local/005114476429@default-22fe,2'
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1


Thanks a lot.

Nico
DOconexion
 
Posts: 3
Joined: Tue Nov 13, 2007 3:43 pm

Postby ramindia » Wed Nov 14, 2007 1:37 am

Hi

check this error

Nov 9 15:13:37] WARNING[5101]: res_agi.c:216 launch_netscript: Connect to 'agi://127.0.0.1:4577/call_log' failed: Connection refused


check again your config files, make sure all the cron job running

Check all of them running or not,if any one of them not running, run them manually with Debug mode

above said error is causing the problem, check asterisk config files again.

for your reference, Vicidial source have sample config files to compare with your config files.

ram
Kindly post your feedback, if this solution works.
so its very usefull for others who join later as a NEWBIE.
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

Postby DOconexion » Thu Nov 15, 2007 7:30 pm

Hi Ram,
Thank you very much for answering,
well, i did use the examples for the config files,
i tried runing some of the crons manually, and this warring disapeared, as i changed

exten => 8365,2,AGI(agi://127.0.0.1:4577/call_log)

for

exten => 8365,2,AGI(call_log.agi,${EXTEN})


i still don't know how to run the Crons with Debug mode. Could you explain this point?
Something that will bother me a little will be, having to run all this stuff(all the crons ) manually all the time for make VICIDIAL work.

Thanks a lot
Nico
DOconexion
 
Posts: 3
Joined: Tue Nov 13, 2007 3:43 pm

Postby ramindia » Thu Nov 15, 2007 11:28 pm

Hi

some of the scripts need to run in crontab
Scratch_install mentioned those scripts

for your problem check again manager.conf

for the permissions.

ram
Kindly post your feedback, if this solution works.
so its very usefull for others who join later as a NEWBIE.
ramindia
 
Posts: 688
Joined: Wed Oct 11, 2006 4:06 am
Location: India

Re: VICIDIAL works in MANUAL way but not in ADAPT_HARD_LIMIT

Postby gardo » Fri Nov 16, 2007 12:01 am

Make sure that all the scripts in your crontab are running. You won't have a functional vicidial if some of the scripts are missing.

DOconexion wrote:[Nov 9 15:13:37] WARNING[5101]: res_agi.c:216 launch_netscript: Connect to 'agi://127.0.0.1:4577/call_log' failed: Connection refused
Nico


Check your /etc/astguiclient.conf and see if you have FasAGI_log running.

# Alpha-Numeric list of the astGUIclient processes to be kept running
# (value should be listing of characters with no spaces: 123456)
# X - NO KEEPALIVE PROCESSES (use only if you want none to be keepalive)
# 1 - AST_update
# 2 - AST_send_listen
# 3 - AST_VDauto_dial
# 4 - AST_VDremote_agents
# 5 - AST_VDadapt (If multi-server system, this must only be on one server)
# 6 - FastAGI_log
# 7 - AST_VDauto_dial_FILL (only for multi-server, this must only be on one server)
VARactive_keepalives => 123456
http://goautodial.com
Empowering the next generation contact centers
gardo
 
Posts: 1926
Joined: Fri Sep 15, 2006 10:24 am
Location: Manila, 1004

Re: VICIDIAL works in MANUAL way but not in ADAPT_HARD_LIMIT

Postby gardo » Fri Nov 16, 2007 12:03 am

Make sure that all the scripts in your crontab are running. You won't have a functional vicidial if some of the scripts are missing.

DOconexion wrote:[Nov 9 15:13:37] WARNING[5101]: res_agi.c:216 launch_netscript: Connect to 'agi://127.0.0.1:4577/call_log' failed: Connection refused
Nico


Check your /etc/astguiclient.conf and see if you have FasAGI_log running.

# Alpha-Numeric list of the astGUIclient processes to be kept running
# (value should be listing of characters with no spaces: 123456)
# X - NO KEEPALIVE PROCESSES (use only if you want none to be keepalive)
# 1 - AST_update
# 2 - AST_send_listen
# 3 - AST_VDauto_dial
# 4 - AST_VDremote_agents
# 5 - AST_VDadapt (If multi-server system, this must only be on one server)
# 6 - FastAGI_log
# 7 - AST_VDauto_dial_FILL (only for multi-server, this must only be on one server)
VARactive_keepalives => 123456
http://goautodial.com
Empowering the next generation contact centers
gardo
 
Posts: 1926
Joined: Fri Sep 15, 2006 10:24 am
Location: Manila, 1004

Postby enjay » Mon Nov 19, 2007 1:24 pm

make sure all your perl modules are installed.. such as Net::Server

-Art
enjay
 
Posts: 806
Joined: Mon Jun 19, 2006 12:40 pm
Location: Utah

Postby DOconexion » Sun Nov 25, 2007 1:55 pm

Thanks for each reply, i've tried to follow all the steps, but i noticed i had astguiclient 2.0.1 and it doesn't come with the FastAGI and some of the PLs of the 2.0.3 version, so i started from cero again, i though it was something related to my CENTOS.

So, now i have Slackware 12, astguiclient 2.0.3 and asterisk 1.2.17. and using an SIPDISCOUNT account for calling outside, so i have to use ztdummy to make it work,
I made sure of that i was following the steps correctly.
But the same problem appears,
here what happens:
1. i place ADAPT_HARD_LIMIT in campain
2. i go to agent side and anwer the phone,
3. click resume
4. phone outside rings
5. person autside answer and it hangs up automaticallyin few seconds,
6. the agent can't hear anything all the time.

it does wok OK in MANUAL mode.

here i add the CLI when this happens:

MANUAL way(works):
= Manager 'sendcron' logged on from 127.0.0.1
> Channel SIP/2001-081ce4c8 was answered.
== Manager 'sendcron' logged off from 127.0.0.1
-- Executing MeetMe("SIP/2001-081ce4c8", "8600051") in new stack
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
-- Executing MeetMe("Local/8600051@default-8532,2", "8600051") in new stack
> Channel Local/8600051@default-8532,1 was answered.
-- Executing AGI("Local/8600051@default-8532,1", "call_log.agi|005114476429") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/call_log.agi
-- AGI Script call_log.agi completed, returning 0
-- Executing Dial("Local/8600051@default-8532,1", "SIP/sipdiscount/005114476429") in new stack
-- Called sipdiscount/005114476429
-- SIP/sipdiscount-081d9338 is making progress passing it to Local/8600051@default-8532,1
== Manager 'sendcron' logged off from 127.0.0.1
-- SIP/sipdiscount-081d9338 answered Local/8600051@default-8532,1
== Spawn extension (default, 005114476429, 2) exited non-zero on 'Local/8600051@default-8532,1'
-- Executing DeadAGI("Local/8600051@default-8532,1", "agi://127.0.0.1:4577/call_log") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing DeadAGI("Local/8600051@default-8532,1", "agi://127.0.0.1:4577/VD_hangup--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----40-----25)") in new stack
-- AGI Script agi://127.0.0.1:4577/VD_hangup--HVcause ... -40-----25) completed, returning 0



AUTOMATIC (doesnt work)
> Channel SIP/2001-081d9338 was answered.
== Manager 'sendcron' logged off from 127.0.0.1
-- Executing MeetMe("SIP/2001-081d9338", "8600051") in new stack
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
-- Executing AGI("Local/005114476429@default-a1b1,2", "call_log.agi|005114476429") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/call_log.agi
-- AGI Script call_log.agi completed, returning 0
-- Executing Dial("Local/005114476429@default-a1b1,2", "SIP/sipdiscount/005114476429") in new stack
-- Called sipdiscount/005114476429
-- SIP/sipdiscount-081df488 is making progress passing it to Local/005114476429@default-a1b1,2
-- SIP/sipdiscount-081df488 answered Local/005114476429@default-a1b1,2
> Channel Local/005114476429@default-a1b1,1 was answered.
== Manager 'sendcron' logged off from 127.0.0.1
-- Executing AGI("Local/005114476429@default-a1b1,1", "agi://127.0.0.1:4577/call_log") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing AGI("Local/005114476429@default-a1b1,1", "agi-VDADtransfer.agi|8365") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDADtransfer.agi
-- AGI Script agi-VDADtransfer.agi completed, returning 0
-- Executing AGI("Local/005114476429@default-a1b1,1", "agi-VDADtransfer.agi|8365") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDADtransfer.agi
-- AGI Script agi-VDADtransfer.agi completed, returning 0
-- Executing AGI("Local/005114476429@default-a1b1,1", "agi-VDADtransfer.agi|8365") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDADtransfer.agi
-- AGI Script agi-VDADtransfer.agi completed, returning 0
-- Executing Hangup("Local/005114476429@default-a1b1,1", "") in new stack
== Spawn extension (default, 8365, 5) exited non-zero on 'Local/005114476429@default-a1b1,1'
-- Executing DeadAGI("Local/005114476429@default-a1b1,1", "agi://127.0.0.1:4577/call_log") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing DeadAGI("Local/005114476429@default-a1b1,1", "agi://127.0.0.1:4577/VD_hangup--HVcauses--PRI-----NODEBUG-----16---------------)") in new stack
-- AGI Script agi://127.0.0.1:4577/VD_hangup--HVcause ... ----------) completed, returning 0
== Spawn extension (default, 005114476429, 2) exited non-zero on 'Local/005114476429@default-a1b1,2'
-- Executing DeadAGI("Local/005114476429@default-a1b1,2", "agi://127.0.0.1:4577/call_log") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing DeadAGI("Local/005114476429@default-a1b1,2", "agi://127.0.0.1:4577/VD_hangup--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----17-----2)") in new stack
-- AGI Script agi://127.0.0.1:4577/VD_hangup--HVcause ... --17-----2) completed, returning 0


i dont know if its something related with my sip discount account,
I have read the agi-VDADtransfer.agi
it says that it hangs up automatically if no agent is available in 10 seconds,
so i wonder, why isn't this AGI founding my agent?.

Thanks a lot,

Nico
DOconexion
 
Posts: 3
Joined: Tue Nov 13, 2007 3:43 pm


Return to Support

Who is online

Users browsing this forum: Majestic-12 [Bot] and 113 guests