[asterisk-users] Asterisk-beginner : cannot make phonecalls using Asterisk (update)

D Tucny d at tucny.com
Mon Apr 13 22:25:03 CDT 2009


2009/4/14 jonas kellens <jonas.kellens at telenet.be>

>
> [root at asterisk asterisk]# netstat -a -n -p | grep 5060
> udp        0      0 0.0.0.0:5060                0.0.0.0:*
> 3047/asterisk
>
>
> [root at asterisk asterisk]# /usr/sbin/tcpdump port 5060
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
> 23:04:59.522498 IP 192.168.4.114.sip > 192.168.4.248.sip: SIP, length: 530
> 23:05:01.233460 IP 192.168.4.112.sip > 192.168.4.248.sip: SIP, length: 540
> 23:05:23.521076 IP 192.168.4.114.sip > 192.168.4.248.sip: SIP, length: 530
> 23:05:24.520486 IP 192.168.4.114.sip > 192.168.4.248.sip: SIP, length: 530
> 23:05:25.232068 IP 192.168.4.112.sip > 192.168.4.248.sip: SIP, length: 540
> 23:05:26.231229 IP 192.168.4.112.sip > 192.168.4.248.sip: SIP, length: 540
> 23:05:26.520308 IP 192.168.4.114.sip > 192.168.4.248.sip: SIP, length: 530
> 23:05:28.231050 IP 192.168.4.112.sip > 192.168.4.248.sip: SIP, length: 540
> 23:05:30.519957 IP 192.168.4.114.sip > 192.168.4.248.sip: SIP, length: 530
> 23:05:32.230693 IP 192.168.4.112.sip > 192.168.4.248.sip: SIP, length: 540
> 23:05:34.521843 IP 192.168.4.114.sip > 192.168.4.248.sip: SIP, length: 925
> 23:05:34.530587 IP 192.168.4.114.sip > 192.168.4.248.sip: SIP, length: 530
> 23:05:35.519255 IP 192.168.4.114.sip > 192.168.4.248.sip: SIP, length: 925
> 23:05:36.230336 IP 192.168.4.112.sip > 192.168.4.248.sip: SIP, length: 540
> 23:05:37.519077 IP 192.168.4.114.sip > 192.168.4.248.sip: SIP, length: 925
> 23:05:41.518720 IP 192.168.4.114.sip > 192.168.4.248.sip: SIP, length: 925
>
> Connected to Asterisk 1.4.24 currently running on asterisk (pid = 3047)
> Verbosity is at least 3
> asterisk*CLI> sip debug
> SIP Debugging re-enabled
> asterisk*CLI>
>
> and it stays that way...
>

So far, what you've provided as information suggests that asterisk is
running, that it is listening on the SIP port, udp 5060, that the phones are
sending information to asterisk, the machine asterisk is running on can see
the packets in a tcpdump, but, asterisk never sees what the phones are
sending going back the lack of anything showing up in the asterisk cli...

Make sure you set at least udp port 5060 in your iptables configuration as
ACCEPTed...

To do it as a one off, you can do 'iptables -I INPUT -i eth1 -p udp -m udp
-s 192.168.4.0/24 --dport 5060 -j ACCEPT', though unless you change your
configuration this will not survive across a reboot...

This wouldn't necessarily be enough to get SIP working, but, the phones
should at least register and you should be able to see them at least try to
make calls... If you get that far, you'll also need to open a range of ports
for RTP...

d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090414/621545e0/attachment.htm 


More information about the asterisk-users mailing list