prefixkit Ask an engineerAsk Support RU

SIP provider settings

Zadarma SIP trunk setup

How to connect Zadarma to your PBX: SIP server, port, login, codecs, number format and a ready pjsip.conf for Asterisk, a FreeSWITCH gateway and the fields for 3CX. The generator fills in your details.

SIP serversip.zadarma.com
Cloud PBX serverpbx.zadarma.com (extensions of the Zadarma cloud PBX, login like 1234-100)
Port5060 UDP; TLS on 5061
AuthenticationRegistration: SIP number and password from the account
LoginSIP number, e.g. 123456; From user = the same number
CodecsG.711 A-law, µ-law
Registration120 s registration, retry 60 s (provider example)
Inbound IP addressesFor IP authentication also allow sipurifr.zadarma.com, sipde.zadarma.com, sipuriny.zadarma.com
Provider guidezadarma.com

Zadarma also supports authorisation by IP: then the trunk works without registration, and calls come from the addresses above.

Set direct_media=no: the provider expects media to go through your PBX.

Generator with Zadarma settings

Provider fields are filled in: add your login, password and number.

Provider

Numbers and routing

Media and NAT

The config is built in your browser; the password is not sent anywhere.

Example pjsip.conf for Zadarma

; pjsip.conf — trunk "zadarma" generated by prefixkit.com
; Reload: asterisk -rx "pjsip reload"   Check: pjsip show registrations / pjsip show endpoint zadarma

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060

[zadarma-auth]
type=auth
auth_type=userpass
username=123456
password=PASSWORD

[zadarma]
type=aor
contact=sip:sip.zadarma.com:5060
qualify_frequency=60

[zadarma]
type=endpoint
transport=transport-udp
context=from-zadarma
disallow=all
allow=alaw,ulaw
aors=zadarma
outbound_auth=zadarma-auth
from_user=123456
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
dtmf_mode=rfc4733

[zadarma]
type=identify
endpoint=zadarma
match=sip.zadarma.com

[zadarma-reg]
type=registration
transport=transport-udp
outbound_auth=zadarma-auth
server_uri=sip:sip.zadarma.com:5060
client_uri=sip:123456@sip.zadarma.com
contact_user=123456
retry_interval=60
forbidden_retry_interval=600
expiration=3600
line=yes
endpoint=zadarma

FreeSWITCH gateway

<!-- conf/sip_profiles/external/zadarma.xml — reload: fs_cli -x "sofia profile external rescan" -->
<include>
  <gateway name="zadarma">
    <param name="username" value="123456"/>
    <param name="password" value="PASSWORD"/>
    <param name="realm" value="sip.zadarma.com"/>
    <param name="proxy" value="sip.zadarma.com:5060"/>
    <param name="register" value="true"/>
    <param name="expire-seconds" value="3600"/>
    <param name="retry-seconds" value="30"/>
    <param name="from-user" value="123456"/>
    <param name="caller-id-in-from" value="true"/>
    <param name="ping" value="60"/>
  </gateway>
</include>

Zadarma in 3CX, FreePBX, Yeastar and other web-managed PBXs

Trunk typeGeneric SIP trunk with registration (Register Trunk)
Registrar / SIP server / Hostsip.zadarma.com
Port5060 UDP
Auth ID / Usernamethe login from your account (123456)
CodecsG.711 A-law, G.711 µ-law
DTMFRFC 2833 / 4733

If it does not work

Check whether the provider server answers: SIP check. Read a registration or call log: SIP log analyzer. No audio: NAT test.

Other providers

MTT Business · Telphin · SIPNET · Mango Office · Twilio · Telnyx · DIDWW · VoIP.ms · Flowroute · Plivo · sipgate

Settings come from the provider’s guides and may change; check your account. If something is out of date, tell us through the feedback form.

Idea?