Re: [asterisk-users] OpenSER for Asterisk Load balance
One more question... This dispatcher module configuration allows to balance the INVITE packets, but that means that the users have to be registered in a way that allow start a call from any of the goup of * servers, such a database, isn't it? What about balance the REGISTER packages? On 11/1/07, ram <[EMAIL PROTECTED]> wrote: > > > > On 11/2/07, Edgar Guadamuz <[EMAIL PROTECTED]> wrote: > > Hi, guys > > > > I´ve just seen thta OpenSER can be coupled with Asterisk for load > > balance, with the dispatcher module, something like this: > > > > dispatcher.cfg file > > > > # group sip addresses of your * units > > 1 sip:10.1.2.3:5060 > > 1 sip:10.1.2.4:5060 > > 1 sip: 10.1.2.5:5060 > > > > the basic openser.cfg should be like: > > > > loadmodule("dispatcher.so") > > > > ... > > > > if ( method=="INVITE" ) { > > # dst_select( "GROUP", "HASH METHOD") > > dst_select("1","4"); > > sl_send_reply("100","Trying"); > > forward(uri:host, uri:port); > > exit(); > > } > > > > That´s OK, but what about failover, I mean, if a Asterisk box crashes, > > the dispatcher module will continue sending requests for that IP and > > in this case something like heartbeat had to be implemented to take > > the failed IP, but it would be more efficient if we could have OpenSER > > monitoring the Asterisk servers health, anyone knows how? > > > Hi > > the recomendations are DNS SRV records or > do in round robin basic. > > Like failover routes from OpenSER > > http://gearsofvoip.com/index.htm > > ram > > ___ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > ___ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] OpenSER for Asterisk Load balance
On 11/2/07, Edgar Guadamuz <[EMAIL PROTECTED]> wrote: > > Hi, guys > > I´ve just seen thta OpenSER can be coupled with Asterisk for load > balance, with the dispatcher module, something like this: > > dispatcher.cfg file > > # group sip addresses of your * units > 1 sip:10.1.2.3:5060 > 1 sip:10.1.2.4:5060 > 1 sip:10.1.2.5:5060 > > the basic openser.cfg should be like: > > loadmodule("dispatcher.so") > > ... > > if ( method=="INVITE" ) { > # dst_select( "GROUP", "HASH METHOD") > dst_select("1","4"); > sl_send_reply("100","Trying"); > forward(uri:host, uri:port); > exit(); > } > > That´s OK, but what about failover, I mean, if a Asterisk box crashes, > the dispatcher module will continue sending requests for that IP and > in this case something like heartbeat had to be implemented to take > the failed IP, but it would be more efficient if we could have OpenSER > monitoring the Asterisk servers health, anyone knows how? Hi the recomendations are DNS SRV records or do in round robin basic. Like failover routes from OpenSER http://gearsofvoip.com/index.htm ram ___ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] OpenSER for Asterisk Load balance
Hi, guys I´ve just seen thta OpenSER can be coupled with Asterisk for load balance, with the dispatcher module, something like this: dispatcher.cfg file # group sip addresses of your * units 1 sip:10.1.2.3:5060 1 sip:10.1.2.4:5060 1 sip:10.1.2.5:5060 the basic openser.cfg should be like: loadmodule("dispatcher.so") ... if ( method=="INVITE" ) { # dst_select( "GROUP", "HASH METHOD") dst_select("1","4"); sl_send_reply("100","Trying"); forward(uri:host, uri:port); exit(); } That´s OK, but what about failover, I mean, if a Asterisk box crashes, the dispatcher module will continue sending requests for that IP and in this case something like heartbeat had to be implemented to take the failed IP, but it would be more efficient if we could have OpenSER monitoring the Asterisk servers health, anyone knows how? ___ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users