Re: [OpenSIPS-Users] Reroute B2B call after failure

2011-05-19 Thread osiris123d
Do you have some code example of how to do this?  I am not sure what
variables need to be overwritten.

--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Reroute-B2B-call-after-failure-tp6371369p6383969.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Reroute B2B call after failure

2011-05-19 Thread Ovidiu Sas
On Thu, May 19, 2011 at 6:16 PM, osiris123d duane.lar...@gmail.com wrote:
 Do you have some code example of how to do this?  I am not sure what
 variables need to be overwritten.

destination URI and request URI::
http://www.opensips.org/Resources/DocsCoreVar#toc29
http://www.opensips.org/Resources/DocsCoreVar#toc67

Regards,
Ovidiu Sas

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Reroute B2B call after failure

2011-05-19 Thread duane . larson
Thanks Ovidiu. I was using $rd before to send it to the Proxy, but $du  
looks to be better suited for that. And then $ru works perfect for  
representing the Primary or Backup SIP Gateway.


Appreciate it!!!

On , Ovidiu Sas o...@voipembedded.com wrote:

On Thu, May 19, 2011 at 6:16 PM, osiris123d duane.lar...@gmail.com wrote:



 Do you have some code example of how to do this? I am not sure what



 variables need to be overwritten.





destination URI and request URI::



http://www.opensips.org/Resources/DocsCoreVar#toc29



http://www.opensips.org/Resources/DocsCoreVar#toc67





Regards,



Ovidiu Sas





___



Users mailing list



Users@lists.opensips.org



http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Reroute B2B call after failure

2011-05-17 Thread Ovidiu Sas
On the OpenSIPSB2BUA instance, you need to be able to distinguish
between an INVITE for the primary GW and the INVITE for the secondary
GW.  I would just send the INVITE from the OpenSIPSProxy instance with
proper RURI (pointing to the right GW) to the OpenSIPSB2BUA instance.

Regards,
Ovidiu Sas

On Mon, May 16, 2011 at 11:59 PM,  duane.lar...@gmail.com wrote:
 Actually I guess I could just do the following

 On the OpenSIPSProxy use the uac_replace_to() and change the domain to be
 the Primary Gateway and then if it fails I can use the uac_replace_to() and
 set the domain to the backup. And then on the OpenSIPSB2BUA look at the To
 domain and use that to set my $rd. I will have to test it out but that
 sounds like it would work.

 On , duane.lar...@gmail.com wrote:
 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?



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



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Reroute B2B call after failure

2011-05-16 Thread duane . larson

I have the following setup


- Primary SIP Gateway A XXX.XXX.XXX.XXX
Phones - OpenSIPSProxy - OpenSIPSB2BUA - SIP Trunk Provider |
- Backup SIP Gateway B YYY.YYY.YYY.YYY

