telnyx trunk setup examples - bad syntax?
Hello, I was trying to use this example from Telnyx to setup a pjsip trunk, and ran into errors. It seems strange to me that they don't use square brackets for their headings. Is that a valid alternate config syntax?
;/etc/asterisk/pjsip_wizard.conf
trunk_defaults
type = wizard
telnyx
endpoint/transport=0.0.0.0-udp
endpoint/allow = !all,ulaw,alaw,G729,G722
endpoint/rewrite_contact=yes
endpoint/dtmf_mode=rfc4733
endpoint/context = from-pstn
endpoint/force_rport = yes
aor/qualify_frequency = 60
sends_auth = yes
sends_registrations = yes
remote_hosts = sip.telnyx.com:5060
outbound_auth/username = username
outbound_auth/password = password
registration/expiration = 600
https://developers.telnyx.com/docs/v2/sip-trunking/configuration-guides/asterisk
Also, I cannot find an example in the pjsip_wizard that sets a trunk_default type=wizard, and then leaves it out of other sections. Is that also valid?
Posted Jun 17, 2020, 2:12 PM UTC
33
I had the same question too, and i'm quite sure it needs the brackets. I added them and it works fine.
Below is my working
pjsip.confandpjsip_wizard.conf, however a couple of notes:FQDNfor inbound andcredentialsfor outbound.I found links in your comment that were not hyperlinked:
I did the honors for you.
^delete ^| ^information ^| ^<3
Bad bot.