Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Stopping recordings on all legs


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
ldardini at gmail.com
Guest





PostPosted: Tue Aug 18, 2015 5:07 am    Post subject: [asterisk-users] Stopping recordings on all legs Reply with quote

Hello,I'd like to use a feature code for stopping recordings. Things are quite easy when the call is received from the outside or just dialed from inside to outside, but it can go really crazy when there are blind and attended transfer going on. It ends I don't know on which call leg is the recording started, so I cannot stop the recording on the right one.
I usually use the following features.conf
#<FeatureName> => <DTMF_sequence>,<ActivateOn>[/<ActivatedBy>],<Application>[,<AppArguments>[,MOH_Class]]
FromOutsideStopMixMonitor => #0,peer/callee,Macro(pause-recording)FromOutsideStartMixMonitor => #1,peer/callee,Macro(unpause-recording)
FromInsideStopMixMonitor => #0,self/caller,Macro(pause-recording)FromInsideStartMixMonitor => #1,self/caller,Macro(unpause-recording)
So if the call is coming from inside, I use the "FromInside", while if the call is coming from outside, I use the "FromOutside" in DYNAMIC_FEATURES.
I can use "both" for the ActivatedBy, but I want also to run the pause-recording on both channel legs because I do not know on which one the recording has been started. How can I do?
Here the macros used:
[macro-pause-recording]exten => s,1,NoOp(Stopping Recording - MIXMONITOR_FILENAME is ${MIXMONITOR_FILENAME})exten => s,n,StopMixMonitor()
[macro-unpause-recording]exten => s,1,NoOp(Resuming Recording - MIXMONITOR_FILENAME is ${MIXMONITOR_FILENAME})exten => s,n,MixMonitor(${MIXMONITOR_FILENAME},ab)ldardiniNewsterisk Leandro
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services