EN |


OpenVPN Setup & Troubleshooting


Cordless Voip Phone



OpenVPN setup & troubleshooting.

Scenario 1: The user cannot set up the VPN correctly.

Resolution

  1. Please check if the VPN file format you are using is as follows. If not, please follow step 2.
    image.png

  2. Install the OpenVPN software:
    “config”: save the configuration files and the certificate files
    “easy-rsa”: tools folder includes the .bat to make the certificate files
    image.png
    In the “easy-rsa” folder:
    Rename the “vars.bat.sample” file to the name “vars.bat”
    Edit the file “vars.bat”
    image.png

  3. Configure the environment variable:
    Enter "cmd.exe“
    Enter the path of the "easy-rsa“
    Set the environment variable
    Clean all old certificate files

  4. Create crt files (root/server-side/client-side)

    1. Create a root certificate.
      Command: build-ca.bat
      Output: keys\ca.crt, keys\ca.key
      image.png

    2. Create a dh1024.pem file.
      Command: build-dh.bat
      Output: keys\dh1024.pem
      image.png

    3. Create server-crt
      Command : build-key-server.bat


      e.g.: server; server 01 etc
      image.png
    4. Create client-crt
      Command:build-key.bat


      Output: keys/.crt, keys/.csr, keys/.key
      image.png
      Note: If you are going to create multiple client-crt files, need to input a different Common Name/Name, or it will cause failure.
  5. Update the configuration (server.ovpn).

    1. Copy server.ovpn file from the path C:\Program Files\OpenVPN\sample-config to the path C:\Program Files\OpenVPN\config.

    2. Copy ca.crtdh1024.pemserver.crt, and server.key files from the path C:\Program Files\OpenVPN\easy-rsa\keys to the path C:\Program Files\OpenVPN\config.
      image.png

    3. Update C:\Program Files\OpenVPN\config\server.ovpn configuration (you can use cmd.exe and input ipconfig to check the local server’s IP address):
      image.png

  6. Connection testing.
    Run OpenVPN GUI software, the icon will show in the lower-right corner. Click Connect, then the server will prompt and turn green when it is successful.
    image.png

  7. Preparation for the phone connecting (enable Internet share, TCP/IP transmission).

    1. Enter “Regedit.exe”
      Path: 
      Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
      image.png

    2. Set WLAN’s Sharing configuration: (needs two network cards).
      Allow other network users to connect through this computer's internet connection.
      Home networking connection: VPN
      Allow other network users to control or disable the shared Internet connection.

    3. Update VPN.cnf.
      image.png

  8. Create the .tar pack and import it to the phone.

    1. openvpn.tar.
      image.png

    2. On the web user interface, go to Network > Advanced > VPN.
      image.png

    3. On the phone user interface, go to Network > Advanced > Network > VPN.

    4. Auto-Provisioning parameters:

      static.openvpn.url = http://192.168.10.25/OpenVPN.tarnetwork.vpn_enable=0/1

Scenario 2: The phone can connect to the VPN, but cannot register an account /calls cannot be established

Resolution
- For register issue

  1. Please test whether the VPN server can ping the SIP server address
    Please check: whether the configuration file of the VPN server grants the phone access to the network segment of the SIP server (whether the configuration file of the VPN server has a push "route x.x.x.x x.x.x.x" configuration)

  2. If the user uses DNS-SRV and other domain name registration methods, please confirm whether DNS can correctly resolve to the SIP address, please focus on checking: Whether the VPN server has a push dhcp- option DNS x.x.x.x configuration.

- For call issue
Please Auto-provisioning 
account.x.vpn_address_take_precedence=1 (1 which means SIP and SDP negotiation preferentially use the VPN address)

The phone cannot connect to the VPN server.

  1. Check that the VPN server is up and running.
    After the VPN server is running, the VPN icon in the taskbar will appear green, and the virtual IP of the VPN server can be seen by moving the mouse over the VPN icon, as shown in the figure below:
    image.png

  2. Check the VPN configuration file for the phone.

    1. Extract the tar file from the phone. The directory name must be keys, and the configuration file name must be vpn.cnf. as shown in the figure below:
      image.png

    2. Check whether the VPN certificate file and configuration file of the phone are correct. Enter the Keys directory, as shown in the figure below:
      The file name corresponding to ca, cert, and key should be the same as the names of the three files in the keys directory.
      The certificate path should be: /config/openvpn/keys/
      image.png

    3. Check whether the VPN configuration file of the phone and the configuration file of the server match. As shown in the figure below:
      Several configurations marked with red arrows should be consistent with the server.
      image.png

    4. If it still cannot be connected, please check whether the phone time is within the valid period of the certificate. Double-click the client certificate file to check the valid period of the certificate.

    5. Please double-check if all tar files are packaged correctly. Please package with the 7-zip tool.






Yealink Offers Reliable Voice Phone Device Solution
Covering Multiple Scenarios

Yealink IP Phones Elevate the Experience in Diverse Hybrid Work Environments

Phone Solution For Daily office

Cost-effective Wi-Fi IP Phone Solution

