<div>Hi, ( Sorry for previous post, it was incomplete :o(</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>I do not want to use extension.conf ...</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 then in my DB :</div>
<div>&nbsp;&nbsp;&nbsp; DB Name = asteriskrealtime</div>
<div>&nbsp;&nbsp;&nbsp; Table Name = fax2email</div>
<div>Table fax2email:</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; Field EXT which contains extension numbers</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; Field email which contains the email where to send the fax</div>
<div>&nbsp;</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>&nbsp;</div>
<div>Thanks for your help guys !</div>
<div>&nbsp;</div>
<div>Yours,</div>
<div>&nbsp;</div>
<div>Jean-Marc ( can cannot send more than 10 lines in one email :o)<br><br>&nbsp;</div>