Hello, I understand that if I make a change in a gateway, like IP address I need to first kill the gw because fs doesn't updated the config until all sessions are finished. If the gateway has no traffic, that's fine. But the idea would be for the change to take effect starting with the new incoming calls and allow the old ones to end normally. Also, when you kill a gw and then reload it, and incoming call between the kill and the reload will NOT be handled... this is just not right for a production environment.. Is there any other way of doing this WITHOUT actually: - not handling new incoming calls? - having to kill the gw? Thanks! David
I was also having issues with changing gateways. A solution I came up with was to have globally unique names and changing a gateway was actually destroying the old one and recreating a new one under new name. The downside is that DB lookup must be performed before new call is initiated. Hynek On Sat, Oct 22, 2011 at 5:15 PM, David Villasmil < david.villasmil.work@gmail.com> wrote:
Hello,
I understand that if I make a change in a gateway, like IP address I need to first kill the gw because fs doesn't updated the config until all sessions are finished. If the gateway has no traffic, that's fine. But the idea would be for the change to take effect starting with the new incoming calls and allow the old ones to end normally.
Also, when you kill a gw and then reload it, and incoming call between the kill and the reload will NOT be handled... this is just not right for a production environment..
Is there any other way of doing this WITHOUT actually:
- not handling new incoming calls? - having to kill the gw?
Thanks!
David
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
Hello, Thanks for your answer... But then that's the same as killing it and reloading it, no? David On Sat, Oct 22, 2011 at 6:03 PM, Hynek Cihlar <hynek.cihlar@gmail.com>wrote:
I was also having issues with changing gateways. A solution I came up with was to have globally unique names and changing a gateway was actually destroying the old one and recreating a new one under new name. The downside is that DB lookup must be performed before new call is initiated.
Hynek
On Sat, Oct 22, 2011 at 5:15 PM, David Villasmil < david.villasmil.work@gmail.com> wrote:
Hello,
I understand that if I make a change in a gateway, like IP address I need to first kill the gw because fs doesn't updated the config until all sessions are finished. If the gateway has no traffic, that's fine. But the idea would be for the change to take effect starting with the new incoming calls and allow the old ones to end normally.
Also, when you kill a gw and then reload it, and incoming call between the kill and the reload will NOT be handled... this is just not right for a production environment..
Is there any other way of doing this WITHOUT actually:
- not handling new incoming calls? - having to kill the gw?
Thanks!
David
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
and if you reload the profile that includes these gateways ? ----- Original Message ----- From: David Villasmil To: FreeSWITCH Users Help Sent: Saturday, October 22, 2011 12:10 PM Subject: Re: [Freeswitch-users] Reloading sofia+distributor Hello, Thanks for your answer... But then that's the same as killing it and reloading it, no? David On Sat, Oct 22, 2011 at 6:03 PM, Hynek Cihlar <hynek.cihlar@gmail.com> wrote: I was also having issues with changing gateways. A solution I came up with was to have globally unique names and changing a gateway was actually destroying the old one and recreating a new one under new name. The downside is that DB lookup must be performed before new call is initiated. Hynek On Sat, Oct 22, 2011 at 5:15 PM, David Villasmil <david.villasmil.work@gmail.com> wrote: Hello, I understand that if I make a change in a gateway, like IP address I need to first kill the gw because fs doesn't updated the config until all sessions are finished. If the gateway has no traffic, that's fine. But the idea would be for the change to take effect starting with the new incoming calls and allow the old ones to end normally. Also, when you kill a gw and then reload it, and incoming call between the kill and the reload will NOT be handled... this is just not right for a production environment.. Is there any other way of doing this WITHOUT actually: - not handling new incoming calls? - having to kill the gw? Thanks! David 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 ------------------------------------------------------------------------------ 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
Reloading sofia doesn't changes the IP address, for one. Relaoding mod_distributor has nothing to do with the GW configuration, only the distribution if the calls amongst the gateways. you *must* kill it, then reload it. Of course, you can always create a tmp gw, and then rename it, but that sounds horrible to me, not elegant at all. David On Sat, Oct 22, 2011 at 6:23 PM, Madovsky <infos@madovsky.org> wrote:
** and if you reload the profile that includes these gateways ?
----- Original Message ----- *From:* David Villasmil <david.villasmil.work@gmail.com> *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Sent:* Saturday, October 22, 2011 12:10 PM *Subject:* Re: [Freeswitch-users] Reloading sofia+distributor
Hello,
Thanks for your answer...
But then that's the same as killing it and reloading it, no?
David
On Sat, Oct 22, 2011 at 6:03 PM, Hynek Cihlar <hynek.cihlar@gmail.com>wrote:
I was also having issues with changing gateways. A solution I came up with was to have globally unique names and changing a gateway was actually destroying the old one and recreating a new one under new name. The downside is that DB lookup must be performed before new call is initiated.
Hynek
On Sat, Oct 22, 2011 at 5:15 PM, David Villasmil < david.villasmil.work@gmail.com> wrote:
Hello,
I understand that if I make a change in a gateway, like IP address I need to first kill the gw because fs doesn't updated the config until all sessions are finished. If the gateway has no traffic, that's fine. But the idea would be for the change to take effect starting with the new incoming calls and allow the old ones to end normally.
Also, when you kill a gw and then reload it, and incoming call between the kill and the reload will NOT be handled... this is just not right for a production environment..
Is there any other way of doing this WITHOUT actually:
- not handling new incoming calls? - having to kill the gw?
Thanks!
David
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
------------------------------
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
Ok sorry, your email subject confused me ----- Original Message ----- From: David Villasmil To: FreeSWITCH Users Help Sent: Saturday, October 22, 2011 12:40 PM Subject: Re: [Freeswitch-users] Reloading sofia+distributor Reloading sofia doesn't changes the IP address, for one. Relaoding mod_distributor has nothing to do with the GW configuration, only the distribution if the calls amongst the gateways. you *must* kill it, then reload it. Of course, you can always create a tmp gw, and then rename it, but that sounds horrible to me, not elegant at all. David On Sat, Oct 22, 2011 at 6:23 PM, Madovsky <infos@madovsky.org> wrote: and if you reload the profile that includes these gateways ? ----- Original Message ----- From: David Villasmil To: FreeSWITCH Users Help Sent: Saturday, October 22, 2011 12:10 PM Subject: Re: [Freeswitch-users] Reloading sofia+distributor Hello, Thanks for your answer... But then that's the same as killing it and reloading it, no? David On Sat, Oct 22, 2011 at 6:03 PM, Hynek Cihlar <hynek.cihlar@gmail.com> wrote: I was also having issues with changing gateways. A solution I came up with was to have globally unique names and changing a gateway was actually destroying the old one and recreating a new one under new name. The downside is that DB lookup must be performed before new call is initiated. Hynek On Sat, Oct 22, 2011 at 5:15 PM, David Villasmil <david.villasmil.work@gmail.com> wrote: Hello, I understand that if I make a change in a gateway, like IP address I need to first kill the gw because fs doesn't updated the config until all sessions are finished. If the gateway has no traffic, that's fine. But the idea would be for the change to take effect starting with the new incoming calls and allow the old ones to end normally. Also, when you kill a gw and then reload it, and incoming call between the kill and the reload will NOT be handled... this is just not right for a production environment.. Is there any other way of doing this WITHOUT actually: - not handling new incoming calls? - having to kill the gw? Thanks! David 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 -------------------------------------------------------------------------- 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 ------------------------------------------------------------------------------ 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
No. Killing the gateway isn't instantaneous. There is some delay before the gateway disappears completely. Why it works like that or whether it can be tuned I have no idea. For my case, the unique names work just fine. Hynek On Sat, Oct 22, 2011 at 6:10 PM, David Villasmil < david.villasmil.work@gmail.com> wrote:
Hello,
Thanks for your answer...
But then that's the same as killing it and reloading it, no?
David
On Sat, Oct 22, 2011 at 6:03 PM, Hynek Cihlar <hynek.cihlar@gmail.com>wrote:
I was also having issues with changing gateways. A solution I came up with was to have globally unique names and changing a gateway was actually destroying the old one and recreating a new one under new name. The downside is that DB lookup must be performed before new call is initiated.
Hynek
On Sat, Oct 22, 2011 at 5:15 PM, David Villasmil < david.villasmil.work@gmail.com> wrote:
Hello,
I understand that if I make a change in a gateway, like IP address I need to first kill the gw because fs doesn't updated the config until all sessions are finished. If the gateway has no traffic, that's fine. But the idea would be for the change to take effect starting with the new incoming calls and allow the old ones to end normally.
Also, when you kill a gw and then reload it, and incoming call between the kill and the reload will NOT be handled... this is just not right for a production environment..
Is there any other way of doing this WITHOUT actually:
- not handling new incoming calls? - having to kill the gw?
Thanks!
David
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
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
you should have unique names in this case ----- Original Message ----- From: Hynek Cihlar To: FreeSWITCH Users Help Sent: Saturday, October 22, 2011 12:26 PM Subject: Re: [Freeswitch-users] Reloading sofia+distributor No. Killing the gateway isn't instantaneous. There is some delay before the gateway disappears completely. Why it works like that or whether it can be tuned I have no idea. For my case, the unique names work just fine. Hynek On Sat, Oct 22, 2011 at 6:10 PM, David Villasmil <david.villasmil.work@gmail.com> wrote: Hello, Thanks for your answer... But then that's the same as killing it and reloading it, no? David On Sat, Oct 22, 2011 at 6:03 PM, Hynek Cihlar <hynek.cihlar@gmail.com> wrote: I was also having issues with changing gateways. A solution I came up with was to have globally unique names and changing a gateway was actually destroying the old one and recreating a new one under new name. The downside is that DB lookup must be performed before new call is initiated. Hynek On Sat, Oct 22, 2011 at 5:15 PM, David Villasmil <david.villasmil.work@gmail.com> wrote: Hello, I understand that if I make a change in a gateway, like IP address I need to first kill the gw because fs doesn't updated the config until all sessions are finished. If the gateway has no traffic, that's fine. But the idea would be for the change to take effect starting with the new incoming calls and allow the old ones to end normally. Also, when you kill a gw and then reload it, and incoming call between the kill and the reload will NOT be handled... this is just not right for a production environment.. Is there any other way of doing this WITHOUT actually: - not handling new incoming calls? - having to kill the gw? Thanks! David 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 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
Can't we make a new temporary gateway, route the calls to the new gateway, let the calls finish the existing old GW, re-configure the old gateway and then re-route all the calls back to the old one, remote the temporary one. Offcourse this would require a lot of changes but looks like a better option? -B On Sat, Oct 22, 2011 at 6:15 PM, David Villasmil <david.villasmil.work@gmail.com> wrote:
Hello, I understand that if I make a change in a gateway, like IP address I need to first kill the gw because fs doesn't updated the config until all sessions are finished. If the gateway has no traffic, that's fine. But the idea would be for the change to take effect starting with the new incoming calls and allow the old ones to end normally. Also, when you kill a gw and then reload it, and incoming call between the kill and the reload will NOT be handled... this is just not right for a production environment.. Is there any other way of doing this WITHOUT actually: - not handling new incoming calls? - having to kill the gw? Thanks! David
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
I think you should ready more carefully the wiki doc on this subject (reload) Regards ----- Original Message ----- From: David Villasmil To: FreeSWITCH Users Help Sent: Saturday, October 22, 2011 11:15 AM Subject: [Freeswitch-users] Reloading sofia+distributor Hello, I understand that if I make a change in a gateway, like IP address I need to first kill the gw because fs doesn't updated the config until all sessions are finished. If the gateway has no traffic, that's fine. But the idea would be for the change to take effect starting with the new incoming calls and allow the old ones to end normally. Also, when you kill a gw and then reload it, and incoming call between the kill and the reload will NOT be handled... this is just not right for a production environment.. Is there any other way of doing this WITHOUT actually: - not handling new incoming calls? - having to kill the gw? Thanks! David ------------------------------------------------------------------------------ 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
example: to reload idstributor reload mod_distributor ----- Original Message ----- From: David Villasmil To: FreeSWITCH Users Help Sent: Saturday, October 22, 2011 11:15 AM Subject: [Freeswitch-users] Reloading sofia+distributor Hello, I understand that if I make a change in a gateway, like IP address I need to first kill the gw because fs doesn't updated the config until all sessions are finished. If the gateway has no traffic, that's fine. But the idea would be for the change to take effect starting with the new incoming calls and allow the old ones to end normally. Also, when you kill a gw and then reload it, and incoming call between the kill and the reload will NOT be handled... this is just not right for a production environment.. Is there any other way of doing this WITHOUT actually: - not handling new incoming calls? - having to kill the gw? Thanks! David ------------------------------------------------------------------------------ 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
participants (4)
-
David Villasmil
-
Hynek Cihlar
-
Madovsky
-
Muhammad Naseer Bhatti