<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hello!<br>
    <br>
        But.... reading the docs:<br>
    <code></code>
    <pre>&lt;!--/// extension for inbound calls: *optional* same as username, if blank ///--&gt;
&lt;!--&lt;param name="extension" value="cluecon"/&gt;--&gt;</pre>
    <br>
    What this parameter means? I thinked that if extension is specified
    all incoming calls are placed to this extension. Isn't? <br>
    <br>
    <blockquote
      cite="mid:BANLkTin4xOx3_5ymnt048wM2ygT2cp1pCg@mail.gmail.com"
      type="cite">Because you're matching the destination_number
      "gw_test". The logs show you're dialing 1234 and then
      ext_translate_extsrc though, which don't match that condition.<br>
      <br>
      -Steve<br>
      <br>
      <br>
      <div class="gmail_quote">
        2011/4/12 Boris Kovalenko <span dir="ltr">&lt;<a
            moz-do-not-send="true" href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>&gt;</span><br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          Of course... my gw is looking in public context:<br>
          2011-04-12 18:06:52.529284 [INFO] mod_dialplan_xml.c:331
          Processing test<br>
          gw &lt;12&gt;-&gt;1234 in context public<br>
          2011-04-12 18:06:52.530329 [INFO] mod_dialplan_xml.c:331
          Processing test<br>
          gw &lt;12&gt;-&gt;ext_translate_extsrc in context features<br>
          <br>
          But why the extension I configured does not work for it?<br>
          <div>
            <div class="h5"><br>
              &gt; Hello,<br>
              &gt;<br>
              &gt; 12.04.2011, 13:57, "Boris Kovalenko"&lt;<a
                moz-do-not-send="true" href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>&gt;;:<br>
              &gt;<br>
              &gt;&gt;   Hello!<br>
              &gt;&gt;<br>
              &gt;&gt;        Hmm... I thinked GW is defined within
              profile not within context???<br>
              &gt; Pardon, of course you are right.. in general.<br>
              &gt; I meant that context public linked to external
              profile by default if you didn't set it explicitly
              elsewhere.<br>
              &gt; So if you defined your GW in internal profile it will
              search ext in default context, not public.<br>
              &gt;<br>
              &gt; btw, you can declare gw in directory and even in user
              record:<br>
              &gt; <a moz-do-not-send="true"
                href="http://wiki.freeswitch.org/wiki/Clarification:gateways"
                target="_blank">http://wiki.freeswitch.org/wiki/Clarification:gateways</a><br>
              &gt;<br>
              &gt;&gt;&gt;    Hello,<br>
              &gt;&gt;&gt;<br>
              &gt;&gt;&gt;    12.04.2011, 08:55, "Boris Kovalenko"&lt;<a
                moz-do-not-send="true" href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>&gt;;;:<br>
              &gt;&gt;&gt;&gt;    Hello!<br>
              &gt;&gt;&gt;&gt;<br>
              &gt;&gt;&gt;&gt;          I have profile named ipbx with
              gateway defined:<br>
              &gt;&gt;&gt;&gt;    &lt;include&gt;<br>
              &gt;&gt;&gt;&gt;    &lt;gateway name="<a
                moz-do-not-send="true" href="http://test.tagnet.hn"
                target="_blank">test.tagnet.hn</a>"&gt;<br>
              &gt;&gt;&gt;&gt;    &lt;!--/// account username *required*
              ///--&gt;<br>
              &gt;&gt;&gt;&gt;    &lt;param name="username"
              value="test"/&gt;<br>
              &gt;&gt;&gt;&gt;    &lt;!--/// auth realm: *optional* same
              as gateway name, if blank ///--&gt;<br>
              &gt;&gt;&gt;&gt;    &lt;param name="realm"
              value="public"/&gt;<br>
              &gt;&gt;&gt;&gt;    &lt;!--/// username to use in from:
              *optional* same as  username, if blank<br>
              &gt;&gt;&gt;&gt;    ///--&gt;<br>
              &gt;&gt;&gt;&gt;    &lt;param name="from-user"
              value="gw_test"/&gt;<br>
              &gt;&gt;&gt;&gt;    &lt;!--/// account password *required*
              ///--&gt;<br>
              &gt;&gt;&gt;&gt;    &lt;param name="password"
              value="2007"/&gt;<br>
              &gt;&gt;&gt;&gt;    &lt;!--/// extension for inbound
              calls: *optional* same as username, if<br>
              &gt;&gt;&gt;&gt;    blank ///<br>
              &gt;&gt;&gt;&gt;    --&gt;<br>
              &gt;&gt;&gt;&gt;    &lt;param name="extension"
              value="gw_test"/&gt;<br>
              &gt;&gt;&gt;&gt;    There is an extension in context
              public:<br>
              &gt;&gt;&gt;&gt;    &lt;extension name="gw_test"&gt;<br>
              &gt;&gt;&gt;&gt;    &lt;condition
              field="destination_number" expression="^gw_test$"&gt;<br>
              &gt;&gt;&gt;&gt;    &lt;action application="info"
              data="ALERT"/&gt;<br>
              &gt;&gt;&gt;&gt;    &lt;action application="hangup"
              data="NO_ROUTE_DESTINATION"/&gt;<br>
              &gt;&gt;&gt;&gt;    &lt;/condition&gt;<br>
              &gt;&gt;&gt;&gt;    &lt;/extension&gt;<br>
              &gt;&gt;&gt;&gt;<br>
              &gt;&gt;&gt;&gt;    So, my inbound calls from this gateway
              should go to extension gw_test?<br>
              &gt;&gt;&gt;&gt;    But they don't...<br>
              &gt;&gt;&gt;&gt;    What is wrong with my config?
              FreeSWITCH Version 1.0.head (git-1c95ad9<br>
              &gt;&gt;&gt;&gt;    2011-01-20 22-43-50 -0300)<br>
              &gt;&gt;&gt;    Is this GW defined in public context?<br>
              &gt;&gt;&gt;    Hint: realm != context!<br>
              &gt;&gt;&gt;    Pls, look at example 'incoming.xml' in
              public profile in default config set<br>
              &gt;&gt;   --<br>
              &gt;&gt;   С уважением,<br>
              &gt;&gt;     Борис Коваленко<br>
              &gt;&gt;     ЗАО "Тагнет"<br>
              &gt;&gt;     (3435) 494991<br>
              &gt;&gt;<br>
              &gt;&gt;   _______________________________________________<br>
              &gt;&gt;   FreeSWITCH-users mailing list<br>
              &gt;&gt;   <a moz-do-not-send="true"
                href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
              &gt;&gt;   <a moz-do-not-send="true"
                href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
              &gt;&gt;   UNSUBSCRIBE:<a moz-do-not-send="true"
                href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
              &gt;&gt;   <a moz-do-not-send="true"
                href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
              <br>
              <br>
              --<br>
              С уважением,<br>
                Борис Коваленко<br>
                ЗАО "Тагнет"<br>
                (3435) 494991<br>
              <br>
              <br>
              <br>
              _______________________________________________<br>
              FreeSWITCH-users mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
              UNSUBSCRIBE:<a moz-do-not-send="true"
                href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
              <a moz-do-not-send="true" href="http://www.freeswitch.org"
                target="_blank">http://www.freeswitch.org</a><br>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <div style="visibility: hidden; left: -5000px; position: absolute;
        z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px;
        overflow: hidden; word-wrap: break-word; color: black;
        font-size: 10px; text-align: left; line-height: 130%;"
        id="avg_ls_inline_popup">
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
С уважением,
  Борис Коваленко
  ЗАО "Тагнет"
  (3435) 494991

</pre>
  </body>
</html>