<DIV>Thanks for the quick response.</DIV>
<DIV>I get the following error when trying to run ser with this config info.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Segmentation fault (core dumped)<BR></DIV>
<DIV><BR><BR><B><I>Jan Janak &lt;jan@iptel.org&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Do the following:<BR><BR># Send to PSTN<BR>route[5] {<BR>rewritehostport("GW_IP_1:5060");<BR>consume_credentials();<BR>append_hf("P-Hint: GATEWAY\r\n");<BR><BR>t_on_failure("1"); <BR>if (!t_relay()) {<BR>sl_reply_error();<BR>break;<BR>};<BR>}<BR><BR>failure_route[1] {<BR>rewritehostport("GW_IP_2:5060");<BR>append_branch();<BR>t_relay();<BR>}<BR><BR>Jan.<BR><BR><BR>On 14-01 08:38, jon doe wrote:<BR>&gt; 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, <BR>&gt; <BR>&gt; if (method=="INVITE") {<BR>&gt; t_on_failure("1");<BR>&gt; }<BR>&gt; t_relay_to_udp("MainGateway.com","5050");<BR>&gt; .<BR>&gt; .<BR>&gt; .<BR>&gt; <BR>&gt; failure_route[1] {<BR>&gt; t_relay_to_udp("BackupGateway.com", "5060");<BR>&gt; }<BR>&gt; <BR>&gt; <BR>&gt; but
 when the main gateway goes down the calls never get to the backup gateway and i get the following in /var/adm/messages<BR>&gt; <BR>&gt; Jan 14 15:40:55 sun /usr/local/sbin/ser[26727]: [ID 680273 daemon.error] ERROR: t_forward_nonack: no branched for fwding<BR>&gt; Jan 14 15:40:55 sun /usr/local/sbin/ser[26727]: [ID 204228 daemon.error] ERROR: failure_route: t_relay_to failed<BR>&gt; Jan 14 15:40:55 sun /usr/local/sbin/ser[26727]: [ID 749208 daemon.error] ERROR: on_negative_reply: Error in do_action<BR>&gt; <BR>&gt; 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?<BR>&gt; please help.<BR>&gt; <BR>&gt; Thanku<BR>&gt; <BR>&gt; <BR>&gt; ---------------------------------<BR>&gt; Do you Yahoo!?<BR>&gt; Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes<BR>&gt;
 _______________________________________________<BR>&gt; Serusers mailing list<BR>&gt; serusers@lists.iptel.org<BR>&gt; http://lists.iptel.org/mailman/listinfo/serusers<BR></BLOCKQUOTE><p><hr SIZE=1>
Do you Yahoo!?<br>
Yahoo! Hotjobs: <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/hotjobs/mail_footer_email/evt=21482/*http://hotjobs.sweepstakes.yahoo.com/signingbonus">Enter the "Signing Bonus" Sweepstakes</a>