Did anybody has implemented SLA with Asterisk 1.4?

Did anybody has implemented SLA on Asterisk 1.4

  • Yes
  • No

0 voters

Then please give the sample conf files. Following through the documentation on Digium. I managed to configure line1 and line2 for my Wildcard TDM400 and the incoming calls also creates pseudo-meetme SLATrunk_line1. But the phone configuration is ambiguous.

Where I have to specify the phone configuration, I have done hints for (station1_line1) on Elmeg phone function keys and I have also tried configuring one of the sip extension with the channel as SIP/station1. But none of them work and the phone doesn’t ring or dial out.

Please please help me make this configuration working.

Was there any kind of SLA support on Asterisk 1.4? Or it is just to claim like on paper that their is SLA support on Asterisk 1.4, but originally it seems there is no working SLA on Asterisk 1.4.

Two weeks ON and not even a single YES, nor there is any answer to my query of sample configs. :unamused:

Moderators please clarify whether SLA is really implementable on Asterisk 1.4?

Have you looked at this article (asterisk.org/node/48342)? If not, it would be where I would start when considering SLA. It’s not SLA in its “truest” sense, rather just an implementation that allows for similar behavior to help those who require it in their PBX systems.

The implementation of SLA in Asterisk is really a “trunk-to-button” map.

It’s more akin to a key system than traditional pbx shared line appearances.

Asterisk still has a way to go before it supports SLA the way we traditionally know it.

Thanks for you replies… I did read the documentation on SLA on Asterisk.Org. I would really appreciate help or any sample config of ‘trunk-to-button’ implementation.

Thanks in advance…

Once I get mine all setup (incoming works and shows lines, working on outgoing dialing now) i can go ahead and post the configs. I’m using the Aastra phones and the TDM400 replica so my configuration shouldn’t be too far off from yours. Hopefully i’ll have it all worked out soon.

zapata.conf

[trunkgroups]

[channels]
context=default
switchtype=national
signalling=fxo_ls
rxwink=300

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes

echocancel=yes
echocancelwhenbridged=yes

rxgain=0.0
txgain=0.0

group=1
callgroup=1
pickupgroup=1
immediate=no

#include zapata-channels.conf

zapata-channels.conf

; Span 1: OPVXA1200/0 "OpenVox A1200P Board 1" 
;;; line="1 OPVXA1200/0/0 FXOKS"
signalling=fxo_ks
callerid="Channel 1" <6001>
mailbox=6001
group=5
context=line1
busycount=no
callprogress=no
channel => 1

;;; line="2 OPVXA1200/0/1 FXOKS"
signalling=fxo_ks
callerid="Channel 2" <6002>
mailbox=6002
group=5
context=line2
busycount=no
callprogress=no
channel => 2

;;; line="3 OPVXA1200/0/2 FXOKS"
signalling=fxo_ks
callerid="Channel 3" <6003>
mailbox=6003
group=5
context=line3
busycount=no
callprogress=no
channel => 3

;;; line="4 OPVXA1200/0/3 FXOKS"
signalling=fxo_ks
callerid="Channel 4" <6004>
mailbox=6004
group=5
context=line4
busycount=no
callprogress=no
channel => 4

;;; line="5 OPVXA1200/0/4 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=sla_stations
channel => 5

;;; line="6 OPVXA1200/0/5 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=sla_stations
channel => 6

;;; line="7 OPVXA1200/0/6 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=sla_stations
channel => 7

;;; line="8 OPVXA1200/0/7 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=sla_stations
channel => 8

sip.conf

[general]
context=default
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes	
allowsubscribe=yes
subscribecontext = sla_stations
notifyringing = yes
notifyhold = yes
[authentication]

[station1]
type=friend
secret=1234
context=sla_stations
host=dynamic
notifyringing=yes
subscribecontext=sla_stations

[station2]
type=friend
secret=1234
context=sla_stations
host=dynamic
notifyringing=yes
subscribecontext=sla_stations

[station3]
type=friend
secret=1234
context=sla_stations
host=dynamic
notifyringing=yes
subscribecontext=sla_stations

[206]
type=friend
secret=1234
mailbox=206
context=sla_stations
host=dynamic
notifyringing=yes
subscribecontect=sla_stations

sla.conf

[general]
attemptcallerid=yes
autocontext=sla_stations
[line1]
type=trunk
device=Local/disa@line1_outbound
autocontext=line1

[line2]
type=trunk
device=Local/disa@line2_outbound
autocontext=line2

[line3]
type=trunk
device=Local/disa@line3_outbound
autocontext=line3

[line4]
type=trunk
device=Local/disa@line4_outbound
autocontect=line4

[station](!)
type=station
trunk=line1
trunk=line2
trunk=line3
trunk=line4
autocontext=sla_stations

[station1](station)
device=SIP/station1

[station2](station)
device=SIP/station2

[station3](station)
device=SIP/station3

[206](station)
device=SIP/206

extensions.conf

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

[globals]
CONSOLE=Console/dsp
;CONSOLE=Zap/1
;CONSOLE=Phone/phone0
IAXINFO=guest	
;IAXINFO=myuser:mypass
TRUNK=Zap/g2					
TRUNKMSD=1

