The second part will cover configuring telephony.
First, we create an extension. To do this, go to Connectivity - Extensions.
Click on Quick Create Extension.
Fill in the Quick Create Extension, for example, number 101 and Display Name — e.g., Test, and click Next. On the second screen, leave the settings as they are, then click Finish.
After making all changes, remember to apply them by clicking Apply, and it's recommended to reboot the server.
Next, we need to create a Trunk.
To do this, go to Connectivity - Trunks and add a new trunk by selecting Add SIP [chan_pjsip] Trunk.
Fill in the fields:
Trunk Name — the provider's name who supplies telephony services.
Outbound CallerID — the number provided by the provider, e.g., +17477744441.
Then go to the Settings tab.
Fill in the connection details provided by the provider:
Username — the user's login.
Secret — the password.
SIP Server — the connection server.
SIP Server Port — the port, default is 5060.
Context — from-pstn-e164-us.
On the Advanced tab, change the DTMF Mode parameter to RFC 4733.
To receive calls, configure Inbound Routes. To do this, go to Connectivity - Inbound Routes.
Fill in the following fields:
Description — an internal name.
DID number — the number that redirects to the internal number 101.
Set Destination — specify the action for incoming calls.
Now, when someone calls your number, the call will be redirected to the internal number 101.
To make outbound calls, configure Outbound Routes. Go to Connectivity - Outbound Routes.
Fill in the field Route Name — the internal name of the route. On the Dial Patterns tab, create number templates for calls.
All basic settings are now complete. You can check the system's functionality.