[OpenSIPStack] FW: FW: OpenSBC as Forking Proxy
Brought to you by:
joegenbaclor
From: Gustavo C. <cur...@ho...> - 2007-06-11 14:39:56
|
Joegen, =20 I tried the DoDNSFailover's code but i have the following behavior: =20 When DoDNSFailover() is called for the first time m_FailOverAttempts is inc= reased from 0 to 1. =20 Then the via is changed (+ "-") and with this change when FindTransactionAn= dAddEvent() is called a new transaction is created.=20 In SIPTransaction::SIPTransaction() m_FailOverAttempts is initialized to 0.= Then when DoDNSFailover() is called again, the same target is used. =20 Gustavo From: cur...@ho...To: jb...@so...Subject: RE: = [OpenSIPStack] FW: OpenSBC as Forking ProxyDate: Wed, 30 May 2007 14:43:32 = +0200 Joegen, Thanks a lot. I will try to change the behavior.Gustavo > Date: Fri, 18 May 2007 08:15:20 +0800> From: jb...@so...> T= o: cur...@gm...; ope...@li...> Sub= ject: Re: [OpenSIPStack] FW: OpenSBC as Forking Proxy> > Gustavo,> > Sorry,= I forgot to get back to you. If you have the latest CVS head > code, check= out BOOL SIPTransaction::DoDNSFailover() in > SIPTransaction.cxx. I have c= ommitted this a few days ago to > demonstrate fail-over by forking using DN= S/SRV records. New > transactions are created by calling FindTransactionAnd= AddEvent(). You > can just change its behavior a bit and get the fail-over = routes > somewhere instead of DNS/SRV queries.> > Joegen> > > Gustavo Curet= ti wrote:> >> > Joegen:> >> > I don't understand how to create a new client= transaction when the > > first invite fail in the FSM layer. Could you giv= e some directions, > > please?> >> > Thanks for your help.> >> > Gustavo.> = >> >> >> > ----------------------------------------------------------------= --------> > From: cur...@ho...> > To: jbaclor@solegysystems.= com> > Subject: RE: [OpenSIPStack] OpenSBC as Forking Proxy> > Date: Mon, 1= 4 May 2007 16:18:57 +0200> >> > Joegen:> > > > Thanks for your help. Do you= suggest to do the serial forking in> > FSM layer with a custom header?.Mus= t each new try create a new> > client transaction?> > > > Thanks> > Gustavo= > >> > --------------------------------------------------------------------= ----> >> > > Date: Thu, 10 May 2007 13:28:29 +0800> > > From: jbaclor@soleg= ysystems.com> > > To: cur...@gm...> > > Subject: Re: [OpenSIPS= tack] OpenSBC as Forking Proxy> > >> > > Gustavo,> > >> > > This will be a = bit tricky. It is not as simple as spawning an> > outbound> > > invite. The= re should be a clean mechanism to clone transactions and> > > this is not p= resent in the FSM currently. Forking should be done> > in the> > > FSM laye= r, not in the UACore layer. I will see what I can do to> > help> > > you. I= will let you know when I have something you can use> > cleanly to> > > for= k your calls. Perhaps over the weekend, but that isn't a promise.> > >> > >= Joegen> > >> > > Gustavo Curetti wrote:> > > > Joegen:> > > >> > > > What = I want to do is a very simple sequential search. When one> > > > destinatio= n don't answer or reject the call I want the OpenSBC> > try> > > > another.= > > > >> > > > I made the following changes in the code for timer B> > expi= ration just> > > > for do some tests:> > > >> > > > void ProxySessionManage= r::OnTimerExpire(> > > > SIPTimerExpire & timerEvent,> > > > SIPSession * s= ession> > > > )> > > > {> > > > if( session !=3D NULL )> > > > {> > > > LOG= _IF_DEBUG( LogWarning(), "*** TIMER EXPIRATION *** for SIP> > > > Session "= << session->GetSessionId() );> > > > if( timerEvent.GetTimer() =3D=3D SIPT= ransactions::SIPTimerEvent::B)> > > > {> > > > SIPMessage msg =3D ((ProxySe= ssion *)session)->GetOriginalInvite();> > > > session->EnqueueSessionEvent(= new SIPSessionEvent( *session, 1,> > > > msg ) );> > > > }> > > > session-= >OnTimerExpire( timerEvent );> > > > }> > > > }> > > >> > > > and> > > >> >= > > void ProxySession::OnTimerExpire(> > > > SIPTimerExpire & timerEvent> = > > > )> > > > {> > > > GCREF( "SIPSession::OnTimerExpire" );> > > > if( ti= merEvent.GetTimer() =3D=3D SIPTransactions::SIPTimerEvent::B ||> > > > time= rEvent.GetTimer() =3D=3D SIPTransactions::SIPTimerEvent::F )> > > > {> > > = > ///this is an ICT timeout> > > > SIPMessage timeout;> > > > GetCurrentUAS= Request().CreateResponse( timeout,> > > > SIPMessage::Code480_TemporarilyNo= tAvailable );> > > > SendRequest( timeout );> > > > }> > > >> > > > //Destr= oy();> > > > }> > > >> > > > With these changes and a relay route:> > > >> = > > > [sip:*@192.168.0.207:*] sip:192.168.0.1:5060,> > sip:192.168.0.60:506= 0> > > >> > > > the OpenSBC made the second invite successfully. But what i= > > really> > > > want is to use some custom headers with a list destinatio= n> > addresses> > > > instead of the relay routes and to do the same in cas= e of a> > reject. Do> > > > you have any suggestions?> > > >> > > > Other q= uestion: Can i have two active ICT for a session?> > Because in> > > > the = case of reject, I must start a new ICT for trying the next> > > > destinati= on but canceling throw the first ICT at the same time.> > > >> > > > Thanks= for your help.> > > >> > > > Gustavo> > > >> > > >> > --------------------= ----------------------------------------------------> > > >> > > > > Date: = Sat, 5 May 2007 13:50:44 +0800> > > > > From: jb...@so...> > = > > > To: cur...@gm...;> > ope...@li...urceforg= e.net> > > > > Subject: Re: [OpenSIPStack] OpenSBC as Forking Proxy> > > > = >> > > > > Gustavo,> > > > >> > > > > Forking is not supported yet in OpenS= BC.> > > > >> > > > > Joegen> > > > >> > > > > Gustavo Curetti wrote:> > > = > > >> > > > > > Hi Joegen:> > > > > >> > > > > > I want to use the OpenSBC= as a Forking Proxy. I want that the> > > > > > OpenSBC try the differents = Relays Routes one by one. Could> > you give> > > > > > some directions, ple= ase?> > > > > >> > > > > > Thanks for your help.> > > > > >> > > > > > Gust= avo.> > > > > >> > > > > >> > > >> > --------------------------------------= ----------------------------------> > > > > > Descubre Live.com - tu propia= p=E1gina de inicio,> > personalizada para> > > > ver> > > > > > r=E1pidame= nte todo lo que te interesa en un mismo sitio.> > todo en el> > > > > > mis= mo sitio. <http://www.live.com/getstarted>> > > > > >> > > >> > -----------= -------------------------------------------------------------> > > > > >> >= > > > >> > > >> > --------------------------------------------------------= -----------------> > > > > > This SF.net email is sponsored by DB2 Express>= > > > > > Download DB2 Express C - the FREE version of DB2 express> > and = take> > > > > > control of your XML. No limits. Just data. Click to get it>= > now.> > > > > > http://sourceforge.net/powerbar/db2/> > > > > >> > > >> = > ------------------------------------------------------------------------>= > > > > >> > > > > > _______________________________________________> > > = > > > opensipstack-devel mailing list> > > > > > opensipstack-devel@lists.s= ourceforge.net> > > > > >> > https://lists.sourceforge.net/lists/listinfo/o= pensipstack-devel> > > > > >> > > > >> > > > >> > > > >> > > >> > ---------= ----------------------------------------------------------------> > > > > T= his SF.net email is sponsored by DB2 Express> > > > > Download DB2 Express = C - the FREE version of DB2 express and> > take> > > > > control of your XM= L. No limits. Just data. Click to get it now.> > > > > http://sourceforge.n= et/powerbar/db2/> > > > > _______________________________________________> = > > > > opensipstack-devel mailing list> > > > > opensipstack-devel@lists.s= ourceforge.net> > > > > https://lists.sourceforge.net/lists/listinfo/opensi= pstack-devel> > > >> > > >> > > >> > --------------------------------------= ----------------------------------> > > > Se uno de los primeros en probar = Windows Live Mail. Windows> > Live Mail.> > > >> > <http://ideas.live.com/p= rogrampage.aspx?versionId=3D5d21c51a-b161-4314-9b0e-4911fb2b2e6d>> > >> >> = >> > ----------------------------------------------------------------------= --> > Se uno de los primeros en probar Windows Live Mail. Windows Live> > M= ail.> > <http://ideas.live.com/programpage.aspx?versionId=3D5d21c51a-b161-4= 314-9b0e-4911fb2b2e6d>> >> >> >> > ----------------------------------------= --------------------------------> > Se uno de los primeros en probar Window= s Live Mail. Windows Live Mail. > > <http://ideas.live.com/programpage.aspx= ?versionId=3D5d21c51a-b161-4314-9b0e-4911fb2b2e6d>> > > -------------------= ------------------------------------------------------> This SF.net email i= s sponsored by DB2 Express> Download DB2 Express C - the FREE version of DB= 2 express and take> control of your XML. No limits. Just data. Click to get= it now.> http://sourceforge.net/powerbar/db2/> ___________________________= ____________________> opensipstack-devel mailing list> opensipstack-devel@l= ists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/opensips= tack-devel Se uno de los primeros en probar Windows Live Mail. Windows Live Mail.=20 _________________________________________________________________ Descubre Live.com - tu propia p=E1gina de inicio, personalizada para ver r= =E1pidamente todo lo que te interesa en un mismo sitio. http://www.live.com/getstarted= |