Re: [OpenSIPStack] FW: FW: OpenSBC as Forking Proxy
Brought to you by:
joegenbaclor
From: Gustavo C. <cur...@ho...> - 2007-06-20 16:03:53
|
Joegen: =20 The fix works fine. But i have the following problem: When i hang up and se= nd a Cancel to OpenSBC, the OpenSBC respond with Code487_RequestCancelled b= ut the Cancel is not been send to the actual target, the Cancel is just rou= ted again. Thanks for your help. =20 Gustavo > Date: Wed, 13 Jun 2007 22:15:14 +0800> To: cur...@gm...; ope= nsi...@li...> Subject: Re: [OpenSIPStack] FW: FW: = OpenSBC as Forking Proxy> From: joe...@gm...> > I've just checke= d in a fix for this in CVS. > > Gustavo Curetti wrote:> >> > Joegen,> > > >= I tried the DoDNSFailover's code but i have the following behavior:> > > >= When DoDNSFailover() is called for the first time m_FailOverAttempts > > i= s increased from 0 to 1.> > > > Then the via is changed (+ "-") and with th= is change when > > FindTransactionAndAddEvent() is called a new transaction= is created.> > In SIPTransaction::SIPTransaction() m_FailOverAttempts is i= nitialized > > to 0. Then when DoDNSFailover() is called again, the same ta= rget is used.> > > > Gustavo> >> > ----------------------------------------= --------------------------------> > From: cur...@ho...> > To= : jb...@so...> > Subject: RE: [OpenSIPStack] FW: OpenSBC as F= orking Proxy> > Date: 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: jbaclor@solegysystems.c= om> > > To: cur...@gm...;> > ope...@li...urcefo= rge.net> > > Subject: 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 committed this a few days ago to> > > de= monstrate fail-over by forking using DNS/SRV records. New> > > transactions= are created by calling> > FindTransactionAndAddEvent(). You> > > can just = change its behavior a bit and get the fail-over routes> > > somewhere inste= ad of DNS/SRV queries.> > >> > > Joegen> > >> > >> > > Gustavo Curetti wrot= e:> > > >> > > > Joegen:> > > >> > > > I don't understand how to create a n= ew client transaction when> > the> > > > first invite fail in the FSM layer= . Could you give some> > directions,> > > > please?> > > >> > > > Thanks fo= r your help.> > > >> > > > Gustavo.> > > >> > > >> > > >> > > >> > --------= ----------------------------------------------------------------> > > > Fro= m: cur...@ho...> > > > To: jb...@so...> > > > = Subject: RE: [OpenSIPStack] OpenSBC as Forking Proxy> > > > Date: Mon, 14 M= ay 2007 16:18:57 +0200> > > >> > > > Joegen:> > > >> > > > Thanks for your = help. Do you suggest to do the serial forking in> > > > FSM layer with a cu= stom header?.Must each new try create a new> > > > client transaction?> > >= >> > > > Thanks> > > > Gustavo> > > >> > > >> > --------------------------= ----------------------------------------------> > > >> > > > > Date: Thu, 1= 0 May 2007 13:28:29 +0800> > > > > From: jb...@so...> > > > >= To: cur...@gm...> > > > > Subject: Re: [OpenSIPStack] OpenSBC= as Forking Proxy> > > > >> > > > > Gustavo,> > > > >> > > > > This will be= a bit tricky. It is not as simple as spawning an> > > > outbound> > > > > = invite. There should be a clean mechanism to clone> > transactions and> > >= > > this is not present in the FSM currently. Forking should be done> > > = > in the> > > > > FSM layer, 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> > > > > fork your calls. Perhaps over the we= ekend, but that isn't a> > promise.> > > > >> > > > > Joegen> > > > >> > > = > > Gustavo Curetti wrote:> > > > > > Joegen:> > > > > >> > > > > > What I = want to do is a very simple sequential search. When one> > > > > > destinat= ion don't answer or reject the call I want the OpenSBC> > > > try> > > > > = > another.> > > > > >> > > > > > I made the following changes in the code f= or timer B> > > > expiration just> > > > > > for do some tests:> > > > > >>= > > > > > void ProxySessionManager::OnTimerExpire(> > > > > > SIPTimerExpi= re & timerEvent,> > > > > > SIPSession * session> > > > > > )> > > > > > {>= > > > > > if( session !=3D NULL )> > > > > > {> > > > > > LOG_IF_DEBUG( Lo= gWarning(), "*** TIMER EXPIRATION *** for SIP> > > > > > Session " << sessi= on->GetSessionId() );> > > > > > if( timerEvent.GetTimer() =3D=3D> > SIPTra= nsactions::SIPTimerEvent::B)> > > > > > {> > > > > > SIPMessage msg =3D ((P= roxySession> > *)session)->GetOriginalInvite();> > > > > > session->Enqueue= SessionEvent( new SIPSessionEvent(> > *session, 1,> > > > > > msg ) );> > >= > > > }> > > > > > session->OnTimerExpire( timerEvent );> > > > > > }> > >= > > > }> > > > > >> > > > > > and> > > > > >> > > > > > void ProxySession:= :OnTimerExpire(> > > > > > SIPTimerExpire & timerEvent> > > > > > )> > > > = > > {> > > > > > GCREF( "SIPSession::OnTimerExpire" );> > > > > > if( timer= Event.GetTimer() =3D=3D> > SIPTransactions::SIPTimerEvent::B ||> > > > > > = timerEvent.GetTimer() =3D=3D SIPTransactions::SIPTimerEvent::F )> > > > > >= {> > > > > > ///this is an ICT timeout> > > > > > SIPMessage timeout;> > >= > > > GetCurrentUASRequest().CreateResponse( timeout,> > > > > > SIPMessag= e::Code480_TemporarilyNotAvailable );> > > > > > SendRequest( timeout );> >= > > > > }> > > > > >> > > > > > //Destroy();> > > > > > }> > > > > >> > > = > > > With these changes and a relay route:> > > > > >> > > > > > [sip:*@19= 2.168.0.207:*] sip:192.168.0.1:5060,> > > > sip:192.168.0.60:5060> > > > > = >> > > > > > the OpenSBC made the second invite successfully. But what i> >= > > really> > > > > > want is to use some custom headers with a list desti= nation> > > > addresses> > > > > > instead of the relay routes and to do th= e same in case of a> > > > reject. Do> > > > > > you have any suggestions?>= > > > > >> > > > > > Other question: Can i have two active ICT for a sessi= on?> > > > Because in> > > > > > the case of reject, I must start a new ICT= for trying the next> > > > > > destination but canceling throw the first I= CT at the same> > time.> > > > > >> > > > > > Thanks for your help.> > > > = > >> > > > > > Gustavo> > > > > >> > > > > >> > > >> > --------------------= ----------------------------------------------------> > > > > >> > > > > > = > Date: Sat, 5 May 2007 13:50:44 +0800> > > > > > > From: jbaclor@solegysys= tems.com> > > > > > > To: cur...@gm...;> > > > opensipstack-de= ve...@li...> > > > > > > Subject: Re: [OpenSIPStack] OpenSBC = as Forking Proxy> > > > > > >> > > > > > > Gustavo,> > > > > > >> > > > > >= > Forking is not supported yet in OpenSBC.> > > > > > >> > > > > > > Joege= n> > > > > > >> > > > > > > Gustavo Curetti wrote:> > > > > > > >> > > > > = > > > Hi Joegen:> > > > > > > >> > > > > > > > I want to use the OpenSBC as= a Forking Proxy. I want> > that the> > > > > > > > OpenSBC try the differe= nts Relays Routes one by one. Could> > > > you give> > > > > > > > some dir= ections, please?> > > > > > > >> > > > > > > > Thanks for your help.> > > >= > > > >> > > > > > > > Gustavo.> > > > > > > >> > > > > > > >> > > > > >> = > > >> > ------------------------------------------------------------------= ------> > > > > > > > Descubre Live.com - tu propia p=E1gina de inicio,> > = > > personalizada para> > > > > > ver> > > > > > > > r=E1pidamente todo lo = que te interesa en un mismo sitio.> > > > todo en el> > > > > > > > mismo s= itio. <http://www.live.com/getstarted>> > > > > > > >> > > > > >> > > >> > = ------------------------------------------------------------------------> >= > > > > > >> > > > > > > >> > > > > >> > > >> > --------------------------= -----------------------------------------------> > > > > > > > This SF.net = email is sponsored by DB2 Express> > > > > > > > Download DB2 Express C - t= he FREE version of DB2 express> > > > and take> > > > > > > > control of yo= ur XML. No limits. Just data. Click to get it> > > > now.> > > > > > > > ht= tp://sourceforge.net/powerbar/db2/> > > > > > > >> > > > > >> > > >> > ----= --------------------------------------------------------------------> > > >= > > > >> > > > > > > > _______________________________________________> > = > > > > > > opensipstack-devel mailing list> > > > > > > > opensipstack-dev= el...@li...> > > > > > > >> > > > https://lists.sourceforge.ne= t/lists/listinfo/opensipstack-devel> > > > > > > >> > > > > > >> > > > > > = >> > > > > > >> > > > > >> > > >> > ---------------------------------------= ----------------------------------> > > > > > > This SF.net email is sponso= red by DB2 Express> > > > > > > Download DB2 Express C - the FREE version o= f DB2 express and> > > > take> > > > > > > control of your XML. No limits. = Just data. Click to get> > it now.> > > > > > > http://sourceforge.net/powe= rbar/db2/> > > > > > > _______________________________________________> > >= > > > > opensipstack-devel mailing list> > > > > > > opensipstack-devel@li= sts.sourceforge.net> > > > > > >> > https://lists.sourceforge.net/lists/lis= tinfo/opensipstack-devel> > > > > >> > > > > >> > > > > >> > > >> > -------= -----------------------------------------------------------------> > > > > = > Se uno de los primeros en probar Windows Live Mail. Windows> > > > Live M= ail.> > > > > >> > > >> > <http://ideas.live.com/programpage.aspx?versionId= =3D5d21c51a-b161-4314-9b0e-4911fb2b2e6d>> > > > >> > > >> > > >> > > >> > -= -----------------------------------------------------------------------> > = > > Se uno de los primeros en probar Windows Live Mail. Windows Live> > > >= Mail.> > > >> > <http://ideas.live.com/programpage.aspx?versionId=3D5d21c5= 1a-b161-4314-9b0e-4911fb2b2e6d>> > > >> > > >> > > >> > > >> > ------------= ------------------------------------------------------------> > > > Se uno = de los primeros en probar Windows Live Mail. Windows> > Live Mail.> > > >> = > <http://ideas.live.com/programpage.aspx?versionId=3D5d21c51a-b161-4314-9b= 0e-4911fb2b2e6d>> > >> > >> > >> > ----------------------------------------= ---------------------------------> > > This SF.net email is sponsored by DB= 2 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-= de...@li...> > > https://lists.sourceforge.net/lists/listin= fo/opensipstack-devel> >> >> > --------------------------------------------= ----------------------------> > Se uno de los primeros en probar Windows Li= ve Mail. Windows Live> > Mail.> > <http://ideas.live.com/programpage.aspx?v= ersionId=3D5d21c51a-b161-4314-9b0e-4911fb2b2e6d>> >> >> >> > --------------= ----------------------------------------------------------> > Comun=EDcate = al instante con Windows Live Messenger Windows Live > > Messenger > > <http= ://imagine-msn.com/messenger/launch80/default.aspx?locale=3Des-ar&source=3D= joinmsncom/messenger> > >> > ----------------------------------------------= --------------------------> >> > ------------------------------------------= -------------------------------> > This SF.net email is sponsored by DB2 Ex= press> > 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.= sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/opensipstac= k-devel> > > > > -- > Joegen E. Baclor> CTO - Solegy LLC> > Email: joegen @= solegy.com> Main: +1 212 801 2504> Fax: +1 347 438 3072> Manila: +63 2 747= 3460> Mobile: +63 918 411 9064> > 121 Varick St., Suite 201> NY, NY 10013>= > SOLEGY LLC> http://www.solegy.com> Solutions to Fit Your Strategy> >=20 _________________________________________________________________ Descubre Live.com - tu mundo en l=EDnea reunido: noticias, deportes, el tie= mpo, y mucho m=E1s. http://www.live.com/getstarted= |