[asterisk-users] AMD setup in Astersik

Rushikesh rushikesh.jadhav at esds.co.in
Sat Aug 7 14:43:32 CDT 2010


Hi,

You can use /etc/asterisk/extensions_override_freepbx.conf  file if you 
dont want your dialplan to get overridden.


Regards,
Rishi

On Saturday 07 August 2010 07:36 PM, Tino wrote:
>
> 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 ?
>




More information about the asterisk-users mailing list