<div>Hi,</div>
<div>&nbsp;</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>&nbsp;</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>&nbsp;</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&nbsp;such a secondary&nbsp;extension exists, it sends back the primary extension, </div>
<div>so we can route the call to the appropriate mailbox ( primary )</div>
<div>&nbsp;</div>
<div>I would like to use Asterisk + MySQL Realtime.</div>
<div>I have set up in &quot;res_mysql.conf&quot; the way to access MySQL</div>
<div>I have set up in &quot;extconfig.conf&quot; :</div>
<div>&nbsp;&nbsp;&nbsp; fax2email =&gt; mysql,asteriskrealtime,fax2email</div>
<div>And hen in my DB :</div>
<div>&nbsp;&nbsp;&nbsp; DB Name = asteriskrealtime</div>
<div>&nbsp;&nbsp;&nbsp; Table Name = fax2email</div>
<div>&nbsp;</div>