Koozali.org: home of the SME Server

Selintra Sail and SPA942 Two Line Setup

Offline timn

  • *
  • 62
  • +0/-0
    • Nash CDL
Selintra Sail and SPA942 Two Line Setup
« on: August 25, 2006, 09:04:19 PM »
I have been experimenting with Sail and an SPA942 phone to utilise both available extensions with auto provisioning. Thought I would share the results.

Created two extensions in Sail using SPA941 IP Device, and set MAC address the same in both cases. The auto provisioning for the first extension is:

Quote
["spa$MAC.cfg"
<flat-profile>
<Text_Logo> Company Name
</Text_Logo>
<Station_Name> Company Office
</Station_Name>
<Provision_Enable> yes
</Provision_Enable>
<Profile_Rule_B> tftp://192.168.1.1/spa2$MA.cfg
</Profile_Rule_B>
<Upgrade_Enable> yes
</Upgrade_Enable>
<Upgrade_Rule> (!4.1.15)?tftp://192.168.1.1/spa942-4-1-15.bin
</Upgrade_Rule>
<Voice_Mail_Number> *50*
</Voice_Mail_Number>
<Daylight_Saving_Time_Rule> start=4/1/7;end=10/-1/7;save=1
</Daylight_Saving_Time_Rule>
<Date_Format> day/month
</Date_Format>
<Dial_Assistance> Yes
</Dial_Assistance>
<Extension_1_> 1
</Extension_1_>
<Extension_2_> 1
</Extension_2_>
<Short_Name_1_> Office 5001
</Short_Name_1_>
<Short_Name_2_> Office 5001
</Short_Name_2_>
<Default_Ring_1_> 10
</Default_Ring_1_>
<Proxy_1_> 192.168.1.1
</Proxy_1_>
<Outbound_Proxy_1_> 192.168.1.1
</Outbound_Proxy_1_>
<User_ID_1_> 5001
</User_ID_1_>
<Password_1_> 5001
</Password_1_>
<Display_Name_1_> Company Name
</Display_Name_1_>
<Dial_Plan_1_> (*x.|*xx*x.|x.)
</Dial_Plan_1_>
<Time_Zone> GMT
</Time_Zone>
<Time_Format> 12hr
</Time_Format>
<Primary_NTP_Server> 192.168.1.1
</Primary_NTP_Server>
</flat-profile>
]


I manually set the provisioning profile rule on the phone to tftp://192.168.1.1/spa$MA.cfg as DHCP option 66 didn't seem to work. The above also sets the auto upgrade to look for spa942-4-1-15.bin firmware upgrade file on the tftp server. This can be downloaded from sipura as can future upgrades with the rule amended appropriately.

The auto provisioning for the second extension is then:

Quote
["spa2$MAC.cfg"
<flat-profile>
<Extension_3_> 2
</Extension_3_>
<Extension_4_> 2
</Extension_4_>
<Short_Name_3_> Home 5003
</Short_Name_3_>
<Short_Name_4_> Home 5003
</Short_Name_4_>
<Proxy_2_> 192.168.1.1
</Proxy_2_>
<Outbound_Proxy_2_> 192.168.1.1
</Outbound_Proxy_2_>
<SIP_Port_2_> 5060
</SIP_Port_2_>
<User_ID_2_> 5003
</User_ID_2_>
<Password_2_> 5003
</Password_2_>
<Display_Name_2_> Home
</Display_Name_2_>
<Default_Ring_2_> 1
</Default_Ring_2_>
<Dial_Plan_2_> (*x.|*xx*x.|x.)
</Dial_Plan_2_>
</flat-profile>
]


Note the file name must be amended to SPA2$MAC and not just SPA$MAC, and the first provisioning rule above has set the profile rule B on the phone to pick up this additional provision.

Now everything works OK and I have two extensions set up on the phone - one for my office line and one for my home line. Presumably if the two additional extensions were available by purchasing the adtional license from Linksys then profile rule C and D could be used for these and two more extensions created in Sail with the same MAC.

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Selintra Sail and SPA942 Two Line Setup
« Reply #1 on: August 25, 2006, 09:47:26 PM »
Hi Timn

Cool!  8-)

On the DHCP66 issue were you running server gateway or server-only?  


Thanks for this

Kind Regards

Selintra

Offline timn

  • *
  • 62
  • +0/-0
    • Nash CDL
Selintra Sail and SPA942 Two Line Setup
« Reply #2 on: August 25, 2006, 10:03:22 PM »
I am running server gateway mode. There is an entry in dhcpd.conf for tftp-server-name but the phone did not auto-provision. It may be me - a lot of this is relatively new to me - as I plugged the phone in straight from the box at the same time I was still playing with SAIL. I think it was also a 2.11 version. I am currently on 2.13.261

I will try removing the tftp://192.168.1.1 and provision from option 66 - change some parameter and reboot the phone. Will let you know if it works.

Offline timn

  • *
  • 62
  • +0/-0
    • Nash CDL
Selintra Sail and SPA942 Two Line Setup
« Reply #3 on: August 26, 2006, 12:06:24 AM »
OK. I set profile rule and profile rule B on phone to e just the file names SPA$MA ad SPA2$MA respectively. Also set refresh timers to 60 seconds. Nothing happened - no auto provision ( the first SPA$MA should have reset he second back to tftp server address)

Rebooted phone to renew DHCP. Still nothing.

did a save and comit in sail jst to refresh all settings etc. Still nothing

Replace tftp://192.168.1.1/ in front of profile rule for SPA$MA - bingo - phone immediately auto provisions and profile rule B becomes tftp://etc as before.

Option 66 not working

Offline timn

  • *
  • 62
  • +0/-0
    • Nash CDL
Selintra Sail and SPA942 Two Line Setup
« Reply #4 on: August 26, 2006, 02:40:55 PM »
In the profiles above, the Sip_Port_2 should be 5061 not 5060 otherwise the call quality is poor.