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

From: Brian West
Sent: ‎10/‎30/‎2014 6:28 PM
To: FreeSWITCH Users Help
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@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@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--

Brian West
brian@freeswitch.org


Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest