<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Use a macro<br>
[macro-stdexten]<br>
<pre wrap="">exten => s,1,Dial(${ARG1},30,Ttm)
exten => s,2,Hangup
exten => s-NOANSWER,1,Voicemail(${ARG2})
exten => s-NOANSWER,n,Hangup
</pre>
then call it like<br>
exten => 20000,1,Macro(stdexten,SIP/20000,20000)<br>
<br>
<br>
Josu Lazkano Lete wrote:
<blockquote cite="mid001601c7753a$f42c10b0$1d00000a@Lazkano" type="cite">
<pre wrap="">hello friends,
is there any way to simplify that extensions.conf file?
[miprimerejemplo]
exten => 20000,1,Dial(SIP/20000,30,Ttm)
exten => 20000,2,Hangup
exten => 20000,102,Voicemail(20000)
exten => 20000,103,Hangup
exten => 20100,1,Dial(SIP/20100,30,Ttm)
exten => 20100,2,Hangup
exten => 20100,102,Voicemail(20100)
exten => 20100,103,Hangup
exten => 20200,1,Dial(SIP/20200,30,Ttm)
exten => 20200,2,Hangup
exten => 202000,102,Voicemail(20200)
exten => 20200,103,Hangup
exten => 20300,1,Dial(SIP/20300,30,Ttm)
exten => 20300,2,Hangup
exten => 203000,102,Voicemail(20300)
exten => 20300,103,Hangup
exten => 20400,1,Dial(SIP/20400,30,Ttm)
exten => 20400,2,Hangup
exten => 204000,102,Voicemail(20400)
exten => 20400,103,Hangup
thanks to all
</pre>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</pre>
</blockquote>
<br>
</body>
</html>