[asterisk-users] AMD setup in Astersik

2010-08-07 Thread Tino
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

Re: [asterisk-users] AMD setup in Astersik

2010-08-07 Thread Nasir Iqbal
Hi Tino,

I think you can do it by using dummy queue number. for example create 500
queue in freepbx. and replace your goto command in ext-queues-custom with

exten = 5000,n,Goto(ext-queues,500,1)

Regards

On Sat, Aug 7, 2010 at 7:06 PM, Tino t...@sparksupport.com 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 ?


 --
 _
 -- 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




-- 
Nasir Iqbal

ICT Innovations
http://www.ictinnovations.com/
-- 
_
-- 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

Re: [asterisk-users] AMD setup in Astersik

2010-08-07 Thread Rushikesh
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 ?



-- 
_
-- 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


Re: [asterisk-users] AMD setup in Astersik

2010-08-07 Thread Duncan Turnbull
You can include the label of the context in the custom area instead of 
including a different context

i.e. [ext-queues](+)

http://www.voip-info.org/tiki-index.php?page=Asterisk%20config%20extensions.conf

Not sure if it affects the order of processing or if that matters

Cheers Duncan

On 8/08/2010, at 7:43 AM, Rushikesh wrote:

 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 ?
 
 
 
 -- 
 _
 -- 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


-- 
_
-- 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