I’m having a problem getting shared lines working in a new install on Asterisk 1.4.2. Yes, I have read and re-read all of the documentation. I must be doing something wrong that I simply don’t understand. I think it may be related to the subscriptions, but I don’t know how to fix it.
Line 101 is currently registered on a Cisco 7970 running SIP - (waiting for my FXO/FXS device to arrive). Station1 is an Xlite softphone. Station2 is also being registered to a second line on the same Cisco 7970.
Can someone please tell me what I’m doing wrong?
computerCLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
station2/3302 192.168.254.100 D 5060 Unmonitored
station1/station1 192.168.254.10 D 63214 OK (107 ms)
101/101 192.168.254.100 D 5060 Unmonitored
3 sip peers [Monitored: 1 online, 0 offline Unmonitored: 2 online, 0 offline]
computerCLI> sip show subscriptions
Peer User Call ID Extension Last state Type Mailbox
0 active SIP subscriptions
computer*CLI>
sla.conf
[line1]
type=trunk
device=SIP/101
station
type=station
trunk=line1
station1
station=SIP/station1
station2
station=SIP/station2
extensions.conf
[general]
[globals]
[macro-slaline]
exten => s,1,SLATrunk(${ARG1})
exten => s,n,Goto(s-${SLATRUNK_STATUS}|1)
exten => s-FAILURE,1,Voicemail(1000|u)
exten => s-UNANSWERED,1,Voicemail(1000|u)
[line1]
exten => s,1,Macro(slaline|line1)
[line1_outbound]
exten => disa,1,Disa(no-password|line1_outbound)
exten => *1000,1,VoicemailMain(1000)
[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)
exten => *1001,1,VoicemailMain(1000)
sip.conf
[general]
; Trunk
[101]
type=friend
host=dynamic
secret=xxxxx
context=line1
nat=no
callgroup=1
pickupgroup=1
mailbox=*1000
; User1
[station1]
type=friend
host=dynamic
secret=xxxxxxx
context=sla_stations
subscribecontext=sla_stations
nat=no
callgroup=1
pickupgroup=1
mailbox=*1000
qualify=yes