[macro-slaline]
exten => s,1,SLATrunk(${ARG1})
exten => s,n,Goto(s-${SLATRUNK_STATUS}|1)
exten => s-FAILURE,1,Voicemail(1234|u)
exten => s-UNANSWERED,1,Voicemail(1234|u)

[line1]
exten => s,1,Macro(slaline|line1)

[line2]
exten => s,1,Macro(slaline|line2)

[line3]
exten => s,1,Macro(slaline|line3)

[line4]
exten => s,1,Macro(slaline|line4)

[line1_outbound]
exten => disa,1,Disa(no-password|line1_outbound)
exten => _9XXXXXXX.,1,Dial(Zap/5/${EXTEN:1})
exten => 8500,1,VoicemailMain(1234)

[line2_outbound]
exten => disa,1,Disa(no-password|line2_outbound)
exten => _9XXXXXXX.,1,Dial(Zap/6/${EXTEN:1})
exten => 8500,1,VoicemailMain(1234)

[line3_outbound]
exten => disa,1,Disa(no-password|line3_outbound)
exten => _9XXXXXXX.,1,Dial(Zap/7/${EXTEN:1})
exten => 8500,1,VoicemailMain(1234)

[line4_outbound]
exten => disa,1,Disa(no-password|line4_outbound)
exten => _9XXXXXXX.,1,Dial(Zap/8/${EXTEN:1})
exten => 8500,1,VoicemailMain(1234)

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

exten => station2,1,SLAStation(station2)
exten => station2_line1,hint,SLA:station2_line1
exten => station2_line1,1,SLAStation(station2_line1)
exten => station2_line2,hint,SLA:station2_line2
exten => station2_line2,1,SLAStation(station2_line2)
exten => station2_line3,hint,SLA:station2_line3
exten => station2_line3,1,SLAStation(station2_line3)
exten => station2_line4,hint,SLA:station2_line4
exten => station2_line4,1,SLAStation(station2_line4)

exten => station3,1,SLAStation(station3)
exten => station3_line1,hint,SLA:station3_line1
exten => station3_line1,1,SLAStation(station3_line1)
exten => station3_line2,hint,SLA:station3_line2
exten => station3_line2,1,SLAStation(station3_line2)
exten => station3_line3,hint,SLA:station3_line3
exten => station3_line3,1,SLAStation(station3_line3)
exten => station3_line4,hint,SLA:station3_line4
exten => station3_line4,1,SLAStation(station3_line4)

exten => 206_line1,hint,SLA:206_line1
exten => 206_line1,1,SLAStation(206_line1)
exten => 206_line2,hint,SLA:206_line2
exten => 206_line2,1,SLAStation(206_line2)
exten => 206_line3,hint,SLA:206_line3
exten => 206_line3,1,SLAStation(206_line3)
exten => 206_line4,hint,SLA:206_line4
exten => 206_line4,1,SLAStation(206_line4)

exten => 8500,1,VoicemailMain(1234)

I’ve had it working for 1 year on 1.4 and now 1.6 beta. Using Aastra 5xi phones and SIP trunks from a MetaSwitch. Took a while to get the bugs ironed out but with Russell’s advice and lots of trial and error it does work.

asterisk 1.4 SLA

http://www.youtube.com/watch?v=qvbrnqcSU1A

This pretty much using the demo code provided by russel. I also used his patch for chan_sip.c that makes the link go blinky when on hold

So when you configured the Polycom phones, did you map Line 2 to Station1 or did you map it to station1_line1 using the password 1234?

me or mikecx (cause i think mikecx said he was using Aastra phones)

mthomasslo: Can you paste your settings here for us to see since you actually have it working in your office with the Aastra phones? Can you also let me know how you configured the Aastra phones as well? If possible, can we talk over the phone and work together to help me get it working here?

808blogger: Actually I would like to hear from you since you posted that video on Youtube showing the SLA in action. Can you do a screen shot or a video showing how you configured the phones themselves to use SLA?

Thanks everyone!

Dean
Anaheim, CA

No screen shot…

do you know how to do presence monitoring on the polycom (buddy watching)?

Well thats it the same thing.

for example
exten => station1_line1,hint,SLA:station1_line1

here is the setting from my polycom $MAC-directory.xml file you just add a budy with station1_line1 or line2 etc etc…

Line 1 ;first name ;last name station1_line1 ;actual extension 1 ;speed-dial index ;ring type ;divert contact - usually blank 0 ;auto divert 0 ;auto reject 1 ;enables buddy watching - used to set up presence 0 ;buddy block - blocks this contact from watching this phone

[quote=“citapinc”]mthomasslo: Can you paste your settings here for us to see since you actually have it working in your office with the Aastra phones? Can you also let me know how you configured the Aastra phones as well? If possible, can we talk over the phone and work together to help me get it working here?

808blogger: Actually I would like to hear from you since you posted that video on Youtube showing the SLA in action. Can you do a screen shot or a video showing how you configured the phones themselves to use SLA?

Thanks everyone!

Dean
Anaheim, CA[/quote]

OK so if I read your xml script correctly, you are not connecting to an extention called station1_line1, you are simply monitoring the extention station1_line1 is that correct?

Dean
Anaheim, CA