< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate-users] TCP connect failure - 503 response


Specifically when the connection is lost this code in TransportSelector.cxx throws an
exception, how should we recover from this

int ret = connect(tmp,&target.getSockaddr(), target.length());
      if (ret < 0)
      {
         int e = getErrno();
         Transport::error( e );
         InfoLog(<< "Unable to route to " << target << " : [" << e << "] " << strerror(e) );
         throw Transport::Exception("Can't find source address for Via", __FILE__,__LINE__);
      }


Thanks


From: Nauman Sulaiman <nauman762-home@xxxxxxxxxxx>
To: "resiprocate-users@xxxxxxxxxxxxxxx" <resiprocate-users@xxxxxxxxxxxxxxx>
Sent: Monday, 24 June 2013, 11:36
Subject: [reSIProcate-users] TCP connect failure - 503 response

Hi, 

Using resip 1.8.6 if a TCP connection dies then the stack generates a 503 to REGISTER
request. However there seems no way to recover from this ie a new connection is not 
made on REGISTER retry. 

All I can see is that the application is informed of a 503 so it all it can do is shutdown the
stack and restart, this is not ideal. Is there a better  way to manage this? There does not seem to
be a way of removing the TCP transport and adding again

Thanks

_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/