These are Asterisk settings for using TEO Zebra VoIP service. It was tested on version 1.6.2.5.
sip.conf:
[general]
context=default ; Default context for incoming calls
allowoverlap=no ; Disable overlap dialing support. (Default is yes)
udpbindaddr=0.0.0.0 ; IP address to bind UDP listen socket to (0.0.0.0 binds to all)
; Optionally add a port number, 192.168.1.1:5062 (default is port 5060)
bindport=5060
srvlookup=yes ; Enable DNS SRV lookups on outbound calls
; Note: Asterisk only uses the first host
; in SRV records
; Disabling DNS SRV lookups disables the
; ability to place SIP calls based on domain
; names to some other SIP users on the Internet
dtmfmode = rfc2833 ; Set default dtmfmode for sending DTMF. Default: rfc2833
session-timers=originate
session-expires=1800
session-minse=180
session-refresher=uas
register => 370700XXXXX:[email protected]
[zebravoip]
type=peer
context=default
secret=pass_word
remotesecret=pass_word
defaultuser=370700XXXXX
fromuser=370700XXXXX
fromdomain=skambink.zebra.lt
;host=skambink.zebra.lt
host=212.59.4.20
qualify=yes
context=default
transport=udp
insecure=invite
outboundproxy=212.59.4.20
port=5060
extensions.conf file:
[general]
static=yes
writeprotect=yes
clearglobalvars=no
[globals]
CONSOLE=Console/dsp ; Console interface for demo
TRUNK=DAHDI/G2 ; Trunk interface
[default]
exten => s,1,Dial(Console/dsp)
exten => s,2,Hangup()
exten => _8XXXXXXXX,1,Dial(SIP/${EXTEN}@zebravoip,,r)
exten => _8XXXXXXXX,2,Hangup()
exten => _9.,1,Dial(SIP/${EXTEN}@zebravoip,,r)
exten => _9.,2,Hangup()