Re: Can't get siproxd to work
Jody McIntyre <[email protected]> Fri, 27 Aug 2004 15:45:49 -0400
| Newsgroups | gmane.network.siproxd |
|---|---|
| Message-ID | <[email protected]> |
Thanks for the reply. On Thu, Aug 26, 2004 at 07:29:57PM +0200, Thomas Ries wrote: > 1) You may want to put in the correct access control mask into the > configuration: > > hosts_allow_sip = 205.233.128.0/24 > > should *probably* be: 205.233.218.0/24 (218 instead of 128) You're right. I was actually looking at things this morning again and noticed that. > 2) Why does phone 1000 send an INVITE to [email protected] ?? > 1002 is supposed to be registered at the asterisk server, which > then should be called as 1002-2oA/[email protected] I'm just dialing "1002" on the phone, which apparently sends the wrong thing. It does ring the phone though. > 3) The phone 1000 must have the public side IP configured as domain > part of it's SIP URI (can be seen in a sent INVITE request, e.g. > at 13:03:27 of your debugfile). > As "From" header it shows "sip:[email protected]", however this must > contain the public (outbound) IP of siproxd "sip:user-2oA/[email protected]" - > otherwise incoming calls will not work properly. > On some phones you simply cannot configure the domain part independently > from the registration server - if this the case you must use the > mask_host feature of siproxd to correct the header fields properly. OK, the phone does actually offer this feature, but it's called "Bypass Firewall NAT" at the bottom of the "SIP Configuration" page. Unfortunately the feature does not work as it should. Instead, the From: address still ends up as sip:[email protected] and the Contact: becomes sip:user-2oA/[email protected] Fortunately the mask_host feature does fix the problem. I still can't connect back through siproxd. I tried dial by URL: sip:1005-2oA/[email protected] from extension 1002 (the phone on the internal network is now extension 1005 not 1000). siproxd does not recognize the URL and treats it as an attempted outgoing call, which of course does not work. A log is attached. Any suggestions? Thanks, Jody > > > Regards, > /Thomas > > ###################################################################### >
siproxd.log
(text/plain, 13.5 KB)
[...] 15:40:32 register.c:456 sip_agemap, t=1093635632 15:40:33 siproxd.c:259 back from sip_wait 15:40:33 sock.c:125 received UDP packet from 205.233.218.14, count=728 ---BUFFER DUMP follows--- 49 4e 56 49 54 45 20 73 69 70 3a 31 30 30 35 40 INVITE sip:1005@ 32 30 35 2e 32 33 33 2e 32 31 38 2e 35 20 53 49 205.233.218.5 SI 50 2f 32 2e 30 0d 0a 56 69 61 3a 53 49 50 2f 32 P/2.0..Via:SIP/2 2e 30 2f 55 44 50 20 32 30 35 2e 32 33 33 2e 32 .0/UDP 205.233.2 31 38 2e 31 34 3a 35 30 36 30 0d 0a 46 72 6f 6d 18.14:5060..From 3a 22 4a 6f 64 79 20 28 31 30 30 32 29 22 20 3c :"Jody (1002)" < 73 69 70 3a 31 30 30 32 40 32 30 35 2e 32 33 33 sip:[email protected] 2e 32 31 38 2e 31 30 3e 3b 74 61 67 3d 34 31 32 .218.10>;tag=412 66 35 35 66 65 2d 31 30 30 2d 35 61 33 36 36 32 f55fe-100-5a3662 33 39 0d 0a 54 6f 3a 3c 73 69 70 3a 31 30 30 35 39..To:<sip:1005 40 32 30 35 2e 32 33 33 2e 32 31 38 2e 35 3e 0d @205.233.218.5>. 0a 43 6f 6e 74 61 63 74 3a 22 4a 6f 64 79 20 28 .Contact:"Jody ( 31 30 30 32 29 22 20 3c 73 69 70 3a 31 30 30 32 1002)" <sip:1002 40 32 30 35 2e 32 33 33 2e 32 31 38 2e 31 34 3e @205.233.218.14> 0d 0a 43 61 6c 6c 2d 49 44 3a 35 35 66 65 30 30 ..Call-ID:55fe00 30 30 2d 36 33 35 39 62 31 35 61 40 32 30 35 2e 00-6359b15a@205. 32 33 33 2e 32 31 38 2e 31 34 0d 0a 53 75 62 6a 233.218.14..Subj 65 63 74 3a 73 69 70 20 70 68 6f 6e 65 20 63 61 ect:sip phone ca 6c 6c 0d 0a 43 53 65 71 3a 32 20 49 4e 56 49 54 ll..CSeq:2 INVIT 45 0d 0a 55 73 65 72 2d 41 67 65 6e 74 3a 4d 69 E..User-Agent:Mi 74 65 6c 2d 35 30 35 35 2d 53 49 50 2d 50 68 6f tel-5055-SIP-Pho 6e 65 20 32 2e 30 2e 31 2e 32 33 20 30 38 30 30 ne 2.0.1.23 0800 30 46 30 45 36 42 37 31 0d 0a 41 6c 6c 6f 77 3a 0F0E6B71..Allow: 49 4e 56 49 54 45 2c 41 43 4b 2c 43 41 4e 43 45 INVITE,ACK,CANCE 4c 2c 42 59 45 2c 4f 50 54 49 4f 4e 53 2c 52 45 L,BYE,OPTIONS,RE 46 45 52 2c 4e 4f 54 49 46 59 0d 0a 4d 61 78 2d FER,NOTIFY..Max- 46 6f 72 77 61 72 64 73 3a 37 30 0d 0a 43 6f 6e Forwards:70..Con 74 65 6e 74 2d 54 79 70 65 3a 61 70 70 6c 69 63 tent-Type:applic 61 74 69 6f 6e 2f 73 64 70 0d 0a 43 6f 6e 74 65 ation/sdp..Conte 6e 74 2d 4c 65 6e 67 74 68 3a 32 34 37 0d 0a 0d nt-Length:247... 0a 76 3d 30 0d 0a 6f 3d 31 30 30 32 20 31 30 39 .v=0..o=1002 109 33 36 32 31 35 30 33 20 31 30 39 33 36 32 31 35 3621503 10936215 30 32 20 49 4e 20 49 50 34 20 32 30 35 2e 32 33 02 IN IP4 205.23 33 2e 32 31 38 2e 31 34 0d 0a 73 3d 53 49 50 20 3.218.14..s=SIP 43 61 6c 6c 0d 0a 63 3d 49 4e 20 49 50 34 20 32 Call..c=IN IP4 2 30 35 2e 32 33 33 2e 32 31 38 2e 31 34 0d 0a 74 05.233.218.14..t 3d 30 20 30 0d 0a 6d 3d 61 75 64 69 6f 20 32 30 =0 0..m=audio 20 30 30 34 20 52 54 50 2f 41 56 50 20 30 20 38 20 004 RTP/AVP 0 8 31 38 20 39 36 0d 0a 61 3d 72 74 70 6d 61 70 3a 18 96..a=rtpmap: 30 20 50 43 4d 55 2f 38 30 30 30 0d 0a 61 3d 72 0 PCMU/8000..a=r 74 70 6d 61 70 3a 38 20 50 43 4d 41 2f 38 30 30 tpmap:8 PCMA/800 30 0d 0a 61 3d 72 74 70 6d 61 70 3a 31 38 20 47 0..a=rtpmap:18 G 37 32 39 2f 38 30 30 30 0d 0a 61 3d 72 74 70 6d 729/8000..a=rtpm 61 70 3a 39 36 20 74 65 6c 65 70 68 6f 6e 65 2d ap:96 telephone- 65 76 65 6e 74 2f 38 30 30 30 0d 0a 61 3d 73 65 event/8000..a=se 6e 64 72 65 63 76 0d 0a ndrecv.. ---end of BUFFER DUMP--- 15:40:33 accessctl.c:53 deny list (SIP):*NULL* 15:40:33 accessctl.c:55 allow list (SIP):205.233.218.0/24 15:40:33 accessctl.c:57 allow list (REG):192.168.90.0/24 15:40:33 accessctl.c:152 [0] extracted address=205.233.218.0 15:40:33 accessctl.c:153 [0] extracted mask =24 15:40:33 utils.c:101 cleaning DNS cache (entry 0) 15:40:33 utils.c:101 cleaning DNS cache (entry 1) 15:40:33 utils.c:101 cleaning DNS cache (entry 2) 15:40:33 utils.c:101 cleaning DNS cache (entry 3) 15:40:33 utils.c:101 cleaning DNS cache (entry 4) 15:40:33 utils.c:193 DNS lookup - resolved: 205.233.218.0 -> 205.233.218.0 15:40:33 utils.c:213 DNS lookup - store into cache, entry 0) 15:40:33 accessctl.c:169 [0] (0xcde9da00) <-> (0xcde9da00) 15:40:33 accessctl.c:80 granted SIP access 15:40:33 accessctl.c:152 [0] extracted address=192.168.90.0 15:40:33 accessctl.c:153 [0] extracted mask =24 15:40:33 utils.c:193 DNS lookup - resolved: 192.168.90.0 -> 192.168.90.0 15:40:33 utils.c:213 DNS lookup - store into cache, entry 1) 15:40:33 accessctl.c:169 [0] (0xc0a85a00) <-> (0xcde9da00) 15:40:33 security.c:48 security_check_raw: size=728 15:40:33 siproxd.c:325 checking Max-Forwards (=70) 15:40:33 siproxd.c:371 received SIP type REQ:INVITE 15:40:33 utils.c:335 cleaning ifaddr cache (entry 0) 15:40:33 utils.c:335 cleaning ifaddr cache (entry 1) 15:40:33 utils.c:388 get_ip_by_ifname: if eth0 has IP:205.233.218.5 (flags=1043) UP 15:40:33 utils.c:408 ifname lookup - store into cache, entry 0) 15:40:33 proxy.c:91 proxy_request 15:40:33 utils.c:193 DNS lookup - resolved: 192.168.90.9 -> 192.168.90.9 15:40:33 utils.c:213 DNS lookup - store into cache, entry 2) 15:40:33 proxy.c:201 proxy_request: reghost:192.168.90.9 ip:205.233.218.14 15:40:33 sip_utils.c:264 comparing urls: sip:1005-2oA/[email protected] -> sip:[email protected] 15:40:33 utils.c:193 DNS lookup - resolved: 205.233.218.5 -> 205.233.218.5 15:40:33 utils.c:213 DNS lookup - store into cache, entry 3) 15:40:33 utils.c:193 DNS lookup - resolved: 192.168.90.1 -> 192.168.90.1 15:40:33 utils.c:213 DNS lookup - store into cache, entry 4) 15:40:33 sip_utils.c:309 compare_url: IP mismatch 15:40:33 sip_utils.c:264 comparing urls: sip:1005-2oA/[email protected] -> sip:[email protected] 15:40:33 utils.c:114 DNS lookup - from cache: 205.233.218.5 -> 205.233.218.5 15:40:33 utils.c:114 DNS lookup - from cache: 192.168.90.1 -> 192.168.90.1 15:40:33 sip_utils.c:309 compare_url: IP mismatch 15:40:33 sip_utils.c:264 comparing urls: sip:1005-2oA/[email protected] -> sip:[email protected] 15:40:33 utils.c:114 DNS lookup - from cache: 205.233.218.5 -> 205.233.218.5 15:40:33 utils.c:114 DNS lookup - from cache: 192.168.90.1 -> 192.168.90.1 15:40:33 sip_utils.c:309 compare_url: IP mismatch 15:40:33 sip_utils.c:264 comparing urls: sip:1005-2oA/[email protected] -> sip:[email protected] 15:40:33 utils.c:114 DNS lookup - from cache: 205.233.218.5 -> 205.233.218.5 15:40:33 utils.c:114 DNS lookup - from cache: 192.168.90.1 -> 192.168.90.1 15:40:33 sip_utils.c:309 compare_url: IP mismatch 15:40:33 INFO:proxy.c:260 Outgoing Call from: 1002-2oA/[email protected] 15:40:33 proxy.c:394 request [INVITE] from/to unregistered UA (RQ: 1002-2oA/[email protected] -> 1005-2oA/[email protected]) 15:40:33 sock.c:164 send UDP packet to 205.233.218.14: 5060 ---BUFFER DUMP follows--- 53 49 50 2f 32 2e 30 20 34 30 38 20 52 65 71 75 SIP/2.0 408 Requ 65 73 74 20 54 69 6d 65 6f 75 74 0d 0a 56 69 61 est Timeout..Via 3a 20 53 49 50 2f 32 2e 30 2f 55 44 50 20 32 30 : SIP/2.0/UDP 20 35 2e 32 33 33 2e 32 31 38 2e 31 34 3a 35 30 36 5.233.218.14:506 30 0d 0a 46 72 6f 6d 3a 20 22 4a 6f 64 79 20 28 0..From: "Jody ( 31 30 30 32 29 22 20 3c 73 69 70 3a 31 30 30 32 1002)" <sip:1002 40 32 30 35 2e 32 33 33 2e 32 31 38 2e 31 30 3e @205.233.218.10> 3b 74 61 67 3d 34 31 32 66 35 35 66 65 2d 31 30 ;tag=412f55fe-10 30 2d 35 61 33 36 36 32 33 39 0d 0a 54 6f 3a 20 0-5a366239..To: 3c 73 69 70 3a 31 30 30 35 40 32 30 35 2e 32 33 <sip:[email protected] 33 2e 32 31 38 2e 35 3e 0d 0a 43 61 6c 6c 2d 49 3.218.5>..Call-I 44 3a 20 35 35 66 65 30 30 30 30 2d 36 33 35 39 D: 55fe0000-6359 62 31 35 61 40 32 30 35 2e 32 33 33 2e 32 31 38 b15a-2oA/[email protected] 2e 31 34 0d 0a 43 53 65 71 3a 20 32 20 49 4e 56 .14..CSeq: 2 INV 49 54 45 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e ITE..Content-Len 67 74 68 3a 20 30 0d 0a 0d 0a gth: 0.... ---end of BUFFER DUMP--- 15:40:33 siproxd.c:238 going into sip_wait 15:40:33 siproxd.c:259 back from sip_wait 15:40:33 sock.c:125 received UDP packet from 205.233.218.14, count=369 ---BUFFER DUMP follows--- 41 43 4b 20 73 69 70 3a 31 30 30 35 40 32 30 35 ACK sip:1005@205 2e 32 33 33 2e 32 31 38 2e 35 20 53 49 50 2f 32 .233.218.5 SIP/2 2e 30 0d 0a 56 69 61 3a 53 49 50 2f 32 2e 30 2f .0..Via:SIP/2.0/ 55 44 50 20 32 30 35 2e 32 33 33 2e 32 31 38 2e UDP 205.233.218. 31 34 3a 35 30 36 30 0d 0a 46 72 6f 6d 3a 22 4a 14:5060..From:"J 6f 64 79 20 28 31 30 30 32 29 22 20 3c 73 69 70 ody (1002)" <sip 3a 31 30 30 32 40 32 30 35 2e 32 33 33 2e 32 31 :1002-2oA/[email protected] 38 2e 31 30 3e 3b 74 61 67 3d 34 31 32 66 35 35 8.10>;tag=412f55 66 65 2d 31 30 30 2d 35 61 33 36 36 32 33 39 0d fe-100-5a366239. 0a 54 6f 3a 3c 73 69 70 3a 31 30 30 35 40 32 30 .To:<sip:1005@20 35 2e 32 33 33 2e 32 31 38 2e 35 3e 0d 0a 43 6f 5.233.218.5>..Co 6e 74 61 63 74 3a 22 4a 6f 64 79 20 28 31 30 30 ntact:"Jody (100 32 29 22 20 3c 73 69 70 3a 31 30 30 32 40 32 30 2)" <sip:1002@20 35 2e 32 33 33 2e 32 31 38 2e 31 34 3e 0d 0a 43 5.233.218.14>..C 61 6c 6c 2d 49 44 3a 35 35 66 65 30 30 30 30 2d all-ID:55fe0000- 36 33 35 39 62 31 35 61 40 32 30 35 2e 32 33 33 [email protected] 2e 32 31 38 2e 31 34 0d 0a 43 53 65 71 3a 32 20 .218.14..CSeq:2 41 43 4b 0d 0a 55 73 65 72 2d 41 67 65 6e 74 3a ACK..User-Agent: 4d 69 74 65 6c 2d 35 30 35 35 2d 53 49 50 2d 50 Mitel-5055-SIP-P 68 6f 6e 65 20 32 2e 30 2e 31 2e 32 33 20 30 38 hone 2.0.1.23 08 30 30 30 46 30 45 36 42 37 31 0d 0a 4d 61 78 2d 000F0E6B71..Max- 46 6f 72 77 61 72 64 73 3a 37 30 0d 0a 43 6f 6e Forwards:70..Con 74 65 6e 74 2d 4c 65 6e 67 74 68 3a 30 0d 0a 0d tent-Length:0... 0a . ---end of BUFFER DUMP--- 15:40:33 accessctl.c:53 deny list (SIP):*NULL* 15:40:33 accessctl.c:55 allow list (SIP):205.233.218.0/24 15:40:33 accessctl.c:57 allow list (REG):192.168.90.0/24 15:40:33 accessctl.c:152 [0] extracted address=205.233.218.0 15:40:33 accessctl.c:153 [0] extracted mask =24 15:40:33 utils.c:114 DNS lookup - from cache: 205.233.218.0 -> 205.233.218.0 15:40:33 accessctl.c:169 [0] (0xcde9da00) <-> (0xcde9da00) 15:40:33 accessctl.c:80 granted SIP access 15:40:33 accessctl.c:152 [0] extracted address=192.168.90.0 15:40:33 accessctl.c:153 [0] extracted mask =24 15:40:33 utils.c:114 DNS lookup - from cache: 192.168.90.0 -> 192.168.90.0 15:40:33 accessctl.c:169 [0] (0xc0a85a00) <-> (0xcde9da00) 15:40:33 security.c:48 security_check_raw: size=369 15:40:33 siproxd.c:325 checking Max-Forwards (=70) 15:40:33 siproxd.c:371 received SIP type REQ:ACK 15:40:33 utils.c:350 ifaddr lookup - from cache: eth0 -> 205.233.218.5 UP 15:40:33 proxy.c:91 proxy_request 15:40:33 utils.c:114 DNS lookup - from cache: 192.168.90.9 -> 192.168.90.9 15:40:33 proxy.c:201 proxy_request: reghost:192.168.90.9 ip:205.233.218.14 15:40:33 sip_utils.c:264 comparing urls: sip:1005-2oA/[email protected] -> sip:[email protected] 15:40:33 utils.c:114 DNS lookup - from cache: 205.233.218.5 -> 205.233.218.5 15:40:33 utils.c:114 DNS lookup - from cache: 192.168.90.1 -> 192.168.90.1 15:40:33 sip_utils.c:309 compare_url: IP mismatch 15:40:33 sip_utils.c:264 comparing urls: sip:1005-2oA/[email protected] -> sip:[email protected] 15:40:33 utils.c:114 DNS lookup - from cache: 205.233.218.5 -> 205.233.218.5 15:40:33 utils.c:114 DNS lookup - from cache: 192.168.90.1 -> 192.168.90.1 15:40:33 sip_utils.c:309 compare_url: IP mismatch 15:40:33 sip_utils.c:264 comparing urls: sip:1005-2oA/[email protected] -> sip:[email protected] 15:40:33 utils.c:114 DNS lookup - from cache: 205.233.218.5 -> 205.233.218.5 15:40:33 utils.c:114 DNS lookup - from cache: 192.168.90.1 -> 192.168.90.1 15:40:33 sip_utils.c:309 compare_url: IP mismatch 15:40:33 sip_utils.c:264 comparing urls: sip:1005-2oA/[email protected] -> sip:[email protected] 15:40:33 utils.c:114 DNS lookup - from cache: 205.233.218.5 -> 205.233.218.5 15:40:33 utils.c:114 DNS lookup - from cache: 192.168.90.1 -> 192.168.90.1 15:40:33 sip_utils.c:309 compare_url: IP mismatch 15:40:33 proxy.c:394 request [ACK] from/to unregistered UA (RQ: 1002-2oA/[email protected] -> 1005-2oA/[email protected]) 15:40:33 sock.c:164 send UDP packet to 205.233.218.14: 5060 ---BUFFER DUMP follows--- 53 49 50 2f 32 2e 30 20 34 30 38 20 52 65 71 75 SIP/2.0 408 Requ 65 73 74 20 54 69 6d 65 6f 75 74 0d 0a 56 69 61 est Timeout..Via 3a 20 53 49 50 2f 32 2e 30 2f 55 44 50 20 32 30 : SIP/2.0/UDP 20 35 2e 32 33 33 2e 32 31 38 2e 31 34 3a 35 30 36 5.233.218.14:506 30 0d 0a 46 72 6f 6d 3a 20 22 4a 6f 64 79 20 28 0..From: "Jody ( 31 30 30 32 29 22 20 3c 73 69 70 3a 31 30 30 32 1002)" <sip:1002 40 32 30 35 2e 32 33 33 2e 32 31 38 2e 31 30 3e @205.233.218.10> 3b 74 61 67 3d 34 31 32 66 35 35 66 65 2d 31 30 ;tag=412f55fe-10 30 2d 35 61 33 36 36 32 33 39 0d 0a 54 6f 3a 20 0-5a366239..To: 3c 73 69 70 3a 31 30 30 35 40 32 30 35 2e 32 33 <sip:[email protected] 33 2e 32 31 38 2e 35 3e 0d 0a 43 61 6c 6c 2d 49 3.218.5>..Call-I 44 3a 20 35 35 66 65 30 30 30 30 2d 36 33 35 39 D: 55fe0000-6359 62 31 35 61 40 32 30 35 2e 32 33 33 2e 32 31 38 b15a-2oA/[email protected] 2e 31 34 0d 0a 43 53 65 71 3a 20 32 20 41 43 4b .14..CSeq: 2 ACK 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 74 68 ..Content-Length 3a 20 30 0d 0a 0d 0a : 0.... ---end of BUFFER DUMP--- 15:40:34 siproxd.c:238 going into sip_wait