It is self explanatory, for example:<br><br>exten => _X.,1, Noop("Let say we have allowed all numbers i.e. _X means and . specifies any range")<br>same => n,NoOp("Here we have skipped mentioning dial-pattern again and thats it")<br>
<br><br>Hope I have answered your question. <br><br><br><br><div class="gmail_quote">On Thu, Nov 29, 2012 at 8:40 AM, Shitian Long <span dir="ltr"><<a href="mailto:longst.cn@gmail.com" target="_blank">longst.cn@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello <div><br></div><div>I have been reading the sample extension.conf</div><div><br>
</div><div>;#######################</div><div><br></div><div><br></div><div><div>[outbound-freenum2]</div><div>; This is the handler which performs the dialing logic. It is called</div><div>; from the [outbound-freenum] context</div>
<div>;</div><div>exten => _X!,1,Verbose(2,Performing ISN lookup for ${EXTEN})</div><div>same => n,Set(SUFFIX=${CUT(EXTEN,*,2-)}) ; make sure the suffix is all digits as well</div><div>
same => n,GotoIf($["${FILTER(0-9,${SUFFIX})}" != "${SUFFIX}"]?fn-CONGESTION,1)</div><div> ; filter out bad characters per the README-SERIOUSLY.best-practices.txt document</div>
<div>same => n,Set(TIMEOUT(absolute)=10800)</div><div>same => n,Set(isnresult=${ENUMLOOKUP(${EXTEN},sip,,1,<a href="http://freenum.org" target="_blank">freenum.org</a>)}) ; perform our lookup with <a href="http://freenum.org" target="_blank">freenum.org</a></div>
<div>same => n,GotoIf($["${isnresult}" != ""]?from)</div><div>same => n,Set(DIALSTATUS=CONGESTION)</div><div>same => n,Goto(fn-CONGESTION,1)</div><div>same => n(from),Set(__SIPFROMUSER=${CALLERID(num)})</div>
<div>same => n,GotoIf($["${GLOBAL(FREENUMDOMAIN)}" = ""]?dial) ; check if we set the FREENUMDOMAIN global variable in [global]</div><div>same => n,Set(__SIPFROMDOMAIN=${GLOBAL(FREENUMDOMAIN)}) ; if we did set it, then we'll use it for our outbound dialing domain</div>
<div>same => n(dial),Dial(SIP/${isnresult},40)</div><div>same => n,Goto(fn-${DIALSTATUS},1)</div><div><br></div><div>exten => fn-BUSY,1,Busy()</div><div><br></div><div>exten => _f[n]-.,1,NoOp(ISN: ${DIALSTATUS})</div>
<div>same => n,Congestion()</div></div><div><br></div><div>;##########################</div><div><br></div><div><br></div><div><div>According to "<a href="http://www.voip-info.org/wiki/view/Asterisk+config+extensions.conf" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+config+extensions.conf</a>"</div>
<div><br></div><div>"<span style="font-size:12px;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif">Syntax for defining a context: keywords </span><b style="font-size:12px;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif">exten</b><span style="font-size:12px;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif">, </span><b style="font-size:12px;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif">include</b><span style="font-size:12px;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif">, </span><b style="font-size:12px;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif">ignorepat</b><span style="font-size:12px;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif"> and </span><b style="font-size:12px;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif">switch</b><span style="font-size:12px;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif">.</span>" "same is not mentioned in this wiki." </div>
</div><div><br></div><div>There is a part of dial plan from sample extension.conf above. My Question is how "same =>" key word works . </div><div><br></div><div>Thanks</div><div><br></div><div><br></div></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br><font face="'times new roman', serif">Regards</font><div>
<font face="'times new roman', serif"><br></font><div><pre cols="72"><font face="'times new roman', serif">**************************
Muhammad Salman
***************************</font>
</pre></div></div><br>