On the OpenSIPSProxy script in order to pass the call to OpenSIPSB2BUA I set the $rd variable to the OpenSIPSB2BUA IP address.  So what variable do I need to set on the OpenSIPSProxy before sending it to the OpenSIPSB2BUA so that the B2BUA server will know to send it to the Backup Gateway?  I thought the $rd already set the RURI domain?<br /><br /><br /><br />On , Ovidiu Sas &lt;osas@voipembedded.com&gt; wrote:<br />&gt; If you want to use opensips in b2b mode and still have failover, you<br />&gt; <br />&gt; will need to use two instances of opensips:<br />&gt; <br />&gt;  - one in b2b mode,<br />&gt; <br />&gt;  - one in proxy mode and doing the failover.<br />&gt; <br />&gt; It seems that you already have the setup, so all that you need to do<br />&gt; <br />&gt; on the proxy (on the failure case) is to send the INVITE back to the<br />&gt; <br />&gt; OpenSIPSB2BUA with RURI pointing to the Backup SIP Gateway B,<br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; Regards,<br />&gt; <br />&gt; Ovidiu Sas<br />&gt; <br />&gt; <br />&gt; <br />&gt; On Mon, May 16, 2011 at 10:04 PM,  duane.larson@gmail.com&gt; wrote:<br />&gt; <br />&gt; &gt; I have the following setup<br />&gt; <br />&gt; &gt;<br />&gt; <br />&gt; &gt;<br />&gt; <br />&gt; &gt; ----- Primary SIP Gateway A XXX.XXX.XXX.XXX<br />&gt; <br />&gt; &gt; Phones  OpenSIPSProxy  OpenSIPSB2BUA  SIP Trunk Provider |<br />&gt; <br />&gt; &gt; ----- Backup SIP Gateway B YYY.YYY.YYY.YYY<br />&gt; <br />&gt; &gt;<br />&gt; <br />&gt; &gt; So my SIP trunk provider (Bandwidth.com) provided me with two gateways to<br />&gt; <br />&gt; &gt; send my calls to (One is the primary and the other is the backup in case the<br />&gt; <br />&gt; &gt; first doesn&#39;t work). I am trying to figure out how I can set up the<br />&gt; <br />&gt; &gt; OpenSIPSB2BUA so that if the first gateway is down the call will timeout and<br />&gt; <br />&gt; &gt; send the call to the Backup Gateway. Normally this would be easy but since<br />&gt; <br />&gt; &gt; the call is being executed with the b2b_init_request() function I can&#39;t set<br />&gt; <br />&gt; &gt; a failure route and then when the first call to the Primary Gateway fails<br />&gt; <br />&gt; &gt; set my $rd to the Backup gateway and call b2b_init_request() since<br />&gt; <br />&gt; &gt; b2b_init_request() can only be executed on the initial INVITE.<br />&gt; <br />&gt; &gt;<br />&gt; <br />&gt; &gt;<br />&gt; <br />&gt; &gt; Has anyone run into this scenario yet? Anyone have any ideas on a possible<br />&gt; <br />&gt; &gt; solution?<br />&gt; <br />&gt; &gt;<br />&gt; <br />&gt; &gt; If the OpenSIPSB2BUA can&#39;t do anything with the timeout then it will need to<br />&gt; <br />&gt; &gt; fail back to the OpenSIPSProxy, but I am not sure what I can do on the<br />&gt; <br />&gt; &gt; OpenSIPSProxy since all he does is set $rd to the IP Address of<br />&gt; <br />&gt; &gt; OpenSIPSB2BUA and t_relay() it.<br />&gt; <br />&gt; &gt; _______________________________________________<br />&gt; <br />&gt; &gt; Users mailing list<br />&gt; <br />&gt; &gt; Users@lists.opensips.org<br />&gt; <br />&gt; &gt; http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br />&gt; <br />&gt; &gt;<br />&gt; <br />&gt; &gt;<br />&gt; <br />&gt; <br />&gt; <br />&gt; _______________________________________________<br />&gt; <br />&gt; Users mailing list<br />&gt; <br />&gt; Users@lists.opensips.org<br />&gt; <br />&gt; http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br />&gt;