[Serusers] PSTN gateway cluster - how to implement a backup procedure (maybe FAQ)

Iqbal iqbal at gigo.co.uk
Fri Aug 19 12:46:39 CEST 2005


have u looked at lcr module

iqbal

Pietro Ravasio wrote:

>Hi,
>
>I'm sorry this is maybe a FAQ, but I can't configure SER in order to
>statefully forward all method for "PSTN uris" to a backup gateway only when
>the primary is not reachable or down; I have two gateways:
>- primary gateway (installed into a remote site, connected to 2 PRIs, IP
>connected via VPN)
>- backup gateway (installed locally, connected to a few BRIs)
>
>Is there a way to handle "gateway failover" directly into ser? If not
>possible, I could use DNS round robin, but I'd prefer to handle failover
>into SER.
>
>I've tried with t_on_failure but I can't insert any t_relay logic into
>onreply_route blocks:
>
>....
>
>} else if ((uri=~"sip:0.*")||(uri=~"sip:3.*")) {
>                                route(2);
>}
>
>....
>
>route[2]
>{
>        t_on_failure("2");
>        prefix("99");
>        rewritehost("MY.PRIMARY.GW.IP");
>        t_relay_to_udp("MY.PRIMARY.GW.IP","5060");
>}
>
>onreply_route[2] {
>        xlog("L_ERR", "Can't connect to primary gateway, redirecting to
>backup one, uri was %ru");
>        revert_uri();
>        xlog("L_ERR", "Uri reverted back to %ru, forwarding to Cisco gw");
>        t_relay_to_udp("MY.BACKUP.GW.IP","5060");  # <----------- CAN'T DO
>THIS HERE!!!
>}
>
>
>Any ideas?
>
>Thanks!
>Pietro
>
>--
>Ing. Pietro Ravasio - pietro.ravasio at abbeynet.it
>Enterprise Market Manager
>Abbeynet S.p.A. - http://www.abbeynet.it
>TEL: +390702109044
>GSM: +393282172055
>FAX: +390702109055 
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>.
>
>  
>




More information about the sr-users mailing list