[asterisk-bugs] [Asterisk 0014875]: [patch] New dialplan application that tell Asterisk to not generate/send Manager Event for the current call

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Apr 15 20:37:22 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14875 
====================================================================== 
Reported By:                jvandal
Assigned To:                junky
====================================================================== 
Project:                    Asterisk
Issue ID:                   14875
Category:                   Core/ManagerInterface
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-04-10 10:28 CDT
Last Modified:              2009-04-15 20:37 CDT
====================================================================== 
Summary:                    [patch] New dialplan application that tell Asterisk
to not generate/send Manager Event for the current call
Description: 
We heavily use Asterisk Manager Interface (AMI) to get events and in some
call scenarios, like using Page application to dial 300 local channel, we
receive lots of events that we want to ignore.

I have add a new NoAMI() dial plan application that tell Asterisk to not
generate/send Manager Event for the current call.

By example :

exten => s,1,NoAMI()
exten => s,n,NoCDR()
exten => s,n,Page(Local/101 at paging&Local/102 at paging&Local/1-3 at paging&...)
exten => s,n,Hangup

====================================================================== 

---------------------------------------------------------------------- 
 (0103291) jvandal (reporter) - 2009-04-15 20:37
 http://bugs.digium.com/view.php?id=14875#c103291 
---------------------------------------------------------------------- 
I have set ' ... for the current *call* ' because when we use NoAMI()
application, it will disable all events for dialplan (Newexten) and, if I
have correctly patch it, for all channels that will be involved in the
current *call*.

Not all manager_event calls need to be checked for the 'c->send_manager'
flag or cannot be checked because no channel variable are available, by
example on app_voicemail.c or app_queue.c.

On a performance side, I dont think it will be "optimal" to check for the
'send_manager' flag directly in the manager_event, because we will have to
loop through available channel and do pattern matching for variable like
'Channel' or 'Source'. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-15 20:37 jvandal        Note Added: 0103291                          
======================================================================




More information about the asterisk-bugs mailing list