<DIV>Thanks for the quick response.</DIV>
<DIV>I get the following error when trying to run ser with this config info.</DIV>
<DIV> </DIV>
<DIV>Segmentation fault (core dumped)<BR></DIV>
<DIV><BR><BR><B><I>Jan Janak <jan@iptel.org></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>> 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>> <BR>> if (method=="INVITE") {<BR>> t_on_failure("1");<BR>> }<BR>> t_relay_to_udp("MainGateway.com","5050");<BR>> .<BR>> .<BR>> .<BR>> <BR>> failure_route[1] {<BR>> t_relay_to_udp("BackupGateway.com", "5060");<BR>> }<BR>> <BR>> <BR>> 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>> <BR>> Jan 14 15:40:55 sun /usr/local/sbin/ser[26727]: [ID 680273 daemon.error] ERROR: t_forward_nonack: no branched for fwding<BR>> Jan 14 15:40:55 sun /usr/local/sbin/ser[26727]: [ID 204228 daemon.error] ERROR: failure_route: t_relay_to failed<BR>> Jan 14 15:40:55 sun /usr/local/sbin/ser[26727]: [ID 749208 daemon.error] ERROR: on_negative_reply: Error in do_action<BR>> <BR>> 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>> please help.<BR>> <BR>> Thanku<BR>> <BR>> <BR>> ---------------------------------<BR>> Do you Yahoo!?<BR>> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes<BR>>
_______________________________________________<BR>> Serusers mailing list<BR>> serusers@lists.iptel.org<BR>> 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>