<br><br><div class="gmail_quote">On Wed, Jul 27, 2011 at 9:40 AM, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
That's not possible. Sofia needs you to do a 'sofia profile <name> rescan' to pick up new gateways, and if a gateway has changed its parameters you need to do 'sofia profile <name> killgw <gwname>' then rescan.<br>
<br>There's a reason for it too - FS has to register with the gateway then keep pinging it with OPTIONS requests. That means the gateway needs an object stored in memory. It wouldn't be ideal for FS to constantly poll a database looking for changes for something that might never change, so you're left with rescan.<br>
<br>You could however have a DB trigger that runs a script that connects via ESL and does that for you though...<br><br>-Steve<br><br></blockquote><div>What about Tony's "Enterprise vs. shuttlecraft" trick?</div>
<div><a href="http://wiki.freeswitch.org/wiki/Clarification:gateways#Clarification">http://wiki.freeswitch.org/wiki/Clarification:gateways#Clarification</a></div><div><br></div><div>You can trigger a gateway to be "active" only when a particular user registers, i.e. an inbound registration triggers an outbound registration. I don't know if it will work in this scenario but it's worth looking into...</div>
<div><br></div><div>-MC</div></div>