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: https://support.yeastar.com/hc/en-us/articles/360014536894-Recommended-SIP-Configuration-for-Deutsche-Telekom.

 

However, you might find that it is a challenge for you to set them up in Yeastar MyPBX which is an EOS product now: https://www.yeastar.com/eol-policy#eos-product. 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: https://en.wikipedia.org/wiki/NAPTR_record.

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.

mceclip10.png

 

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.

mceclip1.png

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

Login the SSH of MyPBX: 

https://support.yeastar.com/hc/en-us/articles/225066728-How-to-Login-the-SSH-of-Yeastar-MyPBX

Locate to the customized path with below 2 commands.

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

mceclip4.png

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

Save the change and make it take effect.
:wq

mceclip7.png
mypbxconf
asterisk -vvvvvvvvvr
mceclip6.png

module reload 

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

mceclip9.png
/[trunk-192.168.9.184]

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.