3CX on Azure

Discussion in '3CX Phone System - General' started by Dennytje, Nov 14, 2013.

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

    Joined:
    Nov 14, 2013
    Messages:
    8
    Likes Received:
    0
    Hi Guys,

    New to the 3CX system, and playing around with it.

    What I am trying to reach:

    3CX running on a VM on MS Azure platform

    How far am I ?

    Created the VM, setup the system, installed 3CX and apllied free licence.
    Created the VoIP provider, registers fine
    Created some extensions

    Then in Azure created the following endpoint settings:

    5060 -> 5060
    5061 -> 5061
    5090 -> 5090 TCP and UPD
    5000 -> 5000

    Now the status is as followed; I can reach the admin web interface from an external IP. Yet, registering a external extension is not possible. Also every single firewall checker run gives me that port forwarding is not properly configured.

    It probably has something to do with Azure tunneling the traffic, but I can not figure out where it goes wrong.

    The external IP is 138.91.54.8 and the VM IP is 100.92.142.143.

    Anyone has an idea what I am missing ?

    PS Firewall is turned off :)

    UPDATE

    The ports do show up as open when testing with a external website...
    http://www.yougetsignal.com/tools/open-ports/
    Port 5060 is open on suppahost01.cloudapp.net.

    Yet the soft phone will still not connect.

    UPDATE 2"

    Phone connects for a second, and then comes back with error 407...

    No idea what to do anymore..
     
  2. leejor

    leejor Well-Known Member

    Joined:
    Jan 22, 2008
    Messages:
    10,752
    Likes Received:
    285
    Please X out your public IP and host name, no one else need to know that information. You are just asking for hackers to pay you a visit.

    Have a look at the 3CX logs, see if there are any error messages that give some clues as to why the registration is dropping. That may help you in determining what to "tweak" next.
     
  3. Dennytje

    Joined:
    Nov 14, 2013
    Messages:
    8
    Likes Received:
    0
    IP info is not so special in this case, nothing is happening on the box itself and it will be deleted anyways.

    I know why the registration is failing, it is because of the firewall checker errors. But I have no idea how to setup the port forwarding any better then I have now.
     
  4. leejor

    leejor Well-Known Member

    Joined:
    Jan 22, 2008
    Messages:
    10,752
    Likes Received:
    285
    Someone else will have to provide help with Azure as I have not used it.
    I did notice that there was no mention about forwarding ports 9000 to 9049, which should be necessary.
     
  5. Dennytje

    Joined:
    Nov 14, 2013
    Messages:
    8
    Likes Received:
    0
    They are there, but got help from Microsost, and at this point using 3CX on Azure is a no go.

    Too bad, would have been a great opportunity :)
     
  6. Dennytje

    Joined:
    Nov 14, 2013
    Messages:
    8
    Likes Received:
    0
    By the way, I just spoke with some more people from UC community within Microsoft, and got some tips and hints to make it work.

    Is there anyone else using Azure and want to team up for testing ?
     
  7. bardissi

    bardissi Member

    Joined:
    Jan 31, 2012
    Messages:
    318
    Likes Received:
    0
    Running this on Azure should be just like Amazon or any other virtual server solution.

    It seems like you just need to understand the remote phone setup better.

    You need to use either STUN, 3CX Proxy Mamanger, VPN, or direct port forwarding per phone, OR Session border controller.

    Also make sure the 3CX firewall checker passes.
     
  8. Dennytje

    Joined:
    Nov 14, 2013
    Messages:
    8
    Likes Received:
    0
    Did you read all my posts ?

    Then tell me please, what should I understand more ?

    The firewall checker won't get anywhere in Azure...

    So please enlighten me
     
  9. bardissi

    bardissi Member

    Joined:
    Jan 31, 2012
    Messages:
    318
    Likes Received:
    0
    Where are you geographically located?
     
  10. Dennytje

    Joined:
    Nov 14, 2013
    Messages:
    8
    Likes Received:
    0
    Romania, Iasi. But if you have Skype, you can always reach me there :)

    dennis@suppahost.com
     
  11. bardissi

    bardissi Member

    Joined:
    Jan 31, 2012
    Messages:
    318
    Likes Received:
    0
    ladies and gents... I am proud to present a working 3cx install on Windows Azure.. it WORKS!

    The firewall checked wont pass but everything works as designed.
     
  12. Dennytje

    Joined:
    Nov 14, 2013
    Messages:
    8
    Likes Received:
    0
    Let's see if the firewall or the internal routing will give any problems when making actual phone calls.

    Will test somewhere this week!

    Thanks for the help!
     
  13. tekkers

    Joined:
    Aug 21, 2013
    Messages:
    1
    Likes Received:
    0
    Hi, we've been struggling to get Azure and 3CX talking together - any chance you could assist us with getting this working!? (Providing your testing goes well?)
     
  14. Dennytje

    Joined:
    Nov 14, 2013
    Messages:
    8
    Likes Received:
    0
    Hi Tekkers,

    yes, it works!

    Do you have skype ?

    Add me or email me on dennis@suppahost.com
     
  15. Nick@Troosters

    Joined:
    Nov 12, 2012
    Messages:
    22
    Likes Received:
    0
    Hello,

    I also managed to get it working, but the firewall checker does not work with me.

    Allthough when I do a open port checker all is fine.

    Why does the firewall checker not work, or how can I get it to work ?
     
  16. imerecom

    Joined:
    Dec 2, 2009
    Messages:
    21
    Likes Received:
    2
    We have been running on azure vm for many months now with good success.

    We have run into some issues with some sip trunk providers and how they handle rtp but the issues weren't azure.

    The firewall checker I believe uses icmp which is blocked by azure you would have to use a third party checker that uses the port you specified in the azure endpoints to check.

    Here is an article on the subject:

    http://blogs.msdn.com/b/mast/archive/2014/06/22/use-port-pings-instead-of-icmp-to-test-azure-vm-connectivity.aspx
     
  17. eprivatehire

    Joined:
    Aug 10, 2009
    Messages:
    8
    Likes Received:
    0
    Hi, I have installed this on Azure VM and almost everything is working, I can hear callers but they cannot hear me?

    I should add that I am using 3CX desktop phone and the system is V12.

    I am sure this is an endpoint issue but need help on this final part.

    Thanks
    Simon
     
  18. imerecom

    Joined:
    Dec 2, 2009
    Messages:
    21
    Likes Received:
    2
    As it turns out, it was the azure endpoint implementation that was preventing the pings of the firewall checker to get through as I mentioned in the previous post.

    If you use static ip on the vm local interface and PIP for external the whole solution works as expected and quite well I might add.

    Now we just need static mac on Azure so the license validation for 3cx doesn't become a problem during scaling or DR, though with five chances we should be good in most situations.
     
  19. eprivatehire

    Joined:
    Aug 10, 2009
    Messages:
    8
    Likes Received:
    0
    So after several days I can finally say that I have managed to make this work on Azure, stay clear of endpoints and look into PIP.
     
  20. bardissi

    bardissi Member

    Joined:
    Jan 31, 2012
    Messages:
    318
    Likes Received:
    0
    Stability and Voice Quality is the key conversation when it comes to the Public Cloud vendors like Azure, Amazon, Google, etc.
     
Thread Status:
Not open for further replies.