1. SRV Lookup should be enabled in the FreePBX:
Go to "Settings", "Asterisk SIP Settings", "Advanced General Settings".
2. Go to "Connectivity" - "Trunks" and add a SIP trunk.
Information used in the example:
111111: Your sip number from the personal account
Password: Your sip number password from the "SIP-settings" section in your personal account.
Trunk Name: Zadarma
USER Context: 111111
Register String: 111111:email@example.com/111111
In PEER Details and USER Details enter the following data:
3. Go to "Connectivity" - "Inbound Routes" and create an inbound route Zadarma-in
DID Number: 111111
You can set where the call will be routed to in the "Set Destination" section (it can be routed to a PBX extension number, a call group, an IVR, etc.)
4. Go to "Connectivity" - "Outbound Routes" and create an outbound route Zadarma-out.
Go to "Dial Patterns that will use this Route", enter a full stop (.) in the blank space indicated as "match pattern" and create a route. (As displayed by a red arrow in the screenshot below.) . If you skip this stage, you will not be able to make outgoing calls.