[Asterisk-Dev] Want to add a VM delete event - where in app_voicemail.c?

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Fri Sep 30 08:26:12 MST 2005


On Friday 30 September 2005 09:04, Jordan Bean wrote:
> I want to modify the Asterisk source code to add an event trigger
> when a voicemail is deleted from a user's mailbox.  It looks like the
> vm_delete function gets called when VM's are too short, etc.  I could
> make this work, but I don't think it's the optimal place since this
> procedure will get triggered in times other when valid VM actually
> being removed from the users mailbox.

No, that's probably the right place.  You probably want to add a flag to
that function to indicate whether to create an event or not, then modify
where it's being called to send that flag set or unset, depending upon
whether it's an auto-delete or a user-initiated delete.

-- 
Tilghman



More information about the asterisk-dev mailing list