Answering Machine Detection.

All installation and configuration problems and questions

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

Answering Machine Detection.

Postby krondorl » Tue Nov 06, 2007 5:01 pm

Hi,

When we use 8369 for AMDetection, it's does detect the AM, but for some reason when a person answers the phone, it still goes through that same process. What needs to be done to ensure that if a person answers, it will go to an agent and not play the canned message that the AM should have received.

Kron
krondorl
 
Posts: 35
Joined: Wed Oct 17, 2007 2:09 pm

Postby mflorell » Tue Nov 06, 2007 5:13 pm

You need to tune your AMD to the kind of trunks you have. This involves changing the settings after "AMD" in extensions.conf.

Do you have an AMD logfile that is created when youdial this way in your astguiclient logfile directory?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby krondorl » Wed Nov 07, 2007 9:22 am

mflorell wrote:You need to tune your AMD to the kind of trunks you have. This involves changing the settings after "AMD" in extensions.conf.

Do you have an AMD logfile that is created when youdial this way in your astguiclient logfile directory?


How do I make heads or tails of the data in that file??

2007-11-06 16:06:05|157591| |MACHINE|MAXWORDS-4-4|0000000000|
2007-11-06 16:06:16|157592| |HUMAN|HUMAN-1000-1000|0000000000|
2007-11-06 16:06:36|157593| |HUMAN|HUMAN-1000-1000|0000000000|
krondorl
 
Posts: 35
Joined: Wed Oct 17, 2007 2:09 pm

Postby mflorell » Wed Nov 07, 2007 1:22 pm

That looks right, you have MACHINE and HUMAN coming up. As for your problem, was the HUMAN call getting sent to the AM message?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby krondorl » Wed Nov 07, 2007 3:46 pm

mflorell wrote:That looks right, you have MACHINE and HUMAN coming up. As for your problem, was the HUMAN call getting sent to the AM message?


Quick answer, Yes..
krondorl
 
Posts: 35
Joined: Wed Oct 17, 2007 2:09 pm

Postby mflorell » Thu Nov 08, 2007 12:50 pm

Can you post Real Asterisk CLI output for both occurances with AGIOUT set to STDERR?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby krondorl » Thu Nov 08, 2007 1:49 pm

mflorell wrote:Can you post Real Asterisk CLI output for both occurances with AGIOUT set to STDERR?


Ummm, where do I set that?
krondorl
 
Posts: 35
Joined: Wed Oct 17, 2007 2:09 pm

Postby mflorell » Fri Nov 09, 2007 3:06 am

Servers tab of the admin.php interface.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby krondorl » Fri Nov 09, 2007 10:53 am

mflorell wrote:Can you post Real Asterisk CLI output for both occurances with AGIOUT set to STDERR?


