Asterisk SIP trunk settings

SIP trunk settings

These trunk settings work for Asterisk and similar platforms. It's a very basic configuration for use with the IVY or Dashboard platforms. These can be entered in the Outbound Settings of your Asterisk GUI, or in your sip.conf file.

By virtue of the "type=friend" these settings should work for both inbound and outbound calls. A link is provided below to download an example sip.conf.

; Explicitly disallow all codecs.
disallow=all
; Allow only PCMU codec.
allow=ulaw
; Handle calls with this context.
context=from-pstn
; Enables inbound and outbound calls.
type=friend
; Allows inbound calls from provider.
insecure=invite
; Sets DTMF mode to best compatibility.
dtmfmode=rfc2833  

; Authentication settings
username=[your device or SIP trunk login]
secret=[the password associated with the same]
host=[your IVY Site DNS name or Teliax Dashboard proxy]
fromdomain=[your IVY Site DNS name] (This is required for IVY sites)

Registration string

To send registration for inbound calls, you'll want to set your registration string.

username:password@ivy-dns-name

In an Asterisk sip.conf, you'd set a registration string like this:

register => username:password@ivy-dns-name

Dashboard customers would need to use their Dashboard proxy (like den.teliax.net) in place of their ivy-dns-name.

The fine print

These settings are provided as a courtesy. Teliax makes no guarantee that these particular settings will work for you. While most Asterisk-based systems are very similar, each installation has its own quirks and each Asterisk administrator might have their own way of doing things. We encourage you to learn as much as possible about your Asterisk installation and to customize it to your needs.

If configuring your Asterisk installation has you going in circles, consider contacting Teliax to learn more about our Hosted PBX platform, IVY.

Have more questions? Submit a request

4 Comments

  • 0
    Avatar
    James R. Twine

    If you are having problems getting incoming calls to work with the above setup information, but outgoing is working fine, try using the device username in the register string instead of just your Teliax username.

    -=- JRT

  • 0
    Avatar
    Keith Murray

    Using FreePBX, I was able to register and call out but inbound wouldn't work. Turns out the Destination under the Numbers setting was not correct. Fixed that and inbound worked. Just an FYI.

    Keith

  • 0
    Avatar
    Tom Rymes

    "These settings work best for Asterisk 1.4 and 1.6." -- And what about later versions?

  • 0
    Avatar
    Craig Berryman

    Tom -

    I have a couple customer cases using 1.8 and 1.11, the configurations above work for them. 

    Craig~Teliax

Please sign in to leave a comment.
Powered by Zendesk