[OpenSIPS-Users] Media relay TCP timed out

Dan Pascu dan at ag-projects.com
Wed Sep 2 15:43:00 CEST 2009


On 31 Aug 2009, at 20:38, Jayesh Nambiar wrote:

> Hello All,
> I first time tried to use the mediaproxy with media-relay on a  
> remote host and everything worked well as expected. But after a span  
> of an hour or so the connection to that relay was lost and I could  
> see following messages in the logs:
> media-dispatcher[23102]: error: Error processing query at relay  
> 216.XXX.86.XXX: Relay at 216.XXX.86.XXX timed out
> media-dispatcher[23102]: error: Unhandled error in Deferred:
> media-dispatcher[23102]: Failure: mediaproxy.dispatcher.RelayError:  
> Relay at 216.XXX.86.XXX timed out
> media-dispatcher[23102]: error: Connection with relay at 216.XXX. 
> 86.XXX was lost: TCP connection timed out
>
> I could see no errors on the host where media-relay was running.  
> When i restarted the media-relay on the remote host it connected  
> again. But again after approximately an hour it again lost  
> connection with the relay with same errors.
> During this one hour time there was nothing running on the server;  
> no calls nothing, it was just lying idle. But I don't think this  
> should be the reason for the relay timing out.
>
> Is there a way where the connection can be maintained or a keep  
> alive can be sent to maintain the connection from the dispatcher  
> side or the relay side.

There is no need to keepalive a connection, as none of the endpoints  
will attempt to close it if it's idle for too look. At the same time,  
the dispatcher and relay implement a ping mechanism, with the purpose  
of detecting if the connection has died in order to reconnect. So the  
answer is they do employ a "keepalive" mechanism but for a different  
purpose. At the same time these ping messages will generate traffic so  
the connection if never idle. The reason why it times out after an  
hour must be somewhere else. Check if you have network filters or  
something similar.

>
> Any help is much appreciated.
>
> Thanks,
>
> w/regards,
> Jay
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


--
Dan






More information about the Users mailing list