[asterisk-users] AMD setup in Astersik
Tino
tino at sparksupport.com
Sat Aug 7 09:06:58 CDT 2010
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 ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100807/27b5cef7/attachment.htm
More information about the asterisk-users
mailing list