Brian Wilson
2016-May-31 17:20 UTC
[asterisk-users] __sip_xmit Returned -1 Invalid Argument
I've been getting slammed with these messages on my console lately. ed -1: Invalid argument [2016-05-31 10:09:40] WARNING[16249]: chan_sip.c:3775 __sip_xmit: sip_xmit of 0x7f05140803f0 (len 559) to 192.168.1.45:0 returned -1: Invalid argument [2016-05-31 10:09:40] WARNING[16249]: chan_sip.c:3775 __sip_xmit: sip_xmit of 0x7f05140803f0 (len 559) to 192.168.1.45:0 returned -1: Invalid argument [ etc etc etc comes in bunches of about 10, all with same IP address in that bunch. Does not appear to be related to one phone -- I have a mix of devices. They appear to happen when a phone registers. The debug message "Invalid argument" is not helping me, I wish it were more descriptive. I peeked at the code and there is no indication what __sip_xmit() does (like all Asterisk code I have looked at so far), looks like it might do MANY things. It does not appear to be tied to one version, I have tried 13.7.2, 13.8.0, 13.9.1 I don't see anything glaring when I "sip set debug on" and "core set debug 10" -- just more messages that I don't understand. Like this ---------------------- --- [2016-05-31 10:10:39] WARNING[16249]: chan_sip.c:3775 __sip_xmit: sip_xmit of 0x7f0514050430 (len 559) to 192.168.1.45:0 returned -1: Invalid argument Retransmitting #5 (no NAT) to 192.168.1.45:0: NOTIFY sip:spa2000 at 192.168.1.45:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK0d196419 Max-Forwards: 70 From: "asterisk" <sip:asterisk at 192.168.1.2>;tag=as522feace To: <sip:spa2000 at 192.168.1.45:5060> Contact: <sip:asterisk at 192.168.1.2:5060> Call-ID: 0d6963aa7350ce3274e7af420c35daa6 at 192.168.1.2:5060 CSeq: 102 NOTIFY User-Agent: Asterisk PBX 13.9.1 Event: message-summary Content-Type: application/simple-message-summary Content-Length: 91 Messages-Waiting: no Message-Account: sip:asterisk at 192.168.1.2 Voice-Message: 0/0 (0/0) ------ I am guessing this is some apparently unrelated and undocumented side effect of a setting I have changed recently but have not been successful chasing it down so far. I have this happening on two different servers now. -- Brian Wilson Wildsong 707-827-0001 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160531/4cf1fa60/attachment.html>
Joshua Colp
2016-May-31 19:27 UTC
[asterisk-users] __sip_xmit Returned -1 Invalid Argument
Brian Wilson wrote:> I've been getting slammed with these messages on my console lately. > > ed -1: Invalid argument > [2016-05-31 10:09:40] WARNING[16249]: chan_sip.c:3775 __sip_xmit: > sip_xmit of 0x7f05140803f0 (len 559) to 192.168.1.45:0 > <http://192.168.1.45:0> returned -1: Invalid argument > [2016-05-31 10:09:40] WARNING[16249]: chan_sip.c:3775 __sip_xmit: > sip_xmit of 0x7f05140803f0 (len 559) to 192.168.1.45:0 > <http://192.168.1.45:0> returned -1: Invalid argumentIt's an invalid argument because the port appears to be 0, which won't work. How it got to be that I don't know... a full log may provide further enlightenment. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org