<div>anyway, you could put the routing stuff in an external file included in extensions.conf:</div>
<div> </div>
<div>...</div>
<div><some dialplan stuff></div>
<div>...</div>
<div> </div>
<div>[extension-routing]</div>
<div>#include ext-routing.conf<br><br>
<div>...</div>
<div><some dialplan stuff></div>
<div>...</div></div>
<div> </div>
<div> </div>
<div>in ext-routing.conf you have your routing stuff:</div>
<div> </div>
<div>exten => 1234567,1,Dial(11)</div>
<div>exten => 7654321,1,Dial(12)</div>
<div>.... and so on</div>
<div> </div>
<div>When you have a new customer, you only need to regenerate ext-routing.conf from the db and > asterisk -rx "extensions reload"</div>
<div> </div>
<div>without having asterisk wait an AGI script to re-parse the routing stuff on each and every call...</div>
<div> </div>
<div>hope this helps....</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div><span class="gmail_quote">2006/4/26, Olivier Saulnier <<a href="mailto:steganux@steganux.com">steganux@steganux.com</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello,<br><br>It's not possible, because the flat file is generated since a database,<br>and each day, there is news customers.
<br>Best regards,<br>Olivier S.<br><br>Innocent Evil a écrit :<br><br>>Why don't you do something like this:<br>><br>>exten => 12345678,1,Dial(10)<br>>exten => 45874521,1,Dial(11)<br>>exten => 32544884,1,Dial(12)
<br>><br>>replace Dial(10) and so on with apppriate extension.<br>><br>><br>>Thanks,<br>><br>><br>><br>>--<br>>You don't have any choice, you already made it before you came here.<br>><br>
><br>><br>><br>>>-----Original Message-----<br>>>From: <a href="mailto:steganux@steganux.com">steganux@steganux.com</a><br>>>Sent: Wed, 26 Apr 2006 08:47:03 +0200<br>>>To: <a href="mailto:asterisk-users@lists.digium.com">
asterisk-users@lists.digium.com</a><br>>>Subject: [Asterisk-Users] AGI and incoming call<br>>><br>>>Hello,<br>>><br>>>I would like to intercept each incoming call and with an awk script,<br>>>search the internal phone number ask.
<br>>>For example:<br>>>I have a text database as this:<br>>>External phone Internal Phone<br>>>12345678 10<br>>>45874521 11<br>>>32544884 12<br>>>
<br>>>When the client 45874521 call, Asterisk must routed the incoming call to<br>>>the internal phone 11<br>>>I have an awk script able to find the good internal phone, but i don't<br>>>know how to interface it with Asterisk. I thought that AGI is the best
<br>>>way. Is it?<br>>><br>>>Best regards,<br>>><br>>>--<br>>>Olivier Saulnier<br>>>STEGANUX<br>>>35 Quai Louis Blanc<br>>>03100 Montluçon<br>>>T: 04.70.02.80.55
<br>>>F: 04.70.02.80.57<br>>><a href="http://www.steganux.com">http://www.steganux.com</a><br>>><br>>>_______________________________________________<br>>>--Bandwidth and Colocation provided by
<a href="http://Easynews.com">Easynews.com</a> --<br>>><br>>>Asterisk-Users mailing list<br>>>To UNSUBSCRIBE or update options visit:<br>>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>>><br>>><br>>_______________________________________________<br>>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com
</a> --<br>><br>>Asterisk-Users mailing list<br>>To UNSUBSCRIBE or update options visit:<br>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br>><br>><br>><br>><br>><br><br><br>--<br>Olivier Saulnier<br>STEGANUX<br>35 Quai Louis Blanc<br>03100 Montluçon<br>T: 04.70.02.80.55<br>F: 04.70.02.80.57<br><a href="http://www.steganux.com">http://www.steganux.com
</a><br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>Asterisk-Users mailing list<br>To UNSUBSCRIBE or update options visit:
<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>