Dect Headsets For Retail Industry

Wireless coverage range of about 50m indoors and up to 300m outdoors

DECT Phone System

Professional ruggedized phone system for challenging environments

For Executive Working Space

Elite desktop phone for executives and professionals

For Team Collaboration

HD IP Conference Phone for on-the-go needs and huddle rooms

Front Desk

Well-rounded Office Phone & Cost-effective WiFi IP phone

Contact Us

Contact us for product quotes and installation consultations. We will promptly notify a local dealer to provide you with accurate and efficient service solutions.

${errorMsg[item.fieldName]}
Your Privacy
Strictly Necessary Cookies
Preferences Cookies
Statistics Cookies
Targeted Cookies
PRIVACY PREFERENCE CENTER
When you visit any website, the website stores or retrieves information from your browser, mostly in the form of Cookies. This information may relate to your personal information, preferences or device information and is used primarily to enable the website to provide the services you expect. This information does not usually directly identify you personally, but can provide you with a more personalized web experience. We fully respect your privacy, so you can choose not to allow certain types of Cookies, simply by clicking on the name of a different Cookie category to learn more and change the default settings. However, blocking certain types of Cookies may affect your experience with the site and the services we can provide to you.
Learn more ->
Strictly Necessary Cookies
Always On
These Cookies are essential for users to navigate the site and use its features, which are necessary for the proper functioning of the site, and cannot be turned off on our system. They are set only for actions you do that are equivalent to service requests, such as setting up your login or populating a form.You can set your browser to block or alert you to such Cookies, but some features of the site will not work. These Cookies do not store any personally identifiable information.
Learn more ->
Preferences Cookies
These cookies are mainly used to record users' preferences while browsing the website and using its features. These cookies allow the website to remember your interactions with the website, choices you have made in the past and information you have entered, such as your preferred language or what your username and password are, so you can be logged in automatically. If you do not allow the use of such Cookies, you will not be able to enjoy a more convenient experience with the site.
Learn more ->
Statistics Cookies
These Cookies allow us to count the number of visits to our website and the sources of traffic in order to evaluate and improve the performance of our website. These Cookies also help us to understand the popularity of our pages and the activity of our visitors on the site. All information collected by such Cookies is aggregated to ensure that it remains anonymous. If you do not allow the use of such Cookies, we will have no way of knowing when you visit our site and will not be able to monitor site performance.
Learn more ->
Targeted Cookies
These Cookies may be set by our advertising partners through our website and may also be used by those companies to create profiles of your interests and to display relevant advertisements to you on other websites. These Cookies do not store personal information directly, but use some information that uniquely identifies your browser and Internet device. If you do not allow the use of such Cookies, the advertisements you see will be less targeted.
Learn more ->
PRIVACY PREFERENCE CENTER
Your Privacy
Your Privacy
When you visit any website, the website stores or retrieves information from your browser, mostly in the form of Cookies. This information may relate to your personal information, preferences or device information and is used primarily to enable the website to provide the services you expect. This information does not usually directly identify you personally, but can provide you with a more personalized web experience. We fully respect your privacy, so you can choose not to allow certain types of Cookies, simply by clicking on the name of a different Cookie category to learn more and change the default settings. However, blocking certain types of Cookies may affect your experience with the site and the services we can provide to you.
Learn more ->
Strictly Necessary Cookies
Strictly Necessary Cookies
Always On
These Cookies are essential for users to navigate the site and use its features, which are necessary for the proper functioning of the site, and cannot be turned off on our system. They are set only for actions you do that are equivalent to service requests, such as setting up your login or populating a form.You can set your browser to block or alert you to such Cookies, but some features of the site will not work. These Cookies do not store any personally identifiable information.
Learn more ->
Preferences Cookies
Preferences Cookies
These Cookies are primarily used to record the preferences of users as they navigate the site and use its features. These Cookies allow the website to remember the choices you have made in the past, such as which language you prefer or what your username and password are, so that you can automatically log in. If you do not allow the use of such Cookies, you will not be able to enjoy a more convenient experience with the site.
Learn more ->
Statistics Cookies
Statistics Cookies
These Cookies allow us to count the number of visits to our website and the sources of traffic in order to evaluate and improve the performance of our website. These Cookies also help us to understand the popularity of our pages and the activity of our visitors on the site. All information collected by such Cookies is aggregated to ensure that it remains anonymous. If you do not allow the use of such Cookies, we will have no way of knowing when you visit our site and will not be able to monitor site performance.
Learn more ->
Targeted Cookies
Targeted Cookies
These Cookies may be set by our advertising partners through our website and may also be used by those companies to create profiles of your interests and to display relevant advertisements to you on other websites. These Cookies do not store personal information directly, but use some information that uniquely identifies your browser and Internet device. If you do not allow the use of such Cookies, the advertisements you see will be less targeted.
Learn more ->
Except for necessary cookies, we may also use functional cookies (including third party cookies) to deliver experience for you. You can turn them off by clicking “configure". More information in cookies policy.
Configure I Accept