[Asterisk-Users] Asterisk & STUN
Steve Totaro
stotaro at totarotechnologies.com
Thu Dec 15 19:21:28 MST 2005
>
> Hi all,
>
> I had my asterisk server. in some countries they blocked the standard
> VoIP ports, so our clients are not able to register to my server. One
> of my friends told me use STUN it can solve this problem. i compiled
> and installed STUN from Vovida.org. But still my stun is not able
> to work. here is my server ifconfig result where i installed stun.
>
>
> eth0 Link encap:Ethernet HWaddr 00:11:43:EC:81:02
> inet addr:212.212.212.212 Bcast:212.239.239.239
> Mask:255.255.255.240
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
>
> eth1 Link encap:Ethernet HWaddr 00:11:43:EC:81:03
> inet addr:10.230.18.139 Bcast:10.230.18.191
> Mask:255.255.255.192
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
>
> and my SIP server is 212.235.235.235 port 5060
>
> ./server -v -h :212.212.212.212 -a 10.230.18.139
>
> This is the log which is displaying in screen
>
> STUN server version 0.96
> Running with on interface 212.212.212.212:3478 with alternate
> 10.230.18.139:3479
> Binding to interface 0xe6eb64d4
> Opened port 3478 with fd 3
> Binding to interface 0xe6eb64d4
> Opened port 3479 with fd 4
> Binding to interface 0x8b12e60a
> Opened port 3478 with fd 5
> Binding to interface 0x8b12e60a
> Opened port 3479 with fd 6
> received on A1:P1
> Got a request (len=16) from 213.130.102.131:5060 (softphone ip)
> Received stun message: 16 bytes
> Bad message
> Request did not parse
> Failed to parse message
>
> Please advise me if anymore configurations need?
>
> --
> Thank You,
> Code Lover
Why not just set sip.conf to listen on different port?
More information about the asterisk-users
mailing list