[OpenSER-Devel] another tcp problem

Juha Heinanen jh at tutpro.com
Sun Oct 28 08:24:38 UTC 2007


i did some more openser trunk tcp tests.  tcp works ok if openser routes
a request from outside to a tcp registered ua.

the problem appears when request to a tcp connected ua or to a tcp
connected other openser is issued via t_uac_dlg.

in that case, debug does not show any error messages and the last debug
line is:

Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: core:tcp_send: c=0xb38c57a8, n=8 

but nothing happens, i.e., wireshark does not show any packets coming
out from the proxy and it looks like the process handling t_uac_dlg
never terminates.  by the way, is there a way to figure out is an
openser process is currently handling a request or if it is idle?

i did this test using a click-to-dial application by trying to
click-to-dial to a tcp registered nokia phone.  if i register using udp,
t_uac_dlg works without problems.

full debug is below.

-- juha

Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: mi_xmlrpc:default_method: starting up..... 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: mi_xmlrpc:default_method: done looking the mi command. 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: mi_xmlrpc:default_method: done parsing the mi tree. 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: core:grep_sock_info: checking if host==us: 13==13 &&  [192.98.101.10] == [192.98.101.10] 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: core:grep_sock_info: checking if port 5060 matches port 5060 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: core:parse_headers: flags=ffffffffffffffff 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: core:parse_to: end of header reached, state=10 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: core:parse_to: display={}, ruri={sip:jh at foobar.com} 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: core:get_hdr_field: <To> [21]; uri=[sip:jh at foobar.com]  
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: core:get_hdr_field: to body [<sip:jh at foobar.com>^M ] 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: core:get_hdr_field: cseq <CSeq>: <1> <INVITE> 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: core:parse_to_param: tag=47243ff84ac5f 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: core:parse_to: end of header reached, state=29 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: core:parse_to: display={}, ruri={sip:www-data at foobar.com} 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: tm:get_hfblock: one more hf processed 
Oct 28 09:53:28 foobar last message repeated 2 times
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: tm:t_uac: next_hop=<sip:192.98.101.3:34110;transport=TCP> 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: core:mk_proxy: doing DNS lookup... 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: tm:dlg2hash: 42214 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: tm:print_request_uri: sip:jh at 192.168.0.12;transport=TCP 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: core:tcp_send: tcp connection found (0xb38c57a8), acquiring fd 
Oct 28 09:53:28 foobar /usr/sbin/openser[10776]: core:tcp_send: c= 0xb38c57a8, n=8 




More information about the Devel mailing list