<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Instead of picking from multiple scripts, send the action to the
    script in a variable like the dial status  <br>
    <br>
    On 4/12/11 4:58 PM, Warren Selby wrote:
    <blockquote
      cite="mid:E656BB56-11B3-4BC2-84D3-C67F4D02CBF8@selbytech.com"
      type="cite">
      <div>Sorry for the top post, on my phone...</div>
      <div><br>
      </div>
      <div>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. </div>
      <div><br>
      </div>
      <div>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).</div>
      <div><br>
      </div>
      <div>If I had the programming chops, I would take a crack at it
        myself.  <br>
        <br>
        Thanks,
        <div>--Warren Selby, dCAP</div>
      </div>
      <div><br>
        On Apr 12, 2011, at 3:28 PM, vip killa &lt;<a
          moz-do-not-send="true" href="mailto:vipkilla@gmail.com">vipkilla@gmail.com</a>&gt;
        wrote:<br>
        <br>
      </div>
      <blockquote type="cite">
        <div>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.<br>
          <br>
          <div class="gmail_quote">
            On Tue, Apr 12, 2011 at 4:26 PM, Steve Edwards <span
              dir="ltr">&lt;<a moz-do-not-send="true"
                href="http://asterisk.org">asterisk.org</a>@<a
                moz-do-not-send="true" href="http://sedwards.com">sedwards.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
              0.8ex; border-left: 1px solid rgb(204, 204, 204);
              padding-left: 1ex;">
              <div class="im">
                <blockquote class="gmail_quote" style="margin: 0pt 0pt
                  0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);
                  padding-left: 1ex;">
                  On Tue, 12 Apr 2011, vip killa wrote:<br>
                  <br>
                  <blockquote class="gmail_quote" style="margin: 0pt 0pt
                    0pt 0.8ex; border-left: 1px solid rgb(204, 204,
                    204); padding-left: 1ex;">
                    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...<br>
                  </blockquote>
                </blockquote>
                <br>
              </div>
              <div class="im">
                On Tue, 12 Apr 2011, Steve Edwards wrote:<br>
                <br>
                <blockquote class="gmail_quote" style="margin: 0pt 0pt
                  0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);
                  padding-left: 1ex;">
                  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.<br>
                </blockquote>
                <br>
              </div>
              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.
              <div>
                <div class="h5"><br>
                  <br>
                  -- <br>
                  Thanks in advance,<br>
-------------------------------------------------------------------------<br>
                  Steve Edwards       <a moz-do-not-send="true"
                    href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a>
                       Voice: <a moz-do-not-send="true"
                    href="tel:%2B1-760-468-3867" value="+17604683867"
                    target="_blank">+1-760-468-3867</a> PST<br>
                  Newline                                            
                   Fax: <a moz-do-not-send="true"
                    href="tel:%2B1-760-731-3000" value="+17607313000"
                    target="_blank">+1-760-731-3000</a><br>
                  <br>
                  --<br>
_____________________________________________________________________<br>
                  -- Bandwidth and Colocation Provided by <a
                    moz-do-not-send="true"
                    href="http://www.api-digital.com">http://www.api-digital.com</a>
                  --<br>
                  New to Asterisk? Join us for a live introductory
                  webinar every Thurs:<br>
                               <a moz-do-not-send="true"
                    href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a><br>
                  <br>
                  asterisk-users mailing list<br>
                  To UNSUBSCRIBE or update options visit:<br>
                   <a moz-do-not-send="true"
                    href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </blockquote>
      <blockquote type="cite">
        <div><span>--</span><br>
          <span>_____________________________________________________________________</span><br>
          <span>-- Bandwidth and Colocation Provided by <a
              moz-do-not-send="true" href="http://www.api-digital.com">http://www.api-digital.com</a>
            --</span><br>
          <span>New to Asterisk? Join us for a live introductory webinar
            every Thurs:</span><br>
          <span>               <a moz-do-not-send="true"
              href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a></span><br>
          <span></span><br>
          <span>asterisk-users mailing list</span><br>
          <span>To UNSUBSCRIBE or update options visit:</span><br>
          <span>   <a moz-do-not-send="true"
              href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></span></div>
      </blockquote>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               <a class="moz-txt-link-freetext" href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a>

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
    </blockquote>
  </body>
</html>