<div dir="ltr">Did you kill and restart the gateway after adding the variable? (Or restart the entire interface, or restart FS?)<div><div><br clear="all"><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:small">-Avi</span></span></div>


<br><br><div class="gmail_quote">On Tue, Dec 6, 2011 at 2:26 AM, Jort Bloem <span dir="ltr">&lt;<a href="mailto:jort.bloem@btg.co.nz">jort.bloem@btg.co.nz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi Avi &amp; Michael,<br>
    <br>
    Michael, I&#39;m familiar with the info application, and have been using
    this to test my progress. It&#39;s gotten me a long way, but not past
    this hurdle.<br>
    <br>
    Avi, I tried that, or at least my interpretation of that, and it
    didn&#39;t work.<br>
    <br>
    I found the gateway in question - it&#39;s one of only two references to
    the trunk - in sip_profiles/. The declaration, including my addition
    of the variables clause, looks like this:<br>
    <br>
    <br>
          &lt;gateway name=&quot;trunk_1&quot;&gt;<br>
            &lt;param name=&quot;realm&quot; value=&quot;talk2&quot;/&gt;<br>
            &lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;<br>
            &lt;param name=&quot;username&quot; value=&quot;TCAPI_User&quot;/&gt;<br>
            &lt;param name=&quot;password&quot; value=&quot;TCAPI_User&quot;/&gt;<br>
            &lt;variables&gt;<br>
              &lt;variable name=&quot;foo&quot; data=&quot;bar&quot; direction=&quot;both&quot;/&gt;<br>
             &lt;/variables&gt;<br>
          &lt;/gateway&gt;<br>
    <br>
    I then called in via that interface, using a DDI, with the info
    application. I got lots of information, but neither foo nor bar. I
    did change the direction from &quot;inbound&quot; to &quot;both&quot;, to make it as
    likely as possible to work.<br>
    <br>
    The log output I got had lots of stuff in it (see
    <a href="http://pastebin.freeswitch.org/17943" target="_blank">http://pastebin.freeswitch.org/17943</a> ) but no foo, no bar, and no
    trunk_1. It did have several occurrences of the ip address of talk2,
    10.10.9.1, but that can change. I also see several references to the
    ip address (10.10.10.149) and sofia profile name (sipinterface_3),
    but all gateways will be on the same profile.<br>
    <br>
    Any further help would be appreciated.<br>
    <br>
    Jaybee-<div><div class="h5"><br>
    <br>
    <br>
    On 06/12/11 11:57, Avi Marcus wrote:
    <blockquote type="cite">
      <div dir="ltr"><a href="http://lists.freeswitch.org/pipermail/freeswitch-users/2010-March/055508.html" target="_blank">http://lists.freeswitch.org/pipermail/freeswitch-users/2010-March/055508.html</a><br>
        <div><br>
        </div>
        <div>Hmm, gateways on the wiki should be cleaned up.. I couldn&#39;t
          find it on the wiki, only via google.<br>
          <div><br clear="all">
            <div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:small">-Avi</span></span></div>
            <br>
            <br>
            <div class="gmail_quote">On Tue, Dec 6, 2011 at 12:45 AM,
              Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                Try adding one of these to the dialplan that handles
                inbound calls:
                <div><br>
                </div>
                <div>&lt;action application=&quot;info&quot;/&gt;</div>
                <div><br>
                </div>
                <div>Then, watch the console while an inbound comes in
                  and you&#39;ll see quite a lot of information. Anything in
                  that info dump is available to you for &quot;figuring out&quot;
                  what&#39;s going on. If you have any questions then drop
                  that info output to a pastebin and give us the URL
                  here.</div>
                <span><font color="#888888">
                    <div><br>
                    </div>
                  </font></span>
                <div><span><font color="#888888">-MC</font></span>
                  <div>
                    <div><br>
                      <br>
                      <div class="gmail_quote">On Mon, Dec 5, 2011 at
                        2:02 PM, Jort Bloem <span dir="ltr">&lt;<a href="mailto:jort.bloem@btg.co.nz" target="_blank">jort.bloem@btg.co.nz</a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                          Hi all,<br>
                          <br>
                          I have a setup with several gateways coming in
                          on one profile. The<br>
                          Realms, unfortunately, are by DNS, and move
                          from time to time.<br>
                          <br>
                          Is there any way to identify, in the dialplan,
                          which gateway the call<br>
                          comes from, for incoming calls?<br>
                          <br>
                          I know I can get the ip address, but the ip
                          address is subject to change.<br>
                          <br>
                          I know that the trunk provider can set various
                          things, but I don&#39;t have<br>
                          control of the far end of the trunk.<br>
                          <br>
                          If there is a way to set variables on a
                          per-gateway (NOT per-profile)<br>
                          basis, that would be perfect.<br>
                          <br>
                          &quot;RTFM&quot; gladly accepted with a hint about which
                          part of which FM to R.<br>
                          <br>
                          --<br>
                          Jaybee-<br>
                          <br>
                          <br>
_________________________________________________________________________<br>
                          Professional FreeSWITCH Consulting Services:<br>
                          <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
                          <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
                          <br>
                          FreeSWITCH-powered IP PBX: The CudaTel
                          Communication Server<br>
                          <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
                          <br>
                          Official FreeSWITCH Sites<br>
                          <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                          <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                          <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                          <br>
                          FreeSWITCH-users mailing list<br>
                          <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                          <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                          UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                          <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </div>
                </div>
                <br>
_________________________________________________________________________<br>
                Professional FreeSWITCH Consulting Services:<br>
                <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
                <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
                <br>
                FreeSWITCH-powered IP PBX: The CudaTel Communication
                Server<br>
                <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
                <br>
                Official FreeSWITCH Sites<br>
                <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                <br>
                FreeSWITCH-users mailing list<br>
                <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                <br>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
    </div></div><span class="HOEnZb"><font color="#888888"><pre cols="72">-- 
Jort Bloem


Technical Engineer - Auckland
Business Technology Group

P: <a href="tel:%2B64%209%205801374%20x%209884" value="+6495801374" target="_blank">+64 9 5801374 x 9884</a>

Sent from Mozilla Thunderbird</pre>
  </font></span></div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div></div>