Here is what I got for the test we did: (XXX---XXXX - Original # replaced to protect individual.)

2007-11-09 10:29:15|157601| |MACHINE|MAXWORDS-4-4|1888246387|
2007-11-09 10:29:25|157602| |HUMAN|HUMAN-1000-1000|1888246387|
2007-11-09 10:29:41|157603| |HUMAN|HUMAN-1000-1000|1888246387|
==============================================
[Nov 9 10:28:46] VERBOSE[9378] logger.c: > Channel Zap/104-1 was answered.
[Nov 9 10:28:46] VERBOSE[9380] logger.c: -- Executing [8600051@default:1] MeetMe("Zap/104-1", "8600051") in new stack
......
edited and removed information that was not conclusive to the problem....
......
[Nov 9 10:30:05] VERBOSE[9380] logger.c: -- AGI Script agi://127.0.0.1:4577/VD_hangup--HVcause ... ----------) completed, returning 0
[Nov 9 10:30:05] VERBOSE[9380] logger.c: -- Hungup 'Zap/104-1'
Last edited by krondorl on Thu Nov 15, 2007 10:23 am, edited 1 time in total.
krondorl
 
Posts: 35
Joined: Wed Oct 17, 2007 2:09 pm

Postby mflorell » Sat Nov 10, 2007 1:11 am

That is not Real Asterisk CLI output. Are you using the "start_asterisk_boot.pl" script to start up Asterisk as is mentioned in the SCRATCH_INSTALL doc?

If not, you need to start up asterisk like this and post the output:
asterisk -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvgc
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby krondorl » Sun Nov 11, 2007 4:23 pm

mflorell wrote:That is not Real Asterisk CLI output. Are you using the "start_asterisk_boot.pl" script to start up Asterisk as is mentioned in the SCRATCH_INSTALL doc?

If not, you need to start up asterisk like this and post the output:
asterisk -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvgc


This is the asterisk output with the logger.conf set to full debug mode. This actually gives more information then the console does and is a mirror image of what is outputted to the cli (with extra stuff added). We use the basic asterisk startup script normally. Does the screen mode actually show different information then a -vvvvvvvvvvvvvvvvvvvvrc??
krondorl
 
Posts: 35
Joined: Wed Oct 17, 2007 2:09 pm

Postby krondorl » Tue Nov 13, 2007 4:08 pm

Ok, I have the system running with the -(mega v's)gc command but have a few points to ask about..

1. As I am only a consultant, I have a long drive to be able to see the console output generated by asterisk/vicidial, therefore getting information from the screen is near impossible. My only access is via ssh and -(mega v's)rc.

2. When started in with the -gc, there is no way to get any of the data off the screen as it goes by too quickly and is lost to even the paging functionality.

3. Also in the -gc, I cannot open any other screen sessions.

(Note: 2 and 3 were findings as a result of me actually being there not too long ago.)

So the question comes down to this: Does the agi have the ability to go to a file that I can look at? If so what and where is the file when the agi output is set to "BOTH"?

Thanks
krondorl
 
Posts: 35
Joined: Wed Oct 17, 2007 2:09 pm

Postby mflorell » Thu Nov 15, 2007 12:15 am

If you have logging enabled for the server in the servers table and you start asterisk with the start_asterisk_boot.pl script then you can look at the screenlog output file, or attach to the actual Asterisk process.

The logs are saved to agiout.XXXX-XX-XX in your astguiclient log directory as defined in /etc/astguiclient.conf
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby krondorl » Thu Nov 15, 2007 10:21 am

Thanks mflorell,

Here's the information from the latest agiout:

2007-11-15 9:51:54|VD_amd.agi|Perl Environment Dump:
2007-11-15 9:51:54|VD_amd.agi|0|8369
2007-11-15 9:51:54|VD_amd.agi|AGI Environment Dump:
2007-11-15 9:51:54|VD_amd.agi| -- accountcode =
2007-11-15 9:51:54|VD_amd.agi| -- callerid = 1888246387
2007-11-15 9:51:54|VD_amd.agi| -- calleridname = V1115095141000157613
2007-11-15 9:51:54|VD_amd.agi| -- callingani2 = 0
2007-11-15 9:51:54|VD_amd.agi| -- callingpres = 0
2007-11-15 9:51:54|VD_amd.agi| -- callingtns = 0
2007-11-15 9:51:54|VD_amd.agi| -- callington = 0
2007-11-15 9:51:54|VD_amd.agi| -- channel = Zap/19-1
2007-11-15 9:51:54|VD_amd.agi| -- context = default
2007-11-15 9:51:54|VD_amd.agi| -- dnid = unknown
2007-11-15 9:51:54|VD_amd.agi| -- enhanced = 0.0
2007-11-15 9:51:54|VD_amd.agi| -- extension = 8369
2007-11-15 9:51:54|VD_amd.agi| -- language = en
2007-11-15 9:51:54|VD_amd.agi| -- priority = 3
2007-11-15 9:51:54|VD_amd.agi| -- rdnis = unknown
2007-11-15 9:51:54|VD_amd.agi| -- request = VD_amd.agi
2007-11-15 9:51:54|VD_amd.agi| -- type = Zap
2007-11-15 9:51:54|VD_amd.agi| -- uniqueid = 1195138302.21676
2007-11-15 9:51:54|VD_amd.agi|AGI Variables: |1195138302.21676|Zap/19-1|8369|Zap|V1115095141000157613|
2007-11-15 9:51:54|VD_amd.agi|+++++ VD amd START : |157613|2007-11-15 9:51:54||3|V1115095141000157613|
2007-11-15 9:51:54|VD_amd.agi|AAAAA AMD results: |HUMAN|HUMAN-1000-1000|
2007-11-15 9:51:54|VD_amd.agi||SELECT ext_context FROM servers where server_ip = '216.75.162.195';|
2007-11-15 9:51:54|VD_amd.agi||SELECT campaign_id,phone_code,phone_number FROM vicidial_auto_calls where callerid='V1115095141000157613' order by auto_call_id desc limit 1;|
2007-11-15 9:51:54|VD_amd.agi||UPDATE vicidial_list set status='A' where lead_id = '157613';|
2007-11-15 9:51:54|VD_amd.agi|-- VDAD vicidial_list update: |1|157613
2007-11-15 9:51:54|VD_amd.agi|-- VDAC record deleted: |1| |157613|1195138302.21676|
2007-11-15 9:51:54|VD_amd.agi||SELECT start_epoch FROM vicidial_log where uniqueid='1195138302.21676' and lead_id='157613' order by call_date desc limit 1;|
2007-11-15 9:51:54|VD_amd.agi|no VDL record found: 1195138302.21676 V1115095141000157613 157613 1195138302.21676
2007-11-15 9:51:54|VD_amd.agi||INSERT INTO vicidial_log (uniqueid,lead_id,campaign_id,call_date,start_epoch,status,phone_code,phone_number,user,processed,length_in_sec,end_epoch) values('1195138302.21676','157613','TESTCAMP','2007-11-15 9:51:54','1195138314','A','1','5195036530','VDAD','N','3','1195138317')|
2007-11-15 9:51:54|VD_amd.agi||SELECT am_message_exten,amd_send_to_vmx FROM vicidial_campaigns where campaign_id = 'TESTCAMP';|
2007-11-15 9:51:54|VD_amd.agi|-- AMD campaign values: |TESTCAMP|4000|Y|
2007-11-15 9:51:54|VD_amd.agi||UPDATE vicidial_log set status='AM' where uniqueid='1195138302.21676' and lead_id='157613' order by call_date desc limit 1;|
2007-11-15 9:51:54|VD_amd.agi|-- VDAD vicidial_log AM update: |1|1195138302.21676|
2007-11-15 9:51:54|VD_amd.agi||UPDATE vicidial_list set status='AM' where lead_id='157613';|
2007-11-15 9:51:54|VD_amd.agi|-- VDAD vicidial_list AM update: |1|1195138302.21676|
2007-11-15 9:51:54|VD_amd.agi|exiting the AMD app, transferring call to 4000

Notice how it transfers to 4000 even though a person answered the phone.

Here is the Machine answering on Monday. Goes to same place.

2007-11-12 16:47:05|VD_amd.agi|Perl Environment Dump:
2007-11-12 16:47:05|VD_amd.agi|0|8369
2007-11-12 16:47:05|VD_amd.agi|AGI Environment Dump:
2007-11-12 16:47:05|VD_amd.agi| -- accountcode =
2007-11-12 16:47:05|VD_amd.agi| -- callerid = 1888246387
2007-11-12 16:47:05|VD_amd.agi| -- calleridname = V1112164651000157611
2007-11-12 16:47:05|VD_amd.agi| -- callingani2 = 0
2007-11-12 16:47:05|VD_amd.agi| -- callingpres = 0
2007-11-12 16:47:05|VD_amd.agi| -- callingtns = 0
2007-11-12 16:47:05|VD_amd.agi| -- callington = 0
2007-11-12 16:47:05|VD_amd.agi| -- channel = Zap/22-1
2007-11-12 16:47:05|VD_amd.agi| -- context = default
2007-11-12 16:47:05|VD_amd.agi| -- dnid = unknown
2007-11-12 16:47:05|VD_amd.agi| -- enhanced = 0.0
2007-11-12 16:47:05|VD_amd.agi| -- extension = 8369
2007-11-12 16:47:05|VD_amd.agi| -- language = en
2007-11-12 16:47:05|VD_amd.agi| -- priority = 3
2007-11-12 16:47:05|VD_amd.agi| -- rdnis = unknown
2007-11-12 16:47:05|VD_amd.agi| -- request = VD_amd.agi
2007-11-12 16:47:05|VD_amd.agi| -- type = Zap
2007-11-12 16:47:05|VD_amd.agi| -- uniqueid = 1194904012.5
2007-11-12 16:47:05|VD_amd.agi|AGI Variables: |1194904012.5|Zap/22-1|8369|Zap|V1112164651000157611|
2007-11-12 16:47:05|VD_amd.agi|+++++ VD amd START : |157611|2007-11-12 16:47:05||3|V1112164651000157611|
2007-11-12 16:47:05|VD_amd.agi|AAAAA AMD results: |MACHINE|MAXWORDS-4-4|
2007-11-12 16:47:05|VD_amd.agi||SELECT ext_context FROM servers where server_ip = '216.75.162.195';|
2007-11-12 16:47:05|VD_amd.agi||SELECT campaign_id,phone_code,phone_number FROM vicidial_auto_calls where callerid='V1112164651000157611' order by auto_call_id desc limit 1;|
2007-11-12 16:47:05|VD_amd.agi||UPDATE vicidial_list set status='A' where lead_id = '157611';|
2007-11-12 16:47:05|VD_amd.agi|-- VDAD vicidial_list update: |1|157611
2007-11-12 16:47:05|VD_amd.agi|-- VDAC record deleted: |1| |157611|1194904012.5|
2007-11-12 16:47:05|VD_amd.agi||SELECT start_epoch FROM vicidial_log where uniqueid='1194904012.5' and lead_id='157611' order by call_date desc limit 1;|
2007-11-12 16:47:05|VD_amd.agi|no VDL record found: 1194904012.5 V1112164651000157611 157611 1194904012.5
2007-11-12 16:47:05|VD_amd.agi||INSERT INTO vicidial_log (uniqueid,lead_id,campaign_id,call_date,start_epoch,status,phone_code,phone_number,user,processed,length_in_sec,end_epoch) values('1194904012.5','157611','TESTCAMP','2007-11-12 16:47:05','1194904025','A','1','5195036530','VDAD','N','3','1194904028')|
2007-11-12 16:47:05|VD_amd.agi||SELECT am_message_exten,amd_send_to_vmx FROM vicidial_campaigns where campaign_id = 'TESTCAMP';|
2007-11-12 16:47:05|VD_amd.agi|-- AMD campaign values: |TESTCAMP|4000|Y|
2007-11-12 16:47:05|VD_amd.agi||UPDATE vicidial_log set status='AM' where uniqueid='1194904012.5' and lead_id='157611' order by call_date desc limit 1;|
2007-11-12 16:47:05|VD_amd.agi|-- VDAD vicidial_log AM update: |1|1194904012.5|
2007-11-12 16:47:05|VD_amd.agi||UPDATE vicidial_list set status='AM' where lead_id='157611';|
2007-11-12 16:47:05|VD_amd.agi|-- VDAD vicidial_list AM update: |1|1194904012.5|
2007-11-12 16:47:05|VD_amd.agi|exiting the AMD app, transferring call to 4000

Thanks
krondorl
 
Posts: 35
Joined: Wed Oct 17, 2007 2:09 pm

Postby mflorell » Thu Nov 15, 2007 3:53 pm

What version of Asterisk are you using?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby krondorl » Thu Nov 15, 2007 3:58 pm

mflorell wrote:What version of Asterisk are you using?


1.14.10.1
krondorl
 
Posts: 35
Joined: Wed Oct 17, 2007 2:09 pm

Postby mflorell » Thu Nov 15, 2007 4:00 pm

You don't want to be using Asterisk 1.4 with VICIDIAL. Downgrade to 1.2.17 or higher.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby krondorl » Fri Nov 16, 2007 6:02 pm

mflorell wrote:You don't want to be using Asterisk 1.4 with VICIDIAL. Downgrade to 1.2.17 or higher.


Ok, we downgraded to 1.2.21.1 and got everything running.. What I am now getting is the following WARNING:

Nov 16 17:55:42 WARNING[16037]: pbx.c:1720 pbx_extension_helper: No application 'AMD' for extension (default, 8369, 2)
krondorl
 
Posts: 35
Joined: Wed Oct 17, 2007 2:09 pm

Postby mflorell » Fri Nov 16, 2007 6:36 pm

Are you following the SCRATCH_INSTALL to install Asterisk?

If so, you would have downloaded app_amd.so and configured the apps/Makefile to compile it. Asteirsk 1.2 does not come with AMD by default.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby krondorl » Wed Dec 05, 2007 1:56 pm

This has been fixed and is working..

Thanks Matt!!!
krondorl
 
Posts: 35
Joined: Wed Oct 17, 2007 2:09 pm

Postby ramindia » Wed Dec 05, 2007 9:57 pm

Hi

is you AMD work 100% ?

what is the delay you see when you enable AMD detection your campaign
in autodial mode

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 krondorl » Thu Dec 06, 2007 10:58 am

ramindia wrote:Hi

is you AMD work 100% ?

what is the delay you see when you enable AMD detection your campaign
in autodial mode

ram


From what the client tells me, it's about 95% of the time which was better then 0% when first setup.

Are you talking about : AMD(3500|1500|300|5000|120|50|5|256)

or:

2007-12-06 10:54:39|268027| |AMD_PERSON|AMD_HUMAN-300-300|8664088299|
2007-12-06 10:54:42|268025| |AMD_PERSON|AMD_HUMAN-300-300|8664088299|
2007-12-06 10:54:56|268026| |AMD_PERSON|AMD_HUMAN-300-300|8664088299|
2007-12-06 10:54:58|268028| |AMD_MACHINE|AMD_LONGGREETING-1500-1500|8664088299|
2007-12-06 10:55:15|268023| |AMD_MACHINE|AMD_LONGGREETING-1500-1500|8664088299|
2007-12-06 10:55:25|268022| |AMD_MACHINE|AMD_LONGGREETING-1500-1500|8664088299|
2007-12-06 10:55:33|268020| |AMD_MACHINE|AMD_INITIALSILENCE-3500-3500|8664088299|
2007-12-06 10:55:36|268019| |AMD_MACHINE|AMD_LONGGREETING-1500-1500|8664088299|
2007-12-06 10:55:44|263821| |AMD_MACHINE|AMD_LONGGREETING-1500-1500|8664088299|
2007-12-06 10:55:49|268018| |AMD_PERSON|AMD_HUMAN-300-300|8664088299|
2007-12-06 10:55:51|268015| |AMD_MACHINE|AMD_MAXWORDS-5-5|8664088299|
2007-12-06 10:56:01|268021| |AMD_MACHINE|AMD_MAXWORDS-5-5|8664088299|
2007-12-06 10:56:09|268017| |AMD_PERSON|AMD_HUMAN-300-300|8664088299|
2007-12-06 10:56:13|268016| |AMD_MACHINE|AMD_MAXWORDS-5-5|8664088299|
2007-12-06 10:56:16|268012| |AMD_MACHINE|AMD_MAXWORDS-5-5|8664088299|
2007-12-06 10:56:23|268014| |AMD_PERSON|AMD_HUMAN-300-300|8664088299|
krondorl
 
Posts: 35
Joined: Wed Oct 17, 2007 2:09 pm


Return to Support

Who is online

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