I went through with modifying app_meetme.c to allow toggle on / toggle off of recordings
This patch is against app/app_meetme.c, from asterisk-1.4.19.1
If it would be more helpful to provide a patch against a different
version, please let me know. Find patch attached.
These are changes to
admin_exec()
which handles instructions to the MeetMeAdmin() command
and descrip3
which is the actual text block dumped when you query the MeetMeAdmin() command
This is my first patch against Asterisk, and I hope it will be useful
to others. I sure would have used it if somebody had already built
this into MeetMe().
Is there a different mailing list where patches against Asterisk are
more commonly disseminated?
Theory is that Agents stay on for hours, listening to hold music
in-between customers. Customers come and go, toggling on recording
while they're present, and toggling it off when they hangup. There's
logic in my real dialplans to do complicated stuff with agi-bin to
give descriptive names to the recordings, update a database backend,
etc.
Here's an example of how to use it...
extensions.conf:
[Agent_extensions]
exten => s,1,Answer
exten => s,2,Wait(1)
exten => s,3,MeetMe(1234|Mp1)
exten => s,4,HangUp
exten => h,1,MeetMeAdmin(1234|K) ; destroy room if Agent hangs up,
even if customer on line
exten => h,2,HangUp
[Customer_extensions]
exten => s,1,Answer
exten => s,2,Wait(1)
exten => s,3,set_variable(${MEETME_RECORDINGFILE},foobar)
exten => s,4,set_variable(${MEETME_RECORDINGFORMAT},wav)
exten => s,5,MeetMe(1234|Mp1r) ; notice the argument 'r', meaning
start recording
exten => s,6,HangUp
exten => h,1,MeetMeAdmin(1234|Q) ; notice the argument 'Q', which
stops recordings if you apply my patch
exten => h,2,HangUp
Happy Asterisking!
David Backeberg
toggle_off_recordings.patch
Description: Binary data
_______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
