Simple SLA with Cisco SPA500 Series

All,

I am very new to Asterisk, and am looking for help implementing a simple SLA configuration on my Cisco SPA500 series phones.

I am using a VoIP provider (SIP) and SIP for the phones.

Can someone give me a very simple SLA setup for two stations? I see everything on the internet and the Definitive Guide, but I cannot figure out the link between the files.

So, I get how to make a phone register to the server, and the server to register to the VoIP. I get incoming and outgoing calls going just fine with no SLA. When I try to turn that over into an SLA trunk, I get lost. I can’t figure out what talks to who, where, in which file (SLA, SIP, and extensions).

Any and all help is greatly appreciated.

Here’s my SIP.CONF:

[code][general]
dtmfmode = rfc2833
context=default
srvlookup=yes
register => user:pass@sms.intelafone.com~3600
allowguest=no

[vestalink]
type=peer
context=line1 ;from-vestalink
host=sms.intelafone.com
fromdomain=sms.intelafone.com
defaultuser=user
fromuser=user
secret=pass
insecure=port,invite
disallowed_methods=UPDATE
directmedia=no
videosupport=no
disallow=all
allow=g722
allow=ulaw
checkmwi=360
session-expires=3600
;callbackextension=line1

[VLDirect] ;this is my direct line that works properly
context=to-vestalink
type=peer
;defaultuser=1000
secret=pass
host=dynamic
qualify=yes
disallow=all
allow=g722
allow=ulaw

[station1] ;attempted SLA station1
context=sla_stations
type=peer
;defaultuser=1000
secret=pass
host=dynamic
qualify=yes
disallow=all
allow=g722
allow=ulaw

[station2] ;attempted SLA station2 on same phone but different "key"
context=context=sla_stations
type=peer
;defaultuser=1001
secret=pass
host=dynamic
qualify=yes
disallow=all
allow=g722
allow=ulaw
[/code]

Here is my SLA.CONF:

[code][line1]
type=trunk
device=Local/disa@line1_outbound
;device=SIP/vestalink ;saw something on the internet for this - attempted but didn’t work.

[station1]
type=station
device=SIP/station1
trunk=line1

[station2]
type=station
device=SIP/station2
trunk=line1[/code]

Here is my extensions.conf:

[code][general]
static=yes
writeprotect=no
clearglobalvars=no

[globals]
; Global variables goes here

[default]
;include => sla_stations
;include => to-vestalink
;include => from-vestalink

;[line1]
;exten => s,1,SLATrunk(line1)
;exten => _NXXXXXXX,1,Goto(s,1)
;exten => _1NXXNXXXXXXX,Goto(s,1)
;exten => _NXXNXXXXXX, Goto(s,1)
;exten => _X.,1,Goto(s,1)

;[sla_stations]
;exten => station1,1,SLAStation(station1)
;exten => station1_line1,hint,SLA:station1_line1
;exten => station1_line1,1,SLAStation(station1_line1)

;exten => station2,1,SLAStation(station2)
;exten => station2_line1,hint,SLA:station2_line1
;exten => station2_line1,1,SLAStation(station2_line1)

;[line1_outbound]
;exten => disa,1,DISA(no-password,line1_outbound)
;exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@vestalink)

[from-vestalink]
exten => s,1,Dial(SIP/VLDirect)

[to-vestalink]
exten => _*123,1,Set(CALLERID(all)=“me” )
same => n,Dial(SIP/${EXTEN}@vestalink)

exten => _XX,1,Set(CALLERID(all)=“me” )
same => n,Dial(SIP/${EXTEN}@vestalink)

exten => _NXXNXXXXXX,1,Set(CALLERID(all)=“me” )
same => n,Dial(SIP/${EXTEN}@vestalink)

exten => _1NXXNXXXXXX,1,Set(CALLERID(all)=“me” )
same => n,Dial(SIP/${EXTEN}@vestalink)
[/code]

extensions.conf is currently set to allow the primary line to get in and out, as a test.

Nobody has any clue how this works?