[asterisk-users] toggling recordings on / off using MeetMe()

David Backeberg dbackeberg at gmail.com
Mon May 5 15:27:54 CDT 2008


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: toggle_off_recordings.patch
Type: application/octet-stream
Size: 1742 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20080505/0411a4c6/attachment.obj 


More information about the asterisk-users mailing list