Page 1 of 1

Not detecting the Answering Machine in Adapt method

PostPosted: Mon Jan 29, 2007 10:34 am
by saqibali
Hi,

i have installed astguiclient 2.0.2 , manual and auto dialing is going perfect but in Adapt (predictive) dialing its not detecting the answering machines ..

looking forward for ur reply ..
thankzzz

PostPosted: Mon Jan 29, 2007 11:07 am
by mflorell
What AMD settings are you using?

What is the dial timeout set to?

PostPosted: Mon Jan 29, 2007 11:31 am
by saqibali
Dial Method = Adapt_hard_limit
Auto Dial Level = 3.0
Available only tally = N
drop percentage limit = 20
latest server time = 2100
adapt intensity modifier = 1 balanced
dial level difference target = 1-1 balanced



dial timeout = 60secs

PostPosted: Mon Jan 29, 2007 4:57 pm
by mflorell
What are the AMD settings in your extensions.conf when you call AMD?

Please post some lines from your AMD_log.txt file.

PostPosted: Mon Jan 29, 2007 5:20 pm
by saqibali
exten => 8320,1,WaitForSilence(2000,2) ; AMD got machine. leave message after recording
exten => 8320,2,Playback(conf)
exten => 8320,3,AGI(VD_amd_post.agi,${EXTEN})
exten => 8320,4,Hangup


