<p dir="ltr">Thanks Avi. Yours idea seems very handy & lowest cost to implement. Will try that.</p>
<p dir="ltr">/Alex</p>
<div class="gmail_quote">ÔÚ 2012-8-27 ÏÂÎç7:21£¬"Avi Marcus" <<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a>>дµÀ£º<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">A separate context for each sounds messy.<div>Indeed, try INFO, but I don'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" target="_blank">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"><variables></span> <span style="background-color:rgb(249,249,249);line-height:1.1em"><variable name="gateway" data="flowroute" direction="inbound"/></span><span style="background-color:rgb(249,249,249);line-height:1.1em"></variables></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"><<a href="mailto:freeswitch-list@puzzled.xs4all.nl" target="_blank">freeswitch-list@puzzled.xs4all.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On 27-08-12 06:47, Pip Live wrote:<br>
> Sorry this maybe a very simple question but I checked Wiki/Dialplan<br>
> without finding an answer.<br>
><br>
> How can I know inbound call arrive at which sofia gateway in dialplan?<br>
> My purpose is to add a prefix to all inbound call from a certain<br>
> gateway. I cannot use the "destination_number" built_in variable for<br>
> this purpose, as in my case DID bind to a specific gateway hardware is<br>
> 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><div><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>
</div></div></blockquote></div><br></div></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>