[Serusers] Failover Forwarding

jon doe siptelephony at yahoo.com
Wed Jan 14 18:12:01 CET 2004


Thanks for the quick response.
I get the following error when trying to run ser with this config info.
 
Segmentation fault (core dumped)



Jan Janak <jan at iptel.org> wrote:
Do the following:

# Send to PSTN
route[5] {
rewritehostport("GW_IP_1:5060");
consume_credentials();
append_hf("P-Hint: GATEWAY\r\n");

t_on_failure("1"); 
if (!t_relay()) {
sl_reply_error();
break;
};
}

failure_route[1] {
rewritehostport("GW_IP_2:5060");
append_branch();
t_relay();
}

Jan.


On 14-01 08:38, jon doe wrote:
> I have a SER proxy setup and would like to forward all calls to a gateway. If that gateway is down i would like to forward the calls to a different gateway. Is this possible. I have tried. the following, 
> 
> if (method=="INVITE") {
> t_on_failure("1");
> }
> t_relay_to_udp("MainGateway.com","5050");
> .
> .
> .
> 
> failure_route[1] {
> t_relay_to_udp("BackupGateway.com", "5060");
> }
> 
> 
> but when the main gateway goes down the calls never get to the backup gateway and i get the following in /var/adm/messages
> 
> Jan 14 15:40:55 sun /usr/local/sbin/ser[26727]: [ID 680273 daemon.error] ERROR: t_forward_nonack: no branched for fwding
> Jan 14 15:40:55 sun /usr/local/sbin/ser[26727]: [ID 204228 daemon.error] ERROR: failure_route: t_relay_to failed
> Jan 14 15:40:55 sun /usr/local/sbin/ser[26727]: [ID 749208 daemon.error] ERROR: on_negative_reply: Error in do_action
> 
> i understand that this code would work if i were to create a different branch to send to a different address of the user, but i dont want to do that i want to try to reach the same user via a different gateway. Is there any way to do this?
> please help.
> 
> Thanku
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers


---------------------------------
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20040114/f920d839/attachment.htm>


More information about the sr-users mailing list