Instead of picking from multiple scripts, send the action to the script in a variable like the dial status

On 4/12/11 4:58 PM, Warren Selby wrote:
Sorry for the top post, on my phone...

It makes sense for someone who has written a custom visual voicemail application to be able know when the vm has been checked...and that's just one example off the top of my head.

What I think would really be nice is that instead of removing features from externnotify, it could be enhanced in a way that you can tell it to run one script on a new vm, and a different one on a checked vm, and yet another one on a deleted vm, etc. Obviously all of the bases would have to be covered (move vm, listen to vm but not delete, skip vm, new vm, transferred vm, etc).

If I had the programming chops, I would take a crack at it myself.

Thanks,
--Warren Selby, dCAP

On Apr 12, 2011, at 3:28 PM, vip killa <vipki...@gmail.com <mailto:vipki...@gmail.com>> wrote:

Honestly, I don't understand why "externnotify" should run when someone checks their voicemail... the change i made, makes sense so maybe that should be contributed to the asterisk source.

On Tue, Apr 12, 2011 at 4:26 PM, Steve Edwards <asterisk.org <http://asterisk.org>@sedwards.com <http://sedwards.com>> wrote:

        On Tue, 12 Apr 2011, vip killa wrote:

            i ended up modify app_voicemail.c to not run
            "externnotify" when someone checks their voicemail, it
            now only runs when a new message is left... then
            externnotify will send out the emails and other
            notifications...


    On Tue, 12 Apr 2011, Steve Edwards wrote:

        I would suggest that enhancing mailcmd to include relevant
        channel variables (like VM_*) in the child environment or on
        the command line would be more useful than changing the
        behavior of externnotify.


    The 'difference' between enhancing mailcmd and changing
    externotify is that the enhancement can be contributed and
    accepted into the source so everybody can use it and the Asterisk
    developers will maintain it for you while your change will always
    be yours alone to remember to re-apply and update with each
    revision of Asterisk.


-- Thanks in advance,
    -------------------------------------------------------------------------
    Steve Edwards sedwa...@sedwards.com
    <mailto:sedwa...@sedwards.com>      Voice: +1-760-468-3867
    <tel:%2B1-760-468-3867> PST
    Newline                                              Fax:
    +1-760-731-3000 <tel:%2B1-760-731-3000>

    --
    _____________________________________________________________________
    -- Bandwidth and Colocation Provided by http://www.api-digital.com --
    New to Asterisk? Join us for a live introductory webinar every Thurs:
    http://www.asterisk.org/hello

    asterisk-users mailing list
    To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
                http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to