<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 29/11/2012 11:47 AM, Salman Zafar
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAP2a2YW2f6Sr=-aY-d6DNyNOqPNYzp6mm2DPO9Q6bDp_mNTxdg@mail.gmail.com"
      type="cite">It is self explanatory, for example:<br>
      <br>
      exten =&gt;&nbsp; _X.,1, Noop("Let say we have allowed all numbers i.e.
      _X means and . specifies any range")<br>
      same =&gt; n,NoOp("Here we have skipped mentioning dial-pattern
      again and thats it")<br>
      <br>
      <br>
      Hope I have answered your question. <br>
    </blockquote>
    Not for me.<br>
    What part of those lines and comments discusses "same"?<br>
    <br>
    What is the syntax for a "same" line? what does it mean to use
    "same" rather than "exten"?<br>
    <br>
    <blockquote
cite="mid:CAP2a2YW2f6Sr=-aY-d6DNyNOqPNYzp6mm2DPO9Q6bDp_mNTxdg@mail.gmail.com"
      type="cite"><br>
      <br>
      <br>
      <div class="gmail_quote">On Thu, Nov 29, 2012 at 8:40 AM, Shitian
        Long <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:longst.cn@gmail.com" target="_blank">longst.cn@gmail.com</a>&gt;</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&nbsp;
            <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 =&gt; _X!,1,Verbose(2,Performing ISN lookup for
                ${EXTEN})</div>
              <div>same =&gt; n,Set(SUFFIX=${CUT(EXTEN,*,2-)}) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; make sure the suffix is all
                digits as well</div>
              <div>
                same =&gt; n,GotoIf($["${FILTER(0-9,${SUFFIX})}" !=
                "${SUFFIX}"]?fn-CONGESTION,1)</div>
              <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; filter out bad characters per the
                README-SERIOUSLY.best-practices.txt document</div>
              <div>same =&gt; n,Set(TIMEOUT(absolute)=10800)</div>
              <div>same =&gt;
                n,Set(isnresult=${ENUMLOOKUP(${EXTEN},sip,,1,<a
                  moz-do-not-send="true" href="http://freenum.org"
                  target="_blank">freenum.org</a>)}) &nbsp; &nbsp; ; perform our
                lookup with <a moz-do-not-send="true"
                  href="http://freenum.org" target="_blank">freenum.org</a></div>
              <div>same =&gt; n,GotoIf($["${isnresult}" != ""]?from)</div>
              <div>same =&gt; n,Set(DIALSTATUS=CONGESTION)</div>
              <div>same =&gt; n,Goto(fn-CONGESTION,1)</div>
              <div>same =&gt;
                n(from),Set(__SIPFROMUSER=${CALLERID(num)})</div>
              <div>same =&gt; n,GotoIf($["${GLOBAL(FREENUMDOMAIN)}" =
                ""]?dial) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; check if we set the
                FREENUMDOMAIN global variable in [global]</div>
              <div>same =&gt;
                n,Set(__SIPFROMDOMAIN=${GLOBAL(FREENUMDOMAIN)}) &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; ; &nbsp; &nbsp;if we did set it, then we'll use it for our
                outbound dialing domain</div>
              <div>same =&gt; n(dial),Dial(SIP/${isnresult},40)</div>
              <div>same =&gt; n,Goto(fn-${DIALSTATUS},1)</div>
              <div><br>
              </div>
              <div>exten =&gt; fn-BUSY,1,Busy()</div>
              <div><br>
              </div>
              <div>exten =&gt; _f[n]-.,1,NoOp(ISN: ${DIALSTATUS})</div>
              <div>same =&gt; n,Congestion()</div>
            </div>
            <div><br>
            </div>
            <div>;##########################</div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>
              <div>According to "<a moz-do-not-send="true"
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&nbsp;</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">,&nbsp;</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">,&nbsp;</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">&nbsp;and&nbsp;</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."&nbsp;</div>
            </div>
            <div><br>
            </div>
            <div>There is a part of dial plan from sample extension.conf
              above. My Question is &nbsp;how "same =&gt;" key word works .&nbsp;</div>
            <div><br>
            </div>
            <div>Thanks</div>
            <div><br>
            </div>
            <div><br>
            </div>
          </div>
          <br>
          --<br>
_____________________________________________________________________<br>
          -- Bandwidth and Colocation Provided by <a
            moz-do-not-send="true" 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>
          &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a moz-do-not-send="true"
            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>
          &nbsp; &nbsp;<a moz-do-not-send="true"
            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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               <a class="moz-txt-link-freetext" href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a>

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>
    <br>
    <pre class="moz-signature" cols="72">-- 
Ron Wheeler
President
Artifact Software Inc
email: <a class="moz-txt-link-abbreviated" href="mailto:rwheeler@artifact-software.com">rwheeler@artifact-software.com</a>
skype: ronaldmwheeler
phone: 866-970-2435, ext 102</pre>
  </body>
</html>