Shared Line Appearance + Polycom 320 + Presence

Before I go completely bald, could someone who has successfully setup SLA with Polycom 320’s AND have the presece LED work I would be most grateful.

With my SLA configs below I am able to make an inbound call on my DAHDI channel and all SLA stations ring on line 1 however if someone answers the line, normally an LED will display on all other phones when that shared line is in use however I a unable to replicate this behavior and although I think I may have SLA working perhaps it’s not and I’ve just got lucky…

sip.cfg:

sip.conf

[1001]
qualify=yes
nat=no
pickupgroup=1
callerid=Station1  <1001>
context=sla_stations
canreinvite=no
vmexten=1001
secret=1001
username=1001
host=dynamic
callgroup=1
subscribecontext=local-extensions
dtmfmode=rfc2833
type=friend
mailbox=1001
disallow=all
allow=alaw

[1002]
qualify=yes
nat=no
pickupgroup=1
callerid=Station2  <1002>
context=sla_stations
canreinvite=no
vmexten=1002
secret=1002
username=1002
host=dynamic
callgroup=1
subscribecontext=local-extensions
dtmfmode=rfc2833
type=friend
mailbox=1002
disallow=all
allow=alaw

sla.conf

[line1] 
type=trunk  
device=DAHDI/1 
autocontext=line1  
  
[station1]
type=station  
trunk=line1  
device=SIP/1001
autocontext=sla_stations  
  
[station2]
type=station  
trunk=line1  
device=SIP/1002
autocontext=sla_stations 

extensions.conf

[line1]  
exten => s,1,SLATrunk(line1)  
  
[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)  

MAC-registration.cfg

<PHONE_OVERRIDES>
  <OVERRIDES
        reg.1.displayName="Station1"
        reg.1.server.1.address="192.168.1.69"
        reg.1.server.1.transport=""
        reg.1.address="1001"
        reg.1.label="1001"
        reg.1.auth.userId="1001"
        reg.1.auth.password="1001"
        reg.1.outboundProxy.address=""
        reg.1.outboundProxy.port="5060"
        reg.1.outboundProxy.transport=""
        reg.1.lineKeys="1"
  />
</PHONE_OVERRIDES>

<PHONE_OVERRIDES>
  <OVERRIDES
        reg.1.displayName="Station2"
        reg.1.server.1.address="192.168.1.69"
        reg.1.server.1.transport=""
        reg.1.address="1002"
        reg.1.label="1002"
        reg.1.auth.userId="1002"
        reg.1.auth.password="1002"
        reg.1.outboundProxy.address=""
        reg.1.outboundProxy.port="5060"
        reg.1.outboundProxy.transport=""
        reg.1.lineKeys="1"
  />
</PHONE_OVERRIDES>

MAC-directory.xml

<directory>
	<item_list>
		<item>
			<ln></ln>
			<fn>SLA</fn>
			<ct>station1_line1@192.168.1.69</ct>
			<sd>1</sd>
			<bw>1</bw>
		</item>
	</item_list>
</directory>

<directory>
	<item_list>
		<item>
			<ln></ln>
			<fn>SLA</fn>
			<ct>station2_line1@192.168.1.69</ct>
			<sd>1</sd>
			<bw>1</bw>
		</item>
	</item_list>
</directory>

if someone could please point me in the right direction that would be great!

Thanks a ton
Byron

Interestingly it suggests on the following page:

voip-info.org/wiki/view/Asterisk+presence

How does one add an “extension of the phone you wish to monitor” when it’s a shared line?

I don’t believe anything stops your having specific extension numbers for a device, as well as the shared one, and the specific one could presumably be a hint only one.

Hello again David, thanks for all your replies on other threads too.

I found my problem. I had the following variable set:
subscribecontext=local-extensions

After removing this the icon next to the shared line changed from a keypad to a person icon and now the LED’s work as expected! It’s only taken a full day to figure that out…

Regards
Byron

Hey guys,
I used SLA a long time ago, and was told by lots of people then that it was just a hack. I did implement it for a customer who did not like the way it worked at all. It seemed to lag after a while. This was on Grandstream phones at the time and was probably about 3 years ago. My question is how well does it work now? Especially with Polycom, and Linksys phones?
Thanks

Hi riddlebox,

I’ve only had this working in a development environment with 3 Polycom 320’s. One of them acting as the inbound trunk. I can say with my experience to date (with the exception of the initial setup), it’s been pretty reliable and I’ve not noticed any of the lag you speak of.

Today I will be completing the implementation with 3 Polycom 320 and one STX analog line and this will be used in a live enviroment, after this week I will provide you with an update on whether we had any issues.

Regards
Byron