Hi Josu,<br><br>[miprimerejemplo]<br>exten => 2XXXX,1,Dial(SIP/${EXTEN},3-,Ttm)<br>exten => 2XXXX,2,Hangup<br>exten => 2XXXX,102,Voicemail(${EXTEN})<br>exten => 2XXXX,103,Hangup<br><br>... is all you need in that context. Asterisk will match any called number that starts with a 2 and is 5 digits long. ${EXTEN} carries the value of the dialed number.
<br><br>Alex<br><br><div><span class="gmail_quote">On 4/2/07, <b class="gmail_sendername">Josu Lazkano Lete</b> <<a href="mailto:jlazkano@somesi.com">jlazkano@somesi.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font face="Arial" size="2">hello friends,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">is there any way to simplify that extensions.conf
file?</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">[miprimerejemplo]<br>exten =>
20000,1,Dial(SIP/20000,30,Ttm)<br>exten => 20000,2,Hangup<br>exten =>
20000,102,Voicemail(20000)<br>exten => 20000,103,Hangup</font></div>
<div> </div>
<div><font face="Arial" size="2">exten => 20100,1,Dial(SIP/20100,30,Ttm)<br>exten
=> 20100,2,Hangup<br>exten => 20100,102,Voicemail(20100)<br>exten =>
20100,103,Hangup</font></div>
<div> </div>
<div><font face="Arial" size="2">exten => 20200,1,Dial(SIP/20200,30,Ttm)<br>exten
=> 20200,2,Hangup<br>exten => 202000,102,Voicemail(20200)<br>exten =>
20200,103,Hangup</font></div>
<div> </div>
<div><font face="Arial" size="2">exten => 20300,1,Dial(SIP/20300,30,Ttm)<br>exten
=> 20300,2,Hangup<br>exten => 203000,102,Voicemail(20300)<br>exten =>
20300,103,Hangup</font></div>
<div> </div>
<div><font face="Arial" size="2">exten => 20400,1,Dial(SIP/20400,30,Ttm)<br>exten
=> 20400,2,Hangup<br>exten => 204000,102,Voicemail(20400)<br>exten =>
20400,103,Hangup</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">thanks to all</font></div></div>
<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --<br><br>
asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Alex Robar<br><a href="mailto:alex.robar@gmail.com">alex.robar@gmail.com</a>