1. Under "PBX" -> "PBX Configuration" -> "Trunks" add SIP trunk.
Enter the following information:
111111: Your sip number from personal account.
1234-100: Your PBX extension number from personal account.
Password: Your sip number password of sip from "SIP Connection" in personal account.
Password: Your PBX extension number password from your personal account.
Trunk Name: Zadarma
USER Context: 111111
USER Context: 1234-100
Register String: 111111:password@sip.zadarma.com/111111
Register String: 1234-100:password@pbx.zadarma.com/1234-100
In PEER Details and USER Details enter the following data:
host=sip.zadarma.com
host=pbx.zadarma.com
insecure=invite,port
type=friend
fromdomain=sip.zadarma.com
fromdomain=pbx.zadarma.com
disallow=all
allow=alaw&ulaw
dtmfmode=auto
secret=password
defaultuser=111111
defaultuser=1234-100
fromuser=111111
fromuser=1234-100
qualify=400
directmedia=no
2. Under "PBX" -> "PBX Configuration" -> "Inbound Routes", create an inbound route Zadarma-in
DID Number: 111111
DID Number: 1234-100
Under "Set Destination" you can set where the call will be routed to (a FreePBX extension number, a call group, IVR, etc.)
3. Under "PBX" -> "PBX Configuration" -> "Outbound Routes", create an outbound route Zadarma-out.
Under "Dial Patterns that will use this Route", in the blank space indicated as "match pattern", enter a point (.) (indicated by a red arrow in the following screenshot) and create a route. If you skip this stage, you will not be able to make outgoing calls.