[Freeswitch-users] Can you detect if a gateway exists from the dialplan?

Steven Ayre steveayre at gmail.com
Sun Aug 15 00:17:59 PDT 2010


The Sofia api command will show you the status of a gateway and if it exists. Perhaps you can use that in some way?

Sofia status gateway <name>

Steve on iPhone

On 14 Aug 2010, at 23:34, Fraser Redmond <fraserredmond at gmail.com> wrote:

> Thanks Jay, I had a similar thought - I already set a global var in /conf/vars.xml so I'm checking that.
> 
> Ideally I'd like to check if the gateway is registered too, though I guess that's different than whether it exists or not.
> 
> Cheers,
> Fraser
> 
> 
> 
> 
> On Sat, Aug 14, 2010 at 10:40 PM, jay binks <jaybinks at gmail.com> wrote:
> Can a gateway set a channel variable ??
> 
> If so you can have the gateways define a var like
> "gateway-available-MYGATEWAY" then test for THAT in your dial plan
> ....
> 
> 
> Jay
> 
> 
> 
> On 15/08/2010, at 7:32 AM, Fraser Redmond <fraserredmond at gmail.com> wrote:
> 
> > I want to have different gateways defined on dev and prod servers, but with the same dialplan code used between them.
> >
> > 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.)
> >
> > Or am I meant to just try bridging to it, and dealing with a failure?
> >
> > Cheers,
> > Fraser
> >
> >
> > _______________________________________________
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> 
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100815/900b46b6/attachment.html 


More information about the FreeSWITCH-users mailing list