All: I am starting to play a bit with FS to get more familiar with it. I am trying the following: 1- sofia status // command for example to see the list of profiles. 2- I then went ahead and renamed the example.com.xml under conf/directory/default to example.com.xml.orig 3- I ran then reloadxml using the fs_cli 4- sofia status still displays the same info as before for example.conf as a gateway. I then went ahead and stopped FW and re-started it. After I did this I re-ran sofia status and this time the example.conf gateway that was previously listed went away as it was supposed to. Am I missing something? Is reloadxml the proper way to reload configuration changes. If it is why is it not working for this case? Thanks in advance, Alfredo
reloadxml preprocesses the xml config again, it does not tell modules to reload their configuration from that file. In order to delete a gateway, you do: sofia profile <profilename> killgw <gwname> If you make changes to a gateway and want to reload it, you first delete it with that command and then do: sofia profile <profilename> rescan If you don't have any active calls on the box, restarting the profile will do the equivalent of killgw+rescan. Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mrene@avgs.ca On 16-Jan-10, at 2:58 PM, Alfredo Quiroga-Villamil wrote:
All:
I am starting to play a bit with FS to get more familiar with it. I am trying the following:
1- sofia status // command for example to see the list of profiles.
2- I then went ahead and renamed the example.com.xml under conf/directory/default to example.com.xml.orig
3- I ran then reloadxml using the fs_cli
4- sofia status still displays the same info as before for example.conf as a gateway.
I then went ahead and stopped FW and re-started it. After I did this I re-ran sofia status and this time the example.conf gateway that was previously listed went away as it was supposed to.
Am I missing something? Is reloadxml the proper way to reload configuration changes. If it is why is it not working for this case?
Thanks in advance,
Alfredo
_______________________________________________ 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
Thanks Mathieu, appreciate the help. Alfredo On Sat, Jan 16, 2010 at 3:16 PM, Mathieu Rene <mrene_lists@avgs.ca> wrote:
reloadxml preprocesses the xml config again, it does not tell modules to reload their configuration from that file.
In order to delete a gateway, you do: sofia profile <profilename> killgw <gwname>
If you make changes to a gateway and want to reload it, you first delete it with that command and then do: sofia profile <profilename> rescan
If you don't have any active calls on the box, restarting the profile will do the equivalent of killgw+rescan.
Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mrene@avgs.ca
On 16-Jan-10, at 2:58 PM, Alfredo Quiroga-Villamil wrote:
All:
I am starting to play a bit with FS to get more familiar with it. I am trying the following:
1- sofia status // command for example to see the list of profiles.
2- I then went ahead and renamed the example.com.xml under conf/directory/default to example.com.xml.orig
3- I ran then reloadxml using the fs_cli
4- sofia status still displays the same info as before for example.conf as a gateway.
I then went ahead and stopped FW and re-started it. After I did this I re-ran sofia status and this time the example.conf gateway that was previously listed went away as it was supposed to.
Am I missing something? Is reloadxml the proper way to reload configuration changes. If it is why is it not working for this case?
Thanks in advance,
Alfredo
_______________________________________________ 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
_______________________________________________ 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
Also noted killing a gateway and reinstalling it doesn't touch currently active calls that happened to have used that gateway. /b On Jan 16, 2010, at 2:16 PM, Mathieu Rene wrote:
If you don't have any active calls on the box, restarting the profile will do the equivalent of killgw+rescan.
participants (3)
-
Alfredo Quiroga-Villamil
-
Brian West
-
Mathieu Rene