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