The procedure to register a Yealink SIP T-22P with three lines as a remote phone follows:
Assume the fully qualified domain name of the FreePBX server is www.fqdn.com and the private IP of the FreePBX server is 192.168.1.100. In the FreePBX GUI Settings==>SIP Settings, assume the legacy chan_sip “Bind Port” field is 5060, and the chan_pjsip “Port to Listen On” field is 5061. Also assume extensions 111, 112, and 113 are chan_sip extensions, and extensions 211, 212, and 213 are chan_pjsip extensions.
To set up the T-22P as a remote phone with the chan_sip extensions, determine the private IP address of the T-22P on the remote network (assume it’s 192.168.0.101) and in a browser bring up the admin GUI at 192.168.0.101. In the Account Menu==>Register for each of the 3 accounts configure the fields as follows:
Line Active: Enable
Label: Line 1 ext. 111
Display Name: Ext. 111 Joe
Register Name: 111
User Name: 111
Password: [extension 111 secret in FreePBX GUI]
Enable Outbound Proxy Server: Enabled
Outbound Proxy Server: www.fqdn.com Port: 5060
Transport: UDP
NAT: Disabled
STUN Server: [blank]
SIP Server 1
Server Host: www.fqdn.com Port 5060
Server Expires: [default]
Server Retry Counts: [default]
SIP Server 2
Server Host: 192.168.1.100 Port 5060
Server Expires: [default]
Server Retry Counts: [default]
In Account Menu==>Advanced, for each of the three accounts leave the defaults, including the fields:
Local SIP Port: 5060
RPort: Disabled
To set up the T-22P as a remote phone with the chan_pjsip extensions, for each of the 3 accounts you only need to change the extensions and the ports from 5060 to 5061 (except in the Account Menu==>Advanced). In detail, configure the fields as follows:
Line Active: Enable
Label: Line 1 ext. 211
Display Name: Ext. 211 Joe
Register Name: 211
User Name: 211
Password: [extension 211 secret in FreePBX GUI]
Enable Outbound Proxy Server: Enabled
Outbound Proxy Server: www.fqdn.com Port: 5061
Transport: UDP
NAT: Disabled
STUN Server: [blank]
SIP Server 1
Server Host: www.fqdn.com Port 5061
Server Expires: [default]
Server Retry Counts: [default]
SIP Server 2
Server Host: 192.168.1.100 Port 5061
Server Expires: [default]
Server Retry Counts: [default]
In Account Menu==>Advanced, for each of the three accounts leave the defaults, including the fields:
Local SIP Port: 5060
RPort: Disabled
After clicking on “Confirm”, all three extensions should show as registered.