As far as i remember asterisk uses sendmail to send outgoing voicemail emails so maybe that is where u should look.<br><br><div class="gmail_quote">On Tue, Jun 9, 2009 at 12:20 PM, Trixter aka Bret McDanel <span dir="ltr"><<a href="mailto:trixter@0xdecafbad.com">trixter@0xdecafbad.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Tue, 2009-06-09 at 00:21 -0600, Brandon B. wrote:<br>
> This is a SMTP question more than an Asterisk issue. Is the DNS<br>
> information for these two mail destinations correctly configured? If<br>
> not, use your own DNS server with the necessary information or write a<br>
> script that will accept the voicemail email with attachment and make<br>
> the necessary SMTP connnections.<br>
><br>
<br>
</div>does asterisk do it that way or does it look up the first A record it<br>
gets and use that and only that ?? If that is the case, and it does not<br>
even support MX records then the correct answer would probably be closer<br>
to "asterisk does not do that".<br>
<br>
I really dont know but if I had to guess I would say that its not using<br>
MX records, because it wants a smtp server, and given the way other<br>
things in asterisk are done its likely that it does not try a secondary<br>
A record if the primary is down.<br>
<br>
You can still trick asterisk by using something similar to<br>
<a href="http://ultramonkey.org" target="_blank">ultramonkey.org</a> (although you may not have to go quite as far as<br>
ultramonkey would take you) so that asterisk thinks its just connecting<br>
to a single host all the time, and if it fails its transparently<br>
switched to the backup system.<br>
<br>
Of course a more elegant solution would be, assuming its not there which<br>
is an assumption I did make, to add the functionality to try multiple<br>
hosts in order until it gets something resembling a success code (2xx,<br>
usually 200), and if it runs out of hosts then queue and schedule an<br>
event to try again in some timeout interval until the queue is empty.<br>
But hey, for all I know it already does this, I really havent looked and<br>
barely read the posts in this thread.<br>
<font color="#888888">--<br>
Trixter <a href="http://www.0xdecafbad.com" target="_blank">http://www.0xdecafbad.com</a> Bret McDanel<br>
pgp key: <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8AE5C721" target="_blank">http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8AE5C721</a><br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-biz mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-biz" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-biz</a><br>
</div></div></blockquote></div><br>