Example pjsip.conf for Plivo
; pjsip.conf — trunk "plivo" generated by prefixkit.com
; Reload: asterisk -rx "pjsip reload" Check: pjsip show registrations / pjsip show endpoint plivo
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
[plivo-auth]
type=auth
auth_type=userpass
username=username
password=PASSWORD
[plivo]
type=aor
contact=sip:1234567890123456.zt.plivo.com:5060
qualify_frequency=60
[plivo]
type=endpoint
transport=transport-udp
context=from-plivo
disallow=all
allow=ulaw
aors=plivo
outbound_auth=plivo-auth
from_user=username
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
dtmf_mode=rfc4733
[plivo]
type=identify
endpoint=plivo
match=1234567890123456.zt.plivo.com
FreeSWITCH gateway
<!-- conf/sip_profiles/external/plivo.xml — reload: fs_cli -x "sofia profile external rescan" -->
<include>
<gateway name="plivo">
<param name="username" value="username"/>
<param name="password" value="PASSWORD"/>
<param name="realm" value="1234567890123456.zt.plivo.com"/>
<param name="proxy" value="1234567890123456.zt.plivo.com:5060"/>
<param name="register" value="false"/>
<param name="from-user" value="username"/>
<param name="caller-id-in-from" value="true"/>
<param name="ping" value="60"/>
</gateway>
</include>
Plivo in 3CX, FreePBX, Yeastar and other web-managed PBXs
| Trunk type | Generic SIP trunk, authentication without registration |
|---|---|
| Registrar / SIP server / Host | 1234567890123456.zt.plivo.com |
| Port | 5060 UDP |
| Auth ID / Username | the login from your account (trunk username) |
| Codecs | G.711 µ-law |
| DTMF | RFC 2833 / 4733 |
If it does not work
- Registration rejected (403) : login, password, From domain.
- No response to registration : host, port, firewall, SIP ALG.
- Inbound rejected: No matching endpoint found : provider IPs missing from identify.
- Extension not found in context : the inbound number arrives in another format.
- No joint codecs (488) : allow the provider codecs.
Check whether the provider server answers: SIP check. Read a registration or call log: SIP log analyzer. No audio: NAT test.
Other providers
Zadarma · MTT Business · Telphin · SIPNET · Mango Office · Twilio · Telnyx · DIDWW · VoIP.ms · Flowroute · sipgate