<div dir="ltr">A separate context for each sounds messy.<div>Indeed, try INFO, but I don&#39;t think we actually have a variable for the gateway.</div><div>However, you can <i>set</i> a channel variable on inbound calls on the gateway: </div>

<div><a href="http://wiki.freeswitch.org/wiki/Clarification:gateways#Variables">http://wiki.freeswitch.org/wiki/Clarification:gateways#Variables</a></div><div><br></div><div>e.g.<span style="background-color:rgb(249,249,249);line-height:1.1em">&lt;variables&gt;</span> <span style="background-color:rgb(249,249,249);line-height:1.1em">&lt;variable name=&quot;gateway&quot;  data=&quot;flowroute&quot;  direction=&quot;inbound&quot;/&gt;</span><span style="background-color:rgb(249,249,249);line-height:1.1em">&lt;/variables&gt;</span></div>

<div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:small"><br></span></span></div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:small">-Avi</span></span></div>

<br>
<br><br><div class="gmail_quote">On Mon, Aug 27, 2012 at 2:03 PM, Patrick Lists <span dir="ltr">&lt;<a href="mailto:freeswitch-list@puzzled.xs4all.nl" target="_blank">freeswitch-list@puzzled.xs4all.nl</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 27-08-12 06:47, Pip Live wrote:<br>
&gt; Sorry this maybe a very simple question but I checked Wiki/Dialplan<br>
&gt; without finding an answer.<br>
&gt;<br>
&gt; How can I know inbound call arrive at which sofia gateway in dialplan?<br>
&gt; My purpose is to add a prefix to all inbound call from a certain<br>
&gt; gateway. I cannot use the &quot;destination_number&quot; built_in variable for<br>
&gt; this purpose, as in my case DID bind to a specific gateway hardware is<br>
&gt; often changing. Is that another varialbe to be used, eg. a gateway name etc?<br>
<br>
</div></div>Until someone comes up with a better answer, have you tried running the<br>
info app on the incoming call? It gives a ton of info about the channel.<br>
<br>
<a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_info" target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_info</a><br>
<br>
Regards,<br>
Patrick<br>
<div class="HOEnZb"><div class="h5"><br>
<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>
</div></div></blockquote></div><br></div></div>