<div>Hi, ( Sorry for previous post, it was incomplete :o(</div>
<div> </div>
<div>I have set up a fax to email capability on our Asterisk Server (which is used for voicemail, and fax2email only),</div>
<div>and would like to improve it !</div>
<div> </div>
<div>Everytime Asterisk receives a fax, I would like it to go and search in a DB if the Extension is defined.</div>
<div>If it is, then it will set the Email address where to send the fax.</div>
<div>I do not want to use extension.conf ...</div>
<div> </div>
<div>And actually, it would be the same for voicemail,</div>
<div>Our users have different extensions. And we want them to have only one Mailbox.</div>
<div>Thus we can configure the primary extension as the main voicemail number,</div>
<div>but we need to have all the secondaries extension to be sent to the primary one.</div>
<div>Thus I would like to seach into a DB,</div>
<div>if such a secondary extension exists, it sends back the primary extension, </div>
<div>so we can route the call to the appropriate mailbox ( primary )</div>
<div> </div>
<div>I would like to use Asterisk + MySQL Realtime.</div>
<div>I have set up in "res_mysql.conf" the way to access MySQL</div>
<div>I have set up in "extconfig.conf" :</div>
<div> fax2email => mysql,asteriskrealtime,fax2email</div>
<div>And then in my DB :</div>
<div> DB Name = asteriskrealtime</div>
<div> Table Name = fax2email</div>
<div>Table fax2email:</div>
<div> Field EXT which contains extension numbers</div>
<div> Field email which contains the email where to send the fax</div>
<div> </div>
<div>If I use DBGet, how to specify that I want to retrieve the email address from fax2email table, which matches the extension in Asterisk ?</div>
<div> </div>
<div>Thanks for your help guys !</div>
<div> </div>
<div>Yours,</div>
<div> </div>
<div>Jean-Marc ( can cannot send more than 10 lines in one email :o)<br><br> </div>