<div dir="ltr">if you don&#39;t have extension-in-contact set, the gateway will register with a gw+gatewayname prefix in the contact so it can resolve the calls back to the gateway.<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 7, 2017 at 4:14 PM, Varsha Agarwal <span dir="ltr">&lt;<a href="mailto:vagarwal@vertical.com" target="_blank">vagarwal@vertical.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 lang="EN-US" link="blue" vlink="purple">
<div class="m_776234530796000784WordSection1">
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We have multiple gateway registration with internal profile for inbound calls. These registrations could be with same IP address but different extensions/users. In our public dial plan, we need to link an incoming call with the gateway
 and transfer it to different destination based on which gateway call came over. We tried setting channel variables in gateway but cannot access them in dial plan. They are always empty. Is there a way to achieve this? Sample gateway file<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">&lt;include&gt;<u></u><u></u></p>
<p class="MsoNormal">                &lt;gateway name=<b>gw1</b>&gt;<u></u><u></u></p>
<p class="MsoNormal">                              <wbr>  &lt;param name=&quot;username&quot; value=&quot;xxxxx&quot;/&gt;<u></u><u></u></p>
<p class="MsoNormal">                              <wbr>  &lt;param name=realm&quot; value=&quot;xxx&quot;/&gt;<u></u><u></u></p>
<p class="MsoNormal">                              <wbr>  &lt;param name=&quot;from-user&quot; value=&quot;<b>1001</b>&quot;/&gt;<u></u><u></u></p>
<p class="MsoNormal">                              <wbr>  &lt;param name=register&quot; value=&quot;true&quot;/&gt;<u></u><u></u></p>
<p class="MsoNormal">                              <wbr>  &lt;variables&gt;<u></u><u></u></p>
<p class="MsoNormal">                              <wbr>                  &lt;variable name=&quot;curGateway&quot; value=&quot;<b>gw1</b>&quot;/&gt;<u></u><u></u></p>
<p class="MsoNormal">                              <wbr>  &lt;variables&gt;<u></u><u></u></p>
<p class="MsoNormal">                &lt;/gateway&gt;<u></u><u></u></p>
<p class="MsoNormal">                &lt;gateway name=gw2&gt;<u></u><u></u></p>
<p class="MsoNormal">                              <wbr>  &lt;param name=&quot;username&quot; value=&quot;xxxxx&quot;/&gt;<u></u><u></u></p>
<p class="MsoNormal">                              <wbr>  &lt;param name=realm&quot; value=&quot;xxx&quot;/&gt;<u></u><u></u></p>
<p class="MsoNormal">                              <wbr>  &lt;param name=&quot;from-user&quot; value=&quot;<b>1002</b>&quot;/&gt;<u></u><u></u></p>
<p class="MsoNormal">                              <wbr>  &lt;param name=register&quot; value=&quot;true&quot;/&gt;<u></u><u></u></p>
<p class="MsoNormal">                              <wbr>  &lt;variables&gt;<u></u><u></u></p>
<p class="MsoNormal">                              <wbr>                  &lt;variable name=&quot;curGateway&quot; value=&quot;<b>gw2</b>&quot;/&gt;<u></u><u></u></p>
<p class="MsoNormal">                              <wbr>  &lt;variables&gt;<u></u><u></u></p>
<p class="MsoNormal">                &lt;/gateway&gt;<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">&lt;/include&gt;<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">${curGateway} is always empty in dialplan.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Varsha<u></u><u></u></p>
</div>
</div>

<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬<div><br><div>☞ <a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a>  ☞ <a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a>  ☞ <a href="http://twitter.com/FreeSWITCH" target="_blank">http://twitter.com/FreeSWITCH</a></div><div><div>☞ <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch ☞ <u><a href="http://freeswitch.org/g+" target="_blank">http://freeswitch.org/g+</a></u><br><br></div><div>ClueCon Weekly Development Call <br></div><div>☎ <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a>  ☎ +19193869900 </div><div><br></div></div></div><div><a href="https://www.youtube.com/watch?v=9XXgW34t40s" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank">https://www.youtube.com/watch?v=9XXgW34t40s</a></div><div><a href="https://www.youtube.com/watch?v=NLaDpGQuZDA" target="_blank">https://www.youtube.com/watch?v=NLaDpGQuZDA</a><br></div></div></div></div></div></div></div>
</div>