Thanks Jay, I had a similar thought - I already set a global var in /conf/vars.xml so I'm checking that.<br><br>Ideally I'd like to check if the gateway is registered too, though I guess that's different than whether it exists or not.<br>
<br clear="all">Cheers,<br>Fraser<br><br><br>
<br><br><div class="gmail_quote">On Sat, Aug 14, 2010 at 10:40 PM, jay binks <span dir="ltr"><<a href="mailto:jaybinks@gmail.com">jaybinks@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Can a gateway set a channel variable ??<br>
<br>
If so you can have the gateways define a var like<br>
"gateway-available-MYGATEWAY" then test for THAT in your dial plan<br>
....<br>
<br>
<br>
Jay<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On 15/08/2010, at 7:32 AM, Fraser Redmond <<a href="mailto:fraserredmond@gmail.com">fraserredmond@gmail.com</a>> wrote:<br>
<br>
> I want to have different gateways defined on dev and prod servers, but with the same dialplan code used between them.<br>
><br>
> Is there an API function I can put in a condition to detect if a gateway exists? (I had a look through google and the wiki, and the closest looking thing was domain_exists.)<br>
><br>
> Or am I meant to just try bridging to it, and dealing with a failure?<br>
><br>
> Cheers,<br>
> Fraser<br>
><br>
><br>
</div></div>> _______________________________________________<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>
_______________________________________________<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>
</blockquote></div><br>