How to Configure NAPTR and Port 0 for TCP/UDP in Yeastar MyPBX

Some providers, like Deutsche Telekom, require the trunk of PBX to enable NAPTR and port 0 for registration. It is very convenient to configure them on the trunk page of Yeastar S-Series PBX directly according to this guide:


However, you might find that it is a challenge for you to set them up in Yeastar MyPBX which is an EOS product now: Port 0 is not available to be configured in its WebGUI directly and the NAPTR cannot be found via trunk page as well. The aim of this guide to provide a possible solution for how to configure NAPTR and port 0 for TCP/UDP in Yeastar MyPBX.


1. How to configure NAPTR in Yeastar MyPBX.

NAPTR records are most commonly used for applications in Internet telephony, for example, in the mapping of servers and user addresses in the Session Initiation Protocol (SIP). The combination of NAPTR records with Service Records (SRV) allows the chaining of multiple records to form complex rewrite rules which produce new domain labels or uniform resource identifiers (URIs). For more info about its working mechanism, please refer to this link:

Please go to PBX>Advanced Settings>General>Enable DNS SRV Look Up, and this is a global setting which is available for all trunks if needed.



2. How to set up port 0 in Yeastar MyPBX.

Port 0 is used to query the provider for registration port required but you can not configure it on MyPBX WebGUI directly since the port value should be included in the range of 1-65535.


Below are the detailed steps for configuring port 0 in SSH of MyPBX.

Login the SSH of MyPBX:

Locate to the customized path with below 2 commands.

cd /persistent/var/lib/asterisk/db/custom-cfg
vi users_custom.conf


Paste the below content under this path via click I, trunk-Provider Name(here takes as an example):
port = 0

Save the change and make it take effect.

asterisk -vvvvvvvvvr

module reload 

Done and the port should be changed to 0.
Ctrl C
vi /etc/asterisk/users.conf 



Have more questions? Submit a request


Please sign in to leave a comment.