Error with STUN server

Discussion in '3CX Phone System - General' started by jlabuelo, Apr 3, 2008.

Thread Status:
Not open for further replies.
  1. jlabuelo

    Joined:
    Apr 2, 2008
    Messages:
    74
    Likes Received:
    0
    Good morning all

    I have a problem with my 3CX Voip phone system. I used it as a cetral phone system where I connect my extensions (Using the 3CX VOIP client software tool). Everything worked fine until 3 days ago.

    Since then every day at 18:00 pm (CET) I lose my external connection with my VOIP provider and then the day after I was able to get connection again. But the problem is now that since yesterday I lost my external connection, and since then I am not able to receive calls neither make them.

    If I go to the Line Status section of the tool I get this status for the VOIP Lines:
    Code:
    10000   Line No: 881240063    
    Status: Not registered 
    And if I check the server status I dont stop getting this error message:

    Code:
    13:22:14.390 StunClient::onTestTout [CM506004]: STUN request to STUN server 64.69.76.23 has timed out; used Transport: 192.168.2.10:5060 
    I dont know what is wrong, as I did not change anything and after talking with my VOIP provider they say that they did not do anything either and the system works as normal... it is strange that every day at 18:00 I got this problem.... but now "I dont have phone!!".

    I have checked the STUN options:

    Code:
    Default STUN server address  stun.3cx.com Port   3478 
    Default second STUN server address stun2.3cx.com  Port   3478   
     
    Timeout time for STUN response (ms)3000  
    Recheck external IP every (sec)  1200
    I have asked my Internet provider to open the ports I use 5060 and 9000-9100 ( as I use the default configuration that 3CX sets after the installation).

    Anybody has any ideas of what else I should check??

    Thanks a lot
     
  2. h2009

    h2009 Member

    Joined:
    Mar 15, 2008
    Messages:
    447
    Likes Received:
    0
    hi there, nice detail there in your post.
    Stun servers can be subject to packet loss, hence the problem your seeing.
    What you can do is google "public stun servers" and you'll get a whole list of them to use. Change the stun addresses and that should sort your problem out.
    One I can remember off the top of my head is stunserver.org

    I suggest you put two different stuns in place so if one goes down the other will still work.

    The other option is to make you 3cx system public and you won't need stuns but it will still ask for them.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. jlabuelo

    Joined:
    Apr 2, 2008
    Messages:
    74
    Likes Received:
    0
    Thanks a lot for your help h2009. I have done what you suggested I have added the stun server stunserver.org and other one as secondary called stun.fwd.org both in same port 3478.

    But I cant still get connection to my voip provider. I have all the ports open in my network (5060,9000-9015 and 3478), and I keep getting these errors even after restarting the server:

    Code:
    14:04:56.687 StunClient::onTestTout [CM506004]: STUN request to STUN server 208.73.212.12 has timed out; used Transport: 192.168.2.10:5060 
    This tme the IP address in the message is different... but still same prolem :(

    Also if I do the Firewall test for ports 9000-9015 I get this error messages:

    anything else in your mind?? :D

    Thanks again :D
     
  4. h2009

    h2009 Member

    Joined:
    Mar 15, 2008
    Messages:
    447
    Likes Received:
    0
    hmm your stun ports I think could be wrong. I'm not at my computer, so I can't check to be sure, but I think the port you need is 3478 3479.
    Have got these ports open on your router? Just double check to make sure.
    Let me know how that port gets on.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. landfiets

    landfiets New Member

    Joined:
    Jul 17, 2007
    Messages:
    242
    Likes Received:
    0
    Can you try to see if you forwarded the stun port also to your system? sometimes people forget that.
    Also use stun.voipbuster.com as a stunserver.
    How is your NAT situation? Did anything change the last weeks? did you change something in your router in terms of portforwardings?
    Please read the postings about portforwarding and see if you did everything. Not the internet provider should do that for you but you should do that yourself in your router/modem.

    good luck
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. jlabuelo

    Joined:
    Apr 2, 2008
    Messages:
    74
    Likes Received:
    0
    Hi guys

    Thanks for the help, I have done what you suggested and now works fine I can get incoming calls and also make my calls perfectly. but I have two problems still:

    a) I dont get any call redirected to the mail voice, even I have set the rules for the extension:

    Voice Mail Configuration <<

    Destination Unreachable / Forwarding <<

    I dont know what is wrong, I give a call and after some time ringing the voice mail does not appear, it just hung up. However if I set the property "Forward All Call" to Voice mail, then it works perfectly.

    b) The other problem I have is the sound from my side, I mean in a call the sound from the people who calls me or I call sounds perfect, like a normal phone, but they hear me like if I was talking to them very very far away... any ideas of why this may be happening??? (I am using the 3CX Client phone)

    Thanks a lot guys
     
  7. commplete

    Joined:
    Feb 29, 2008
    Messages:
    17
    Likes Received:
    0
    Interesting thread.

    I don't see any mention of opening ports 3478 and 3479 in the 3CX manual, have I missed something ?

    Do I need to set the router to open these ports for UDP or TCP or both?

    The reason I ask is that when I run the firewall checker, sometimes it passes and other times it gives me the error 4.
    Error 4 - The STUN server returned an ip which is not accessible from outside.
    I wonder if this maybe the reason for our incomming call unreliability.



    Thanks
    Huw

     
  8. archie

    archie Well-Known Member
    3CX Support

    Joined:
    Aug 18, 2006
    Messages:
    1,299
    Likes Received:
    0
    3CX PBX doesn't have STUN server. So it doesn't expect port 3478 to be opened for incoming. But it has STUN client which sends requests to external STUN servers, which usually set at port 3478. So if your router doesn't disable sending to that port - it's enough.
    Still, your SIP port (5060) and RTP range of ports should be mapped properly on router to have stable solution. Symmetric NAT is not supported (it may still work, but gives extremely unstable results). The error from your firewall check hints that you have symmetric NAT mapping.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. thomasz

    Joined:
    May 20, 2008
    Messages:
    10
    Likes Received:
    0
    Wow, I have the same problem. Thanks all. :lol:
     
Thread Status:
Not open for further replies.