<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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">freenum.org</a>)}) ; perform our lookup with <a href="http://freenum.org">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">http://www.voip-info.org/wiki/view/Asterisk+config+extensions.conf</a>"</div><div><br></div><div>"<span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255); ">Syntax for defining a context: keywords </span><strong style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255); ">exten</strong><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255); ">, </span><strong style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255); ">include</strong><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255); ">, </span><strong style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255); ">ignorepat</strong><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255); "> and </span><strong style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255); ">switch</strong><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255); ">.</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></body></html>