[Freeswitch-users] change gateway

Andre Demattia andretodd at verizon.net
Fri Oct 31 01:41:01 MSK 2014

Just worried that calls will come in while the changes are made and too many calls will reject.

 I know I can alter just one route but that means I have to keep track of the changes. Updating all is the easiest way.

Ok so last question. Should I sleep the thread for a second between killgw _ALL_ and rescan?

Thanks Andre

-----Original Message-----
From: "Brian West" <brian at freeswitch.org>
Sent: ‎10/‎30/‎2014 6:28 PM
To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
Subject: Re: [Freeswitch-users] change gateway

I think you pretty much have it figured out...does what you've done not do what you expect?

On Thu, Oct 30, 2014 at 3:56 PM, Andre DeMattia <andretodd at verizon.net> wrote:

HI, I want to know what is the best way to reload a gateway with changes that were made. Say maybe the IP changed or gateway was added or deleted. 
using (var a = new Api(null))
                                                    a.ExecuteString("sofia profile internal killgw _ALL_");
                                                    a.ExecuteString("sofia profile external killgw _ALL_");
                                                    a.ExecuteString("sofia profile internal rescan reloadxml");
                                                    a.ExecuteString("sofia profile external rescan reloadxml");

Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org

Official FreeSWITCH Sites

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org


Brian West
brian at freeswitch.org

Twitter: @FreeSWITCH , @briankwest
T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141030/00c5644c/attachment.html 

Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list