Asterisk SIP Print

  • 103

sip.conf

[general]                
register => 100000:johnspassword@atlanta.icttech.net:5060

[icttechnet]
canreinvite=no
context=mycontext
host=atlanta.icttech.net ;(one of our multiple servers, you can choose the one closer to your location)
secret=johnspassword ;your password
type=peer
username=100000 ;(Replace with your Sub Account username, i.e. 123456_sub)
disallow=all
allow=ulaw
; allow=g729 ; Uncomment if you support G729
fromuser=100000 ;(Replace with your Sub Account username, i.e. 123456_sub)
trustrpid=yes
sendrpid=yes
insecure=invite
nat=yes

  • Note: As of FreePBX/Asterisk version 2.9.0.7 if ;comments are placed after the config entries as above it may prevent outgoing call's with the end points getting "All circuits are busy". Remove the ;comments and the trunk will send the calls with no errors.

extensions.conf

[mycontext]
; Make sure to include inbound prior to outbound because the _NXXNXXXXXX handler will match the incoming call and create a loop
include => icttechnet-inbound
include => icttechnet-outbound

[icttechnet-outbound]
exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@icttechnet)
exten => _1NXXNXXXXXX,n,Hangup()
exten => _NXXNXXXXXX,1,Dial(SIP/1${EXTEN}@icttechnet)
exten => _NXXNXXXXXX,n,Hangup()
exten => _011.,1,Dial(SIP/${EXTEN}@icttechnet)
exten => _011.,n,Hangup()
exten => _00.,1,Dial(SIP/${EXTEN}@icttechnet)
exten => _00.,n,Hangup()

; inbound context example for your DID numbers, do not add the number 1 in front

[icttechnet-inbound]
exten => 7863643011,1,Answer() ;your DID

Asterisk IP Auth. (SIP)

sip.conf

Note: You'll need to create a sub account to use IP Auth

[icttechnet]
canreinvite=nonat
context=mycontext
host=atlanta.icttech.net ;(one of our multiple servers, you can choose the one closer to your location)
type=peer
disallow=all
allow=ulaw
; allow=g729 ; uncomment if you support g729
nat=yes

extensions.conf

[mycontext]
; Make sure to include inbound prior to outbound because the _NXXNXXXXXX handler will match the incoming call and create a loop
include => icttechnet-inbound
include => icttechnet-outbound

[icttechnet-outbound]
exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@icttechnet)
exten => _1NXXNXXXXXX,n,Hangup()
exten => _NXXNXXXXXX,1,Dial(SIP/1${EXTEN}@icttechnet)
exten => _NXXNXXXXXX,n,Hangup()
exten => _011.,1,Dial(SIP/${EXTEN}@icttechnet)
exten => _011.,n,Hangup()
exten => _00.,1,Dial(SIP/${EXTEN}@icttechnet)
exten => _00.,n,Hangup()

; inbound context example for your DID numbers, do not add the number 1 in front

[icttechnet-inbound]
exten => 7863643011,1,Answer() ;your DID

Known Issues

Getting Message Waiting Indicator to Work with icttech.net Voicemail

icttech.net sends MWI notifications unsolicited. Please make the following changes in your configurations.

Remove this Line please.

[general] Section

mwi => 123456:mypassword@losangeles.icttech.net/65000

Add this Line please.

[icttechnet] Section

unsolicited_mailbox=65000

 

Local extension calling

(User submitted) In order for this to work, you must fill out "User Context and User Details"

 

User Context Name: 100000 (your account)

[100000] your account
type=user
auth=md5
notransfer=yes
disallow=all
allow=gsm&ulaw
trunk=yes
secret=****
context=from-trunk

Was this answer helpful?

« Back