Summary: | ASTERISK-00913: When host=dynamic and mailbox=## in config chan_sip::__sip_xmit gives error | ||
Reporter: | geertn (geertn) | Labels: | |
Date Opened: | 2004-01-26 08:28:00.000-0600 | Date Closed: | 2004-09-25 02:55:01 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | When having the config as follows: [geert] type=friend context=from-internal host=dynamic qualify=yes pickupgroup=2 callgroup=2 mailbox=312 dtmfmode=rfc2833 canreinvite=no ; Cisco poops on reinvite sometimes callerid="Geert Nijpels" <312> Asterisk gives the error when starting up: Jan 26 15:07:02 WARNING[6151]: chan_sip.c:446 __sip_xmit: sip_xmit of 0x80e90fc (len 441) to 0.0.0.0 returned -1: Invalid argument My guess is that Asterisk sends the MWI information before a peer is registered. When a peer hasn't registered, no IP information is known and asterisk will send it to 0.0.0.0 which is impossible. I tried coming up with a fix, but I'm not very good at C and asterisk is an unknown project for me. The sip debug message: NOTIFY sip:henk@0.0.0.0:0 SIP/2.0 Via: SIP/2.0/UDP 193.194.136.137:5060;branch=z9hG4bK7a6d8d3c From: "asterisk" <sip:asterisk@193.194.136.137>;tag=as4b588f54 To: <sip:henk@0.0.0.0:0> Contact: <sip:asterisk@193.194.136.137> Call-ID: 32fff902684a481a579478fe749abb43@193.194.136.137 CSeq: 102 NOTIFY User-Agent: Asterisk PBX Event: message-summary Content-Type: text/plain Content-Length: 36 Messages-Waiting: no Voicemail: 0/0 to 0.0.0.0:0 | ||
Comments: | By: geertn (geertn) 2004-01-26 09:05:53.000-0600 Sorry, this does not only happen when starting up asterisk. It also happens when I call a phone that's not registered. sip show peers: henk/henk (Unspecified) (D) 255.255.255.255 0 UNKNOWN Sip debug shows repeatedly transmitting to 0.0.0.0 address: INVITE sip:henk@0.0.0.0:0 SIP/2.0 Via: SIP/2.0/UDP 193.194.136.137:5060;branch=z9hG4bK2c0990ed From: "Geert Nijpels2" <sip:313@193.194.136.137>;tag=as3af5c49b To: <sip:henk@0.0.0.0:0> Contact: <sip:313@193.194.136.137> Call-ID: 201dff8405b089407673b47c694bab1e@193.194.136.137 CSeq: 102 INVITE User-Agent: Asterisk PBX Date: Mon, 26 Jan 2004 14:46:44 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Content-Type: application/sdp Content-Length: 217 v=0 o=root 8164 8164 IN IP4 193.194.136.137 s=session c=IN IP4 193.194.136.137 t=0 0 m=audio 13666 RTP/AVP 0 8 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 (no NAT) to 0.0.0.0:0 INVITE sip:henk@0.0.0.0:0 SIP/2.0 Via: SIP/2.0/UDP 193.194.136.137:5060;branch=z9hG4bK2c0990ed From: "Geert Nijpels2" <sip:313@193.194.136.137>;tag=as3af5c49b To: <sip:henk@0.0.0.0:0> Contact: <sip:313@193.194.136.137> Call-ID: 201dff8405b089407673b47c694bab1e@193.194.136.137 CSeq: 102 INVITE User-Agent: Asterisk PBX Date: Mon, 26 Jan 2004 14:46:44 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Content-Type: application/sdp Content-Length: 217 v=0 o=root 8164 8164 IN IP4 193.194.136.137 s=session c=IN IP4 193.194.136.137 t=0 0 m=audio 13666 RTP/AVP 0 8 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 to 0.0.0.0:0 INVITE sip:henk@0.0.0.0:0 SIP/2.0 Via: SIP/2.0/UDP 193.194.136.137:5060;branch=z9hG4bK2c0990ed From: "Geert Nijpels2" <sip:313@193.194.136.137>;tag=as3af5c49b To: <sip:henk@0.0.0.0:0> Contact: <sip:313@193.194.136.137> Call-ID: 201dff8405b089407673b47c694bab1e@193.194.136.137 CSeq: 102 INVITE User-Agent: Asterisk PBX Date: Mon, 26 Jan 2004 14:46:44 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Content-Type: application/sdp Content-Length: 217 v=0 o=root 8164 8164 IN IP4 193.194.136.137 s=session c=IN IP4 193.194.136.137 t=0 0 m=audio 13666 RTP/AVP 0 8 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 to 0.0.0.0:0 INVITE sip:henk@0.0.0.0:0 SIP/2.0 Via: SIP/2.0/UDP 193.194.136.137:5060;branch=z9hG4bK2c0990ed From: "Geert Nijpels2" <sip:313@193.194.136.137>;tag=as3af5c49b To: <sip:henk@0.0.0.0:0> Contact: <sip:313@193.194.136.137> Call-ID: 201dff8405b089407673b47c694bab1e@193.194.136.137 CSeq: 102 INVITE User-Agent: Asterisk PBX Date: Mon, 26 Jan 2004 14:46:44 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Content-Type: application/sdp Content-Length: 217 v=0 o=root 8164 8164 IN IP4 193.194.136.137 s=session c=IN IP4 193.194.136.137 t=0 0 m=audio 13666 RTP/AVP 0 8 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 to 0.0.0.0:0 INVITE sip:henk@0.0.0.0:0 SIP/2.0 Via: SIP/2.0/UDP 193.194.136.137:5060;branch=z9hG4bK2c0990ed From: "Geert Nijpels2" <sip:313@193.194.136.137>;tag=as3af5c49b To: <sip:henk@0.0.0.0:0> Contact: <sip:313@193.194.136.137> Call-ID: 201dff8405b089407673b47c694bab1e@193.194.136.137 CSeq: 102 INVITE User-Agent: Asterisk PBX Date: Mon, 26 Jan 2004 14:46:44 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Content-Type: application/sdp Content-Length: 217 v=0 o=root 8164 8164 IN IP4 193.194.136.137 s=session c=IN IP4 193.194.136.137 t=0 0 m=audio 13666 RTP/AVP 0 8 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 to 0.0.0.0:0 INVITE sip:henk@0.0.0.0:0 SIP/2.0 Via: SIP/2.0/UDP 193.194.136.137:5060;branch=z9hG4bK2c0990ed From: "Geert Nijpels2" <sip:313@193.194.136.137>;tag=as3af5c49b To: <sip:henk@0.0.0.0:0> Contact: <sip:313@193.194.136.137> Call-ID: 201dff8405b089407673b47c694bab1e@193.194.136.137 CSeq: 102 INVITE User-Agent: Asterisk PBX Date: Mon, 26 Jan 2004 14:46:44 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Content-Type: application/sdp Content-Length: 217 v=0 o=root 8164 8164 IN IP4 193.194.136.137 s=session c=IN IP4 193.194.136.137 t=0 0 m=audio 13666 RTP/AVP 0 8 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 to 0.0.0.0:0 By: robertm (robertm) 2004-01-26 09:34:55.000-0600 I see this problem as well today with CVS-01/26/04-2:13 same basic setup but am using dtmfmode=info no call groups or pickup groups By: Mark Spencer (markster) 2004-01-26 13:34:47.000-0600 Fixed in CVS |