In my Asterisk server following things have been done to detect answering
machines before the answered call connects to the agents in queue.

In extension_additional.conf

==============================
[ext-queues]
include => ext-queues-custom
exten => 5000,20,Macro(user-callerid,)        ; changed the priority to 20
...............
==============================

In extension_custom.conf  added following amd dialplan

=======================
[ext-queues-custom]
exten => 5000,1,Answer()
exten => 5000,n,AMD(2500|1500|300|5000|120|50|4|384)
exten => 5000,n,GotoIf($["${AMDSTATUS}" = "MACHINE"]?machine:human)
exten => 5000,n(machine),Verbose(3, We found an answring machine)
exten => 5000,n,Set(AMP=${CALLERID(num)})
exten => 5000,n,Set(date=${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
exten => 5000,n,System(not showing the actual command)
exten => 5000,n,Goto(ext-queues,5000,20)
exten => 5000,n(human),Verbose(3, We've got a human on the line!)
exten => 5000,n,Goto(ext-queues,5000,20)
=======================================

This setup is working fine but the problem is that when i reload freepbx,
extension_additional.conf will go to its original form
and the changes made will be lost. Is there any way to make the changes in
extension_additional.conf conf permanent . Or is there any alternative
method for this ?
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to