Sample Asterisk config for TelaSIP
Assumptions:
- Password: abcdef9876
- Phone number: 8885551234
[general]
port=5060
bindaddr=0.0.0.0
pedantic=no
autocreatepeer=no
disallow=all
allow=ulaw,alaw,gsm
canreinvite=no
nat=no
context=from-sip
;;; ''Beginning of stuff for NAT support''
externip====my.static.ip.address.or.Fully.Qualified.Dynamic.Domain.Name===
localnet====my.local.internal.ip.address/net.mask===
;;; ''End of stuff for NAT support''
register => ===yourusername===:[email protected]:5060/===8885551234===
sip.conf
[telasip-gw]
type=peer
username=yourusername
secret====abcdef9876===
port=5060
host=gw3.telasip.com
context=from-telasip
relaxdtmf=yes
qualify=yes
canreinvite=no
insecure=very
disallow=all
allow=ulaw
dtmfmode=rfc2833
progressinband=yes
nat=yes
extensions.conf
[from-sip]
;;; Default context for all incoming SIP calls without a specific context definition
exten => _X.,1,Congestion
[from-telasip]
;;; Incoming calls enter into this context
;;; I'll configure it to start the EchoTest
exten => 8885551234,1,Answer
exten => 8885551234,2,NoOp(==> ${TIMESTAMP}: Starting EchoTest for ${CALLERIDNUM})
exten => 8885551234,3,Wait(2)
exten => 8885551234,4,Playback(demo-echotest)
exten => 8885551234,5,Echo
exten => 8885551234,6,Playback(demo-echodone)
exten => 8885551234,7,NoOp(==> ${TIMESTAMP}: Ending EchoTest for ${CALLERIDNUM})
exten => 8885551234,8,Hangup
[default]
;;; Call out to Tell-me's 800 info directory
exten => 18005551212,1,Dial(SIP/telasip-gw/18005551212)