So my SIP trunk provider (Bandwidth.com) provided me with two gateways to  
send my calls to (One is the primary and the other is the backup in case  
the first doesn't work). I am trying to figure out how I can set up the  
OpenSIPSB2BUA so that if the first gateway is down the call will timeout  
and send the call to the Backup Gateway. Normally this would be easy but  
since the call is being executed with the b2b_init_request() function I  
can't set a failure route and then when the first call to the Primary  
Gateway fails set my $rd to the Backup gateway and call b2b_init_request()  
since b2b_init_request() can only be executed on the initial INVITE.



Has anyone run into this scenario yet? Anyone have any ideas on a possible  
solution?


If the OpenSIPSB2BUA can't do anything with the timeout then it will need  
to fail back to the OpenSIPSProxy, but I am not sure what I can do on the  
OpenSIPSProxy since all he does is set $rd to the IP Address of  
OpenSIPSB2BUA and t_relay() it.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Reroute B2B call after failure

2011-05-16 Thread Ovidiu Sas
If you want to use opensips in b2b mode and still have failover, you
will need to use two instances of opensips:
 - one in b2b mode,
 - one in proxy mode and doing the failover.
It seems that you already have the setup, so all that you need to do
on the proxy (on the failure case) is to send the INVITE back to the
OpenSIPSB2BUA with RURI pointing to the Backup SIP Gateway B,


Regards,
Ovidiu Sas

On Mon, May 16, 2011 at 10:04 PM,  duane.lar...@gmail.com wrote:
 I have the following setup


 - Primary SIP Gateway A XXX.XXX.XXX.XXX
 Phones - OpenSIPSProxy - OpenSIPSB2BUA - SIP Trunk Provider |
 - Backup SIP Gateway B YYY.YYY.YYY.YYY

 So my SIP trunk provider (Bandwidth.com) provided me with two gateways to
 send my calls to (One is the primary and the other is the backup in case the
 first doesn't work). I am trying to figure out how I can set up the
 OpenSIPSB2BUA so that if the first gateway is down the call will timeout and
 send the call to the Backup Gateway. Normally this would be easy but since
 the call is being executed with the b2b_init_request() function I can't set
 a failure route and then when the first call to the Primary Gateway fails
 set my $rd to the Backup gateway and call b2b_init_request() since
 b2b_init_request() can only be executed on the initial INVITE.


 Has anyone run into this scenario yet? Anyone have any ideas on a possible
 solution?

 If the OpenSIPSB2BUA can't do anything with the timeout then it will need to
 fail back to the OpenSIPSProxy, but I am not sure what I can do on the
 OpenSIPSProxy since all he does is set $rd to the IP Address of
 OpenSIPSB2BUA and t_relay() it.
 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Reroute B2B call after failure

2011-05-16 Thread duane . larson
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?




On , Ovidiu Sas o...@voipembedded.com wrote:

If you want to use opensips in b2b mode and still have failover, you



will need to use two instances of opensips:



- one in b2b mode,



- one in proxy mode and doing the failover.



It seems that you already have the setup, so all that you need to do



on the proxy (on the failure case) is to send the INVITE back to the



OpenSIPSB2BUA with RURI pointing to the Backup SIP Gateway B,







Regards,



Ovidiu Sas





On Mon, May 16, 2011 at 10:04 PM, duane.lar...@gmail.com wrote:



 I have the following setup











 - Primary SIP Gateway A XXX.XXX.XXX.XXX



 Phones OpenSIPSProxy OpenSIPSB2BUA SIP Trunk Provider |



 - Backup SIP Gateway B YYY.YYY.YYY.YYY






 So my SIP trunk provider (Bandwidth.com) provided me with two gateways  
to


 send my calls to (One is the primary and the other is the backup in  
case the



 first doesn't work). I am trying to figure out how I can set up the


 OpenSIPSB2BUA so that if the first gateway is down the call will  
timeout and


 send the call to the Backup Gateway. Normally this would be easy but  
since


 the call is being executed with the b2b_init_request() function I can't  
set


 a failure route and then when the first call to the Primary Gateway  
fails



 set my $rd to the Backup gateway and call b2b_init_request() since



 b2b_init_request() can only be executed on the initial INVITE.










 Has anyone run into this scenario yet? Anyone have any ideas on a  
possible



 solution?






 If the OpenSIPSB2BUA can't do anything with the timeout then it will  
need to



 fail back to the OpenSIPSProxy, but I am not sure what I can do on the



 OpenSIPSProxy since all he does is set $rd to the IP Address of



 OpenSIPSB2BUA and t_relay() it.



 ___



 Users mailing list



 Users@lists.opensips.org



 http://lists.opensips.org/cgi-bin/mailman/listinfo/users













___



Users mailing list



Users@lists.opensips.org



http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Reroute B2B call after failure

2011-05-16 Thread duane . larson

Actually I guess I could just do the following

On the OpenSIPSProxy use the uac_replace_to() and change the domain to be  
the Primary Gateway and then if it fails I can use the uac_replace_to() and  
set the domain to the backup. And then on the OpenSIPSB2BUA look at the To  
domain and use that to set my $rd. I will have to test it out but that  
sounds like it would work.


On , duane.lar...@gmail.com wrote:
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?





On , Ovidiu Sas o...@voipembedded.com wrote:
 If you want to use opensips in b2b mode and still have failover, you

 will need to use two instances of opensips:

 - one in b2b mode,

 - one in proxy mode and doing the failover.

 It seems that you already have the setup, so all that you need to do

 on the proxy (on the failure case) is to send the INVITE back to the

 OpenSIPSB2BUA with RURI pointing to the Backup SIP Gateway B,





 Regards,

 Ovidiu Sas



 On Mon, May 16, 2011 at 10:04 PM, duane.lar...@gmail.com wrote:

  I have the following setup

 

 

  - Primary SIP Gateway A XXX.XXX.XXX.XXX

  Phones OpenSIPSProxy OpenSIPSB2BUA SIP Trunk Provider |

  - Backup SIP Gateway B YYY.YYY.YYY.YYY

 

  So my SIP trunk provider (Bandwidth.com) provided me with two  
gateways to


  send my calls to (One is the primary and the other is the backup in  
case the


  first doesn't work). I am trying to figure out how I can set up the

  OpenSIPSB2BUA so that if the first gateway is down the call will  
timeout and


  send the call to the Backup Gateway. Normally this would be easy but  
since


  the call is being executed with the b2b_init_request() function I  
can't set


  a failure route and then when the first call to the Primary Gateway  
fails


  set my $rd to the Backup gateway and call b2b_init_request() since

  b2b_init_request() can only be executed on the initial INVITE.

 

 

  Has anyone run into this scenario yet? Anyone have any ideas on a  
possible


  solution?

 

  If the OpenSIPSB2BUA can't do anything with the timeout then it will  
need to


  fail back to the OpenSIPSProxy, but I am not sure what I can do on the

  OpenSIPSProxy since all he does is set $rd to the IP Address of

  OpenSIPSB2BUA and t_relay() it.

  ___

  Users mailing list

  Users@lists.opensips.org

  http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 

 



 ___

 Users mailing list

 Users@lists.opensips.org

 http://lists.opensips.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users