[OpenSER-Users] Error with parallel forking and TCP

Zappasodi Daniele Daniele.Zappasodi at seltatel.it
Fri Jul 25 11:36:29 CEST 2008


Hello,
I have a problem with parallel forking and TCP when one connection isn't available and the inv_timeout expires.
I have two clients registered with the same username and transport=TCP.
If I make a call to this number when one of them is not reachable, the INVITE goes to the phone reachable, if the call timeout expires (fr_inv_timer_avp) Openser sends the CANCEL, but doesn't send anything to the caller.
The failure_route doesn't hit.

There is also a delay between the t_relay and the forwarding of the packet TCP on the net (around 3 seconds). The TCP packet is forwarded to the available connection only after Openser detects the failure for the closed TCP connection (the INVITE goes on the net only after the message ERROR:tm:t_forward_nonack: sending request failed).

This is the trace (debug level 3, Openser version 1.3.2):

Jun 25 16:30:01 SAM-IP ser[23888]: R1 t_relay R-uri: <sip:10240 at 10.45.10.63:2054;transport=tcp;line=zdhv6xi4> 
Jun 25 16:30:01 SAM-IP ser[23888]: Branch route <sip:10240 at 10.45.10.63:2054;transport=tcp;line=zdhv6xi4> 1
Jun 25 16:30:01 SAM-IP ser[23888]: Branch route <sip:10240 at 10.45.10.36:5064;transport=tcp> 2

Jun 25 16:30:04 SAM-IP ser[23888]: ERROR:core:tcp_blocking_connect: poll error: flags 18
Jun 25 16:30:04 SAM-IP ser[23888]: ERROR:core:tcp_blocking_connect: failed to retrieve SO_ERROR (113) No route to host
Jun 25 16:30:04 SAM-IP ser[23888]: ERROR:core:tcpconn_connect: tcp_blocking_connect failed
Jun 25 16:30:04 SAM-IP ser[23888]: ERROR:core:tcp_send: connect failed
Jun 25 16:30:04 SAM-IP ser[23888]: ERROR:tm:msg_send: tcp_send failed
Jun 25 16:30:04 SAM-IP ser[23888]: ERROR:tm:t_forward_nonack: sending request failed

Jun 25 16:30:04 SAM-IP ser[23890]: Reply Route: provision 180 - Ringing ip <10.45.10.36:33109> From <sip:10242 at 10.45.8.249> To <sip:10240 at 10.45.8.249>
Jun 25 16:30:04 SAM-IP ser[23890]: ERROR:core:io_wait_loop_sigio_rt: ignoring event 41 on fd 24 (fm->fd=-1, fm->data=0x406e5488)
Jun 25 16:30:04 SAM-IP ser[23900]: ERROR:core:io_wait_loop_sigio_rt: ignoring event 41 on fd 25 (fm->fd=-1, fm->data=0x406c5258)
Jun 25 16:30:11 SAM-IP ser[23889]: Reply Route: 487 - <Request Terminated> ip <10.45.10.36:33110> From <sip:10242 at 10.45.8.249> To <sip:10240 at 10.45.8.249>
Jun 25 16:30:11 SAM-IP ser[23890]: ERROR:core:io_wait_loop_sigio_rt: ignoring event 41 on fd 24 (fm->fd=-1, fm->data=0x406d5370)
Jun 25 16:30:11 SAM-IP ser[23891]: ERROR:core:tcp_read: error reading: Connection reset by peer
Jun 25 16:30:11 SAM-IP ser[23891]: ERROR:core:tcp_read_req: failed to read

**********************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message
by anyone else is unauthorized. If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message inerror.

**********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20080725/1f4b018a/attachment.htm>


More information about the sr-users mailing list