FreePBX 13

1. In your FreePBX, SRV Lookup should be enabled:

Do so under the "Settings" tab, under "Asterisk SIP Settings" and the tab "Chan SIP Settings"

2. Under "Connectivity" - "Trunks" add SIP trunk.

Specify the name of the trunk and go to the tab sip settings

Enter the following information:

111111: Your sip number from personal account

Password: Your sip number passwordfrom "SIP-settings" in personal account.

Trunk Name: Zadarma

USER Context: 111111

Register String: 111111:password@sip.zadarma.com/111111

In PEER Details and USER Details enter the following data:

host=sip.zadarma.com

insecure=invite,port

type=friend

fromdomain=sip.zadarma.com

disallow=all

allow=alaw&ulaw

dtmfmode=auto

secret=password

defaultuser=111111

fromuser=111111

qualify=400

directmedia=no

nat=force_rport,comedia


3. Under "Connectivity" - "Inbound Routes" create an inbound route.

Description Zadarma-in

DID Number: 111111

Under "Set Destination" you can set where the call will be routed to (a FreePBX internal number, a call group, IVR, etc.)

4. Under "Connectivity" - "Outbound Routes" create an outbound route Zadarma-out.

Route Name Zadarma-out

Route CID 111111

Trunk sequence for matched routes: Zadarma

Under "Dial Patterns that will use this Route", in the blank space indicated as "match pattern", enter a point (.) This is 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.