prefixkit Ask an engineerAsk Support RU

SIP provider settings

Telnyx SIP trunk setup

How to connect Telnyx 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.telnyx.com
Port5060 UDP (TCP and TLS also offered)
AuthenticationCredentials connection with registration (expiration 600 s in the provider example), or an IP connection
CodecsG.711 µ-law, A-law, G.729, G.722
DTMFRFC 4733
Number formatE.164 with +: inbound arrives as +1NXXNXXXXXX, outbound dial +${EXTEN}
Provider guidedevelopers.telnyx.com

Create the credentials under Connections in the Telnyx portal and assign your numbers to that connection, or inbound calls go nowhere.

Generator with Telnyx 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 Telnyx

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

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

[telnyx-auth]
type=auth
auth_type=userpass
username=username
password=PASSWORD

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

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

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

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

FreeSWITCH gateway

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

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

Trunk typeGeneric SIP trunk with registration (Register Trunk)
Registrar / SIP server / Hostsip.telnyx.com
Port5060 UDP
Auth ID / Usernamethe login from your account (connection username)
CodecsG.711 µ-law, G.711 A-law, G.722, G.729
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

Zadarma · MTT Business · Telphin · SIPNET · Mango Office · Twilio · 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?