zhzhy86 / webrtc2sip

Automatically exported from code.google.com/p/webrtc2sip
0 stars 0 forks source link

ERROR: function: "tnet_sockfd_sendto()" #112

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. compiled webrtc2sip and all libraries from source
2. configure to use voip.ms and chrome web browser with jssip
3. <debug-level>INFO</debug-level>

What is the expected output? What do you see instead?
should be able to register client with viop service provider.

get the following output instead: note sendtoa() line was added by me to locate 
error.
it appears to be failing in the tinyNET module of doubango library.
------------

SEND: REGISTER sip:atlanta.voip.ms SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:10060;branch=z9hG4bK159603;rport
From: "test"<sip:121802_test3@atlanta.voip.ms>;tag=ekbko95gf1
To: <sip:121802_test3@atlanta.voip.ms>
Contact: 
<sip:s5ooe4s1@127.0.0.1:10060;transport=udp;ws-src-ip=127.0.0.1;ws-src-port=4646
8;ws-src-proto=ws>;expires=600;reg-id=1;+sip.instance="<urn:uuid:75842416-a4e5-4
0a2-b57d-e413d7e24ba9>"
Call-ID: bu3jp1vouudugmidjsktg0
CSeq: 87 REGISTER
Content-Length: 0
Max-Forwards: 69
Allow: ACK,CANCEL,BYE,OPTIONS,INVITE,MESSAGE
Supported: path,outbound,gruu
User-Agent: JsSIP 0.3.7
Via: SIP/2.0/TCP 127.0.0.1:46468;branch=z9hG4bK159603;ws-hacked=WS

*INFO: sendtoa(12,0xb40007f8,657,0,0xb49fc90c,16) 16
***ERROR: function: "tnet_sockfd_sendto()" 
file: "src/tnet_utils.c" 
line: "1472" 
MSG: sendto() failed
***ERROR: function: "tnet_sockfd_sendto()" 
file: "src/tnet_utils.c" 
line: "1472" 
MSG: (SYSTEM)NETWORK ERROR ==>Invalid argument
***ERROR: function: "tnet_transport_sendto()" 
file: "src/tnet_transport_poll.c" 
line: "241" 
MSG: sendto have failed.
***ERROR: function: "tnet_transport_sendto()" 
file: "src/tnet_transport_poll.c" 
line: "241" 
MSG: (SYSTEM)NETWORK ERROR ==>Invalid argument
*INFO: State machine: tsip_transac_nict_Trying_2_Terminated_X_timerF
*INFO: 
------------------

What version of the product are you using? On what operating system?
sebrtc2sip version 2.5.1
ubuntu 12.04

Please provide any additional information below.

the only reason for sendto() to fail with an invalid parameter error is if the 
sockaddr size parameter is too small
as can be seen from the output, that is not the case.

Anybody else seen a similar issue to this?

Original issue reported on code.google.com by dar...@tuxit.ca on 19 Jul 2013 at 5:15

GoogleCodeExporter commented 8 years ago
https://code.google.com/p/webrtc2sip/wiki/FAQ#How_to_report_issue?

Original comment by boss...@yahoo.fr on 1 Aug 2013 at 7:32