<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jun 30, 2008, at 1:04 PM, <a href="mailto:asterisk-users-request@lists.digium.com">asterisk-users-request@lists.digium.com</a> wrote:</div><div><br></div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><blockquote type="cite">But to get asterisk to run a different/fake sox, just install whatever<span class="Apple-converted-space"> </span><br></blockquote><blockquote type="cite">you want to run as /usr/local/bin/sox and then edit your safe_asterisk<span class="Apple-converted-space"> </span><br></blockquote><blockquote type="cite">script as I mentioned below.<br></blockquote><br>I think this is a bad approach. It's going to be a big "gotcha" down the<span class="Apple-converted-space"> </span><br>road for somebody :)</span></blockquote><div><br></div>Agreed. :) It would be nice if there was something similar to externnotify that was not just a notification but a pipe that you could modify/filter etc the audio file before it continues on its merry way.</div><div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "></span></blockquote><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><blockquote type="cite">Asterisk runs the program 'sox' using the first match in your $PATH, so<span class="Apple-converted-space"> </span><br></blockquote><blockquote type="cite">by updating the $PATH before asterisk runs you can direct it to run a<span class="Apple-converted-space"> </span><br></blockquote><blockquote type="cite">different sox program.<br></blockquote><br>A quick grep through the Asterisk (1.2.28) sources shows res_monitor using<span class="Apple-converted-space"> </span><br>soxmix if the channel variable MONITOR_EXEC is not defined -- but nothing<span class="Apple-converted-space"> </span><br>in app_voicemail. Am I missing something?</span></blockquote><div><br></div>It is possible this is a 1.4.x feature, and specifically it is for the e-mail sending system which as I am thinking about it is a 1.4 feature. I don't use 1.2.x and never have, I started with 1.4. The other option, again I don't know if this is available in 1.2, is to use the externnotify option. When a voicemail is left this script/program is called with the context, extension and number of new voicemail messages. With a little bit of shell scripting you could walk the list of all messages and process any left (modified) within the last 20 seconds via sox. It is a little more iffy and prone to race conditions, but it should work.</div><div><br></div><div>Unfortunately I couldn't give you a specific example of doing it this way as I use the e-mail style.</div><div><br></div><div>Daniel</div><div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><br>Thanks in advance,<br>------------------------------------------------------------------------<br>Steve Edwards <a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a><span class="Apple-converted-space"> </span> Voice: +1-760-468-3867 PST<br></span></blockquote></div><br></body></html>