exten => 8369,1,Playback(sip-silence)
exten => 8369,2,AGI(agi://127.0.0.1:4577/call_log)
exten => 8369,3,AMD(3500|1500|300|5000|120|50|5|256)
exten => 8369,4,AGI(VD_amd.agi,${EXTEN})
exten => 8369,5,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8369,6,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8369,7,Hangup

PostPosted: Tue Jan 30, 2007 8:48 am
by saqibali
can u please tell me where i can find the AMD_log.txt ?

PostPosted: Tue Jan 30, 2007 11:58 am
by mflorell
Whereever your astguiclient logs go. By default it's /var/log/astguiclient/

PostPosted: Tue Jan 30, 2007 3:49 pm
by saqibali
k thankz for reminding me .. k i dont have the exact file with name of AMD_log.txt .. but i have files name like VDadaptive n adapt

VDadaptive log looks like

2007-01-26 2:53:53
CAMPAIGN: 8888
SETTINGS-
DIAL LEVEL: 4.0
DIAL METHOD: ADAPT_HARD_LIMIT
AVAIL ONLY:
DROP PERCENT: 21
MAX LEVEL: 4.0
SERVER TIME: 253
LATE TARGET: 2100 (1847 left|1)
INTENSITY: 1
DLDIFF TARGET: 1
CURRENT STATS-
AVG AGENTS: 0.2
AGENTS: 1 ACTIVE: 0 CALC: 0 INCALL: 0 READY: 0
DL DIFFERENTIAL: 1 = (0 + 1)
DIAL LEVEL SUGGESTION-
PERCENT DIFF: 500.00
SUGGEST DL: 24.000 = (4.0 * (5 + 1) )
INTENSE DIFF: 505.00
INTENSE DL: 24.200 = (4.0 * (5.05 + 1) )
DIAL LEVEL OVER CAP! SETTING TO CAP: 4.0
DROP STATS-
TODAY DROPS: 0 0 0%
ANSWER DROPS: 0 0%
ONE HOUR DROPS: 0/0 0 0%
HALF HOUR DROPS: 0/0 0 0%
FIVE MIN DROPS: 0/0 0 0%
ONE MIN DROPS: 0/0 0 0%
DIAL LEVEL UPDATED TO: 4.0 CONFIRM: 1

2007-01-26 2:54:09
CAMPAIGN: 8888
SETTINGS-
DIAL LEVEL: 4.0
DIAL METHOD: ADAPT_HARD_LIMIT
AVAIL ONLY:
DROP PERCENT: 21
MAX LEVEL: 4.0
SERVER TIME: 254
LATE TARGET: 2100 (1846 left|1)
INTENSITY: 1
DLDIFF TARGET: 1

and adapt file have entries like

2007-01-13 1:30:03||||0||0|61||
2007-01-13 1:30:04||||0||1|62||
2007-01-13 1:30:05||||0||2|63||
2007-01-13 1:30:06||||0||3|64||
2007-01-13 1:30:07||||0||4|65||
2007-01-13 1:30:08||||0||5|66||
2007-01-13 1:30:09||||0||6|67||
2007-01-13 1:30:10||||0||7|68||
2007-01-13 1:30:11||||0||8|69||
2007-01-13 1:30:12||||0||9|70||
2007-01-13 1:30:13||||0||10|71||
2007-01-13 1:30:14||||0||11|72||
2007-01-13 1:30:15||||0||12|73||
2007-01-13 1:30:16||||0||13|74||
2007-01-13 1:30:17||||0||14|75||
2007-01-13 1:30:18||||0||15|76||
2007-01-13 1:30:19||||0||16|77||
2007-01-13 1:30:20||||0||17|78||
2007-01-13 1:30:21||||0||18|79||
2007-01-13 1:30:22||||0||19|80||
2007-01-13 1:30:23||||0||20|81||
2007-01-13 1:30:24||||0||21|82||
2007-01-13 1:30:25||||0||22|83||
2007-01-13 1:30:26||||0||23|84||
2007-01-13 1:30:27||||0||24|85||
2007-01-13 1:30:28||||0||25|86||
2007-01-13 1:30:29||||0||26|87||
2007-01-13 1:30:30||||0||27|88||
2007-01-13 1:30:31||||0||28|89||
2007-01-13 1:30:32||||0||29|90||
2007-01-13 1:30:33||||0||30|91||
2007-01-13 1:30:34||||0||31|92||
2007-01-13 1:30:35||||0||32|93||
2007-01-13 1:30:36||||0||33|94||
2007-01-13 1:30:37||||0||34|95||
2007-01-13 1:30:38||||0||35|96||
2007-01-13 1:30:39||||0||36|97||
2007-01-13 1:30:40||||0||37|98||
2007-01-13 1:30:41||||0||38|99||
2007-01-13 1:30:42||||0||39|100||
2007-01-13 1:30:43||||0||40|101||
2007-01-13 1:30:44||||0||41|102||
2007-01-13 1:30:45||||0||42|103||
"adapt.2007-01-13" 19116L, 1159425C

PostPosted: Wed Jan 31, 2007 4:57 pm
by mflorell
If you don't have the file, check to see that you have server logs turned on in the servers section of admin.php.

If you do but you still don't see that file, then you did not set up AMD properly.

PostPosted: Thu Feb 01, 2007 9:04 am
by saqibali
k .. i have server log turned on in server tab (admin.php)

so now what i should do for AMD . ??

PostPosted: Thu Feb 01, 2007 10:22 am
by mflorell
Just so you know the proper setup of AMD is all detailed in the VICIDIAL Manager Manual from eflo.net.

First you need to setup the extensions.conf entries for AMD, then you need to set the extension that runs AMD in the "VDAD exten" field of your campaign. Then if you want to have a message play if AM is detected you need to set that field to Y in the campaign and set the exten of the message you want played.

PostPosted: Thu Feb 01, 2007 11:44 am
by saqibali
k i have the manager manual ... and i set the

Campaign VDAD exten = 8369

n here is the CLI output

Executing Playback("Local/919054528854@default-2a40,1", "sip-silence") in new stack
-- Playing 'sip-silence' (language 'en')
== Spawn extension (default, 919054528854, 2) exited non-zero on 'Local/919054528854@default-2a40,2'
-- Executing DeadAGI("Local/919054528854@default-2a40,2", "agi://127.0.0.1:4577/call_log") in new stack
-- Executing AGI("SIP/umair-081ba230", "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/919054528854@default-2a40,2", "agi://127.0.0.1:4577/VD_hangup--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----16-----0)") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing AMD("SIP/umair-081ba230", "3500|1500|300|5000|120|50|5|256") in new stack
-- AMD: SIP/umair-081ba230 0000000000 (null) (Fmt: 64)
-- AMD: initialSilence [3500] greeting [1500] afterGreetingSilence [300] totalAnalysisTime [5000] minimumWordLength [120] betweenWordsSilence [50] maximumNumberOfWords [5] silenceThreshold [256]
-- AGI Script agi://127.0.0.1:4577/VD_hangup--HVcause ... --16-----0) completed, returning 0
-- AMD: Word detected. iWordsCount:1
== Manager 'sendcron' logged off from 127.0.0.1
-- AMD: Changed state to STATE_IN_SILENCE
-- AMD: HUMAN: silenceDuration:300 afterGreetingSilence:300
-- Executing AGI("SIP/umair-081ba230", "VD_amd.agi|8369") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/VD_amd.agi
-- AGI Script VD_amd.agi completed, returning 0
-- Executing AGI("SIP/umair-081ba230", "agi-VDAD_LB_transfer.agi|8369") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_LB_transfer.agi
-- AGI Script agi-VDAD_LB_transfer.agi completed, returning 0
-- Executing MeetMe("SIP/umair-081ba230", "8600051") in new st

but it still giving me the AM.

PostPosted: Thu Feb 01, 2007 2:23 pm
by saqibali
after applying the above setting as mention in the manager manual .
it detect AM sometime but sometime not .... :?

PostPosted: Thu Feb 01, 2007 10:29 pm
by mflorell
AMD is not perfect, the best I was able to get was 70-80% accuracy on one campaign.

I do not recommend using AMD except for machine-dial campaigns with no agents because it will intrduce a delay to every Answered call. You get much better results just lowering your dial timeout to 19 seconds and you don't get the Answer delay on all calls.

If you need to use it I suggest playing around with the AND parameters and see how your results are as you try different settings.