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

Jordan Bean jordan.bean at webcoretech.com
Fri Sep 30 08:36:00 MST 2005


Great advice. One more question (sorry, I'm not a full time programmer):

Do you know which vm_delete() call is actually triggered by a user
deleting the message?  I can easily rule out a few, but other's I can't.
I believe that the call that I'm looking for may be at end of the
close_mailbox() procedure - just looking for some confirmation from the
experienced.  :)

Jordan Bean
Webcore Technologies, Inc.
toll 800.584.9950
voice 512.320.7071
fax 512.320.7072
 
-----Original Message-----
From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Tilghman
Lesher
Sent: Friday, September 30, 2005 10:26 AM
To: Asterisk Developers Mailing List
Subject: Re: [Asterisk-Dev] Want to add a VM delete event - where
inapp_voicemail.c?

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
_______________________________________________
Asterisk-Dev mailing list
Asterisk-Dev at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev



More information about the asterisk-dev mailing list