From: Jody M. <si...@mo...> - 2004-08-18 17:26:49
|
I'm trying to get siproxd to work as a proxy between a Mitel 5055 phone on a private network and an Asterisk server on the Internet. Here is my test setup: +-----------------------+ | 5055 Phone, ext. 1000 | +-----------------------+ |.9 |192.168.90.0/24 (private network) | |.1 +-------------------+ | Gateway (siproxd) | +-------------------+ |.5 | |205.233.218.0/25 .14+-----------------------+ +------------------------| 5055 Phone, ext. 1002 | | +-----------------------+ |.10 +----------+ | Asterisk | +----------+ Ext. 1000 registers with siproxd and uses siproxd as a proxy. Siproxd in turn uses Asterisk as a proxy. When I dial 1002 from ext. 1000, ext. 1002 rings. When I answer, no connection is made, and ext. 1002 rings again a few seconds later. tcpdump on the internal network shows only packets from ext. 1000, none from siproxd, e.g. 12:14:45.688449 192.168.90.9.5060 > 192.168.90.1.5060: udp 704 12:14:46.237597 192.168.90.9.5060 > 192.168.90.1.5060: udp 704 12:14:47.287526 192.168.90.9.5060 > 192.168.90.1.5060: udp 704 12:14:49.337487 192.168.90.9.5060 > 192.168.90.1.5060: udp 704 12:14:53.387489 192.168.90.9.5060 > 192.168.90.1.5060: udp 704 12:14:57.257638 192.168.90.9.5060 > 192.168.90.1.5060: udp 365 12:14:57.807521 192.168.90.9.5060 > 192.168.90.1.5060: udp 365 12:14:58.864287 192.168.90.9.5060 > 192.168.90.1.5060: udp 365 12:15:00.922289 192.168.90.9.5060 > 192.168.90.1.5060: udp 365 tcpdump on the external network from the gateway shows a fair amount of traffic between Asterisk and the gateway, e.g. 12:53:08.096222 205.233.218.5.5060 > 205.233.218.10.5060: udp 809 (DF) 12:53:08.096433 205.233.218.10.5060 > 205.233.218.5.5060: udp 442 (DF) 12:53:08.080950 205.233.218.10.5060 > 205.233.218.5.5060: udp 443 (DF) 12:53:08.627450 205.233.218.5.5060 > 205.233.218.10.5060: udp 809 (DF) 12:53:08.627955 205.233.218.10.5060 > 205.233.218.5.5060: udp 442 (DF) 12:53:09.685765 205.233.218.5.5060 > 205.233.218.10.5060: udp 809 (DF) 12:53:09.686264 205.233.218.10.5060 > 205.233.218.5.5060: udp 442 (DF) 12:53:09.857811 205.233.218.10.5060 > 205.233.218.5.5060: udp 715 (DF) 12:53:10.365812 205.233.218.10.15838 > 205.233.218.5.7070: udp 172 (DF) [...] 12:53:15.845776 205.233.218.10.15838 > 205.233.218.5.7070: udp 172 (DF) 12:53:15.863486 205.233.218.5.5060 > 205.233.218.10.5060: udp 809 (DF) 12:53:15.864133 205.233.218.10.5060 > 205.233.218.5.5060: udp 715 (DF) (traffic between Asterix and ext. 1002 is not shown because this is a switched network) tcpdump on Asterisk shows that ext. 1002 is responding: 13:05:15.661738 IP 205.233.218.5.5060 > 205.233.218.10.5060: UDP, length 809 13:05:15.662196 IP 205.233.218.10.5060 > 205.233.218.5.5060: UDP, length 442 13:05:15.662877 IP 205.233.218.10.5060 > 205.233.218.14.5060: UDP, length 749 13:05:15.663012 IP 205.233.218.10.5060 > 205.233.218.5.5060: UDP, length 443 13:05:15.735000 IP 205.233.218.14.5060 > 205.233.218.10.5060: UDP, length 353 13:05:15.736693 IP 205.233.218.14.5060 > 205.233.218.10.5060: UDP, length 354 13:05:16.204154 IP 205.233.218.5.5060 > 205.233.218.10.5060: UDP, length 809 13:05:16.204206 IP 205.233.218.10.5060 > 205.233.218.5.5060: UDP, length 442 13:05:17.255575 IP 205.233.218.5.5060 > 205.233.218.10.5060: UDP, length 809 13:05:17.255674 IP 205.233.218.10.5060 > 205.233.218.5.5060: UDP, length 442 13:05:19.055489 IP 205.233.218.14.5060 > 205.233.218.10.5060: UDP, length 703 13:05:19.055655 IP 205.233.218.10.5060 > 205.233.218.14.5060: UDP, length 383 13:05:19.055873 IP 205.233.218.10.5060 > 205.233.218.5.5060: UDP, length 715 13:05:19.128410 IP 205.233.218.14.20056 > 205.233.218.10.18332: UDP, length 172 [...] So the problem really seems to be siproxd not relaying the connection back to ext. 1000. I have uploaded a log of one call attempt with full debugging to http://modernduck.com/temp/siproxd.debug.1 . Relevant times: 13:03:25: dialed 1002 from 1000 13:03:27: Answer from 1002 13:03:34: 1002 shows the call as dropped 13:03:36: hangup on 1000 My configuration is at http://modernduck.com/temp/siproxd.conf . Any suggestions on things to try? Thanks, Jody -- |