Re: [Freeswitch-users] Dynamic SIP Gateways to register with

2008-04-09 Thread kokoska rokoska
Anthony Minessale napsal(a): > Asterisk does let you reload, and it *tries* not to interrupt the calls > but it's like a game of Russian Roulette, > because at some point for sure you *will* deadlock and/or seg fault when > you reload. Yes, Anthony, I heard/red about it a lot :-) But form gene

Re: [Freeswitch-users] Dynamic SIP Gateways to register with

2008-04-09 Thread Anthony Minessale
Asterisk does let you reload, and it *tries* not to interrupt the calls but it's like a game of Russian Roulette, because at some point for sure you *will* deadlock and/or seg fault when you reload. There is an actual unavoidable race condition in many of the things that they made reloadable that

Re: [Freeswitch-users] Dynamic SIP Gateways to register with

2008-04-09 Thread kokoska rokoska
Brian West napsal(a): > The gateway name has to already be unique. > Of course :-) But the names could change between config reloads - I think it is Anthony talked about. So gws could be recognized by names and the names of gws could not be changed or let's add another constant indetifier :-)

Re: [Freeswitch-users] Dynamic SIP Gateways to register with

2008-04-09 Thread Brian West
The gateway name has to already be unique. /b On Apr 9, 2008, at 6:53 AM, kokoska rokoska wrote: > > One possibility is to introduce mandatory unique identifier for each > gw > in config. Brian West sip:[EMAIL PROTECTED] ___ Freeswitch-users mai

Re: [Freeswitch-users] Dynamic SIP Gateways to register with

2008-04-09 Thread kokoska rokoska
Anthony Minessale napsal(a): > My concern is with detribalizing things. > > The idea of a bounty does hold some weight because things I don't want > to do are the exact things that should have a bounty. > :-) > There are a lot of moving parts in a gateway with many threads involved > which i

Re: [Freeswitch-users] Dynamic SIP Gateways to register with

2008-04-08 Thread Anthony Minessale
My concern is with detribalizing things. The idea of a bounty does hold some weight because things I don't want to do are the exact things that should have a bounty. There are a lot of moving parts in a gateway with many threads involved which is why it's a tricky situation. To what extent do you

Re: [Freeswitch-users] Dynamic SIP Gateways to register with

2008-04-08 Thread kokoska rokoska
Jonas Gauffin napsal(a): > I would also love to be able to switch gateways at runtime without > restarting the profiles. > > Anthony: wont a bounty help either? > I like the concept of independent profiles, but switching gws without restarting profile will be very cool. If bounty will be sette

Re: [Freeswitch-users] Dynamic SIP Gateways to register with

2008-04-08 Thread Jonas Gauffin
I would also love to be able to switch gateways at runtime without restarting the profiles. Anthony: wont a bounty help either? On Tue, Apr 8, 2008 at 9:03 AM, kokoska rokoska <[EMAIL PROTECTED]> wrote: > > Anthony Minessale napsal(a): > > > The only way to do what you want is to make one sip pr

Re: [Freeswitch-users] Dynamic SIP Gateways to register with

2008-04-08 Thread kokoska rokoska
Anthony Minessale napsal(a): > The only way to do what you want is to make one sip profile per customer. > FreeSWITCH sofia profiles are meant as an instance of a single UA and > the gateways are alternated credential sets for that UA so in a hosted > scenario if you want to let customers have t

Re: [Freeswitch-users] Dynamic SIP Gateways to register with

2008-04-07 Thread Anthony Minessale
The only way to do what you want is to make one sip profile per customer. FreeSWITCH sofia profiles are meant as an instance of a single UA and the gateways are alternated credential sets for that UA so in a hosted scenario if you want to let customers have their own gateways, you give them each th

Re: [Freeswitch-users] Dynamic SIP Gateways to register with

2008-04-07 Thread kokoska rokoska
Michael Jerris napsal(a): > On Apr 7, 2008, at 3:57 PM, kokoska rokoska wrote: > >> f reload abort active calls, than it is useless for me. >> With - may be - hundreds of active calls and tens of gw changes per >> minute I need to find another solution. >> Any hint is very appreciated :-) > > >

Re: [Freeswitch-users] Dynamic SIP Gateways to register with

2008-04-07 Thread Michael Jerris
On Apr 7, 2008, at 3:57 PM, kokoska rokoska wrote: > f reload abort active calls, than it is useless for me. > With - may be - hundreds of active calls and tens of gw changes per > minute I need to find another solution. > Any hint is very appreciated :-) What could possibly cause that many gat

Re: [Freeswitch-users] Dynamic SIP Gateways to register with

2008-04-07 Thread kokoska rokoska
Jonas Gauffin napsal(a): > note that reloading a profile will abort all active calls in that profile. > Thank you very much, Jonas, for your answer! If reload abort active calls, than it is useless for me. With - may be - hundreds of active calls and tens of gw changes per minute I need to fin

Re: [Freeswitch-users] Dynamic SIP Gateways to register with

2008-04-07 Thread kokoska rokoska
David Knell napsal(a): > Hi Kukoska, > > I did this using mod_xml_curl, which worked fine: you also need to poke > appropriate commands in to FreeSWITCH to have it reload the profiles > for whichever gateways you change. > > Cheers -- > > Dave Thank you very much, David, for your answer! I'm

Re: [Freeswitch-users] Dynamic SIP Gateways to register with

2008-04-07 Thread Jonas Gauffin
note that reloading a profile will abort all active calls in that profile. On Mon, Apr 7, 2008 at 7:52 PM, David Knell <[EMAIL PROTECTED]> wrote: > Hi Kukoska, > > I did this using mod_xml_curl, which worked fine: you also need to poke > appropriate commands in to FreeSWITCH to have it reload th

Re: [Freeswitch-users] Dynamic SIP Gateways to register with

2008-04-07 Thread David Knell
Hi Kukoska, I did this using mod_xml_curl, which worked fine: you also need to poke appropriate commands in to FreeSWITCH to have it reload the profiles for whichever gateways you change. Cheers -- Dave > Hi all, > > I have got one more question, I'm not able to find in docs: > > How could I dyn

[Freeswitch-users] Dynamic SIP Gateways to register with

2008-04-07 Thread kokoska rokoska
Hi all, I have got one more question, I'm not able to find in docs: How could I dynamicaly add/change params/remove SIP gateways I have to register with (and the others - I shouldn't register with - too :-)? Like I see, gateways are defined in Sofia profiles - XML files. Are these files read