Koozali.org: home of the SME Server

Cisco SPA504G Phones on 3.1.128

Offline compsos

  • *
  • 472
  • +0/-0
Cisco SPA504G Phones on 3.1.128
« on: October 06, 2011, 09:52:26 AM »
Hi All
Has anyone managed to provision a Cisco SPA504G Phone?
They connect to network OK, but are not seen as an "orphan" by sail when other brands are fine.
Have setup the required files and watch the console as the phone requests the file. Can find settings from the file in the Web interface to the phone. It simply does not register.

May have come across 1 bug in that the SEP$MA.cfg file writes to tftpboot directory with the first line for the filename (ie) ["SEP$MA.cfg as the 1st line. Otherwise the file looks fine.

TIA
Regards

Gordon............

Offline compsos

  • *
  • 472
  • +0/-0
Re: Cisco SPA504G Phones on 3.1.128
« Reply #1 on: October 08, 2011, 06:08:06 AM »
Looks like the bug was a hidden character from cut and paste. Reconstructed Sip definition is not echoing the 1st Line.

Our definitions are and appear to be working OK

SIP Cisco 504G

Code: [Select]
["SEP$mac.cfg"
<flat-profile>
   <Station_Name ua="na">$ext</Station_Name>
  <Display_Name_1_ ua="na">$ext</Display_Name_1_>
  <User_ID_1_ ua="na">$ext</User_ID_1_>
  <Password_1_ ua="na">$password</Password_1_>
  <Resync_Periodic>432000</Resync_Periodic>

  <!-- Attendant Key LED Pattern -->

  <Application_LED ua="na"></Application_LED>
  <Serv_Subscribe_Failed_LED ua="na"></Serv_Subscribe_Failed_LED>
  <Serv_Subscribing_LED ua="na"></Serv_Subscribing_LED>
  <SNRM_Day_Mode_LED ua="na"></SNRM_Day_Mode_LED>
  <SNRM_Night_Mode_LED ua="na"></SNRM_Night_Mode_LED>
  <Parking_Lot_Idle_LED ua="na"></Parking_Lot_Idle_LED>
  <Parking_Lot_Busy_LED ua="na"></Parking_Lot_Busy_LED>
  <BLF_Idle_LED ua="na"></BLF_Idle_LED>
  <BLF_Ringing_LED ua="na"></BLF_Ringing_LED>
  <BLF_Busy_LED ua="na"></BLF_Busy_LED>
  <BLF_Held_LED ua="na"></BLF_Held_LED>

  <!-- Unit 1 -->

  <Unit_1_Key_1 ua="na"></Unit_1_Key_1>
  <Unit_1_Key_2 ua="na"></Unit_1_Key_2>
  <Unit_1_Key_3 ua="na"></Unit_1_Key_3>
  <Unit_1_Key_4 ua="na"></Unit_1_Key_4>
  <Unit_1_Key_5 ua="na"></Unit_1_Key_5>
  <Unit_1_Key_6 ua="na"></Unit_1_Key_6>
  <Unit_1_Key_7 ua="na"></Unit_1_Key_7>
  <Unit_1_Key_8 ua="na"></Unit_1_Key_8>
  <Unit_1_Key_9 ua="na"></Unit_1_Key_9>
  <Unit_1_Key_10 ua="na"></Unit_1_Key_10>
  <Unit_1_Key_11 ua="na"></Unit_1_Key_11>
  <Unit_1_Key_12 ua="na"></Unit_1_Key_12>
  <Unit_1_Key_13 ua="na"></Unit_1_Key_13>
  <Unit_1_Key_14 ua="na"></Unit_1_Key_14>
  <Unit_1_Key_15 ua="na"></Unit_1_Key_15>
  <Unit_1_Key_16 ua="na"></Unit_1_Key_16>
  <Unit_1_Key_17 ua="na"></Unit_1_Key_17>
  <Unit_1_Key_18 ua="na"></Unit_1_Key_18>
  <Unit_1_Key_19 ua="na"></Unit_1_Key_19>
  <Unit_1_Key_20 ua="na"></Unit_1_Key_20>
  <Unit_1_Key_21 ua="na"></Unit_1_Key_21>
  <Unit_1_Key_22 ua="na"></Unit_1_Key_22>
  <Unit_1_Key_23 ua="na"></Unit_1_Key_23>
  <Unit_1_Key_24 ua="na"></Unit_1_Key_24>
  <Unit_1_Key_25 ua="na"></Unit_1_Key_25>
  <Unit_1_Key_26 ua="na"></Unit_1_Key_26>
  <Unit_1_Key_27 ua="na"></Unit_1_Key_27>
  <Unit_1_Key_28 ua="na"></Unit_1_Key_28>
  <Unit_1_Key_29 ua="na"></Unit_1_Key_29>
  <Unit_1_Key_30 ua="na"></Unit_1_Key_30>
  <Unit_1_Key_31 ua="na"></Unit_1_Key_31>
  <Unit_1_Key_32 ua="na"></Unit_1_Key_32>

  <!-- Unit 2 -->

  <Unit_2_Key_1 ua="na"></Unit_2_Key_1>
  <Unit_2_Key_2 ua="na"></Unit_2_Key_2>
  <Unit_2_Key_3 ua="na"></Unit_2_Key_3>
  <Unit_2_Key_4 ua="na"></Unit_2_Key_4>
  <Unit_2_Key_5 ua="na"></Unit_2_Key_5>
  <Unit_2_Key_6 ua="na"></Unit_2_Key_6>
  <Unit_2_Key_7 ua="na"></Unit_2_Key_7>
  <Unit_2_Key_8 ua="na"></Unit_2_Key_8>
  <Unit_2_Key_9 ua="na"></Unit_2_Key_9>
  <Unit_2_Key_10 ua="na"></Unit_2_Key_10>
  <Unit_2_Key_11 ua="na"></Unit_2_Key_11>
  <Unit_2_Key_12 ua="na"></Unit_2_Key_12>
  <Unit_2_Key_13 ua="na"></Unit_2_Key_13>
  <Unit_2_Key_14 ua="na"></Unit_2_Key_14>
  <Unit_2_Key_15 ua="na"></Unit_2_Key_15>
  <Unit_2_Key_16 ua="na"></Unit_2_Key_16>
  <Unit_2_Key_17 ua="na"></Unit_2_Key_17>
  <Unit_2_Key_18 ua="na"></Unit_2_Key_18>
  <Unit_2_Key_19 ua="na"></Unit_2_Key_19>
  <Unit_2_Key_20 ua="na"></Unit_2_Key_20>
  <Unit_2_Key_21 ua="na"></Unit_2_Key_21>
  <Unit_2_Key_22 ua="na"></Unit_2_Key_22>
  <Unit_2_Key_23 ua="na"></Unit_2_Key_23>
  <Unit_2_Key_24 ua="na"></Unit_2_Key_24>
  <Unit_2_Key_25 ua="na"></Unit_2_Key_25>
  <Unit_2_Key_26 ua="na"></Unit_2_Key_26>
  <Unit_2_Key_27 ua="na"></Unit_2_Key_27>
  <Unit_2_Key_28 ua="na"></Unit_2_Key_28>
  <Unit_2_Key_29 ua="na"></Unit_2_Key_29>
  <Unit_2_Key_30 ua="na"></Unit_2_Key_30>
  <Unit_2_Key_31 ua="na"></Unit_2_Key_31>
  <Unit_2_Key_32 ua="na"></Unit_2_Key_32>
</flat-profile>
]

General Descriptor spa504G.cfg

Code: [Select]
<flat-profile>
<Resync_On_Reset>Yes</Resync_On_Reset>
<Resync_Periodic>10</Resync_Periodic>
<Profile_Rule>tftp://$localip/SEP$MA.cfg</Profile_Rule>
<Primary_NTP_Server ua="na">$localip</Primary_NTP_Server>
<Time_Zone ua="na">GMT+10:00</Time_Zone>
<Date_Format ua="na">day/month</Date_Format>
<Daylight_Saving_Time_Enable ua="na">No</Daylight_Saving_Time_Enable>
<TFTP_Server ua="na">$localip</TFTP_Server>
<Current_Gateway ua="na">$localip</Current_Gateway>
<Primary_DNS ua="na">$localip</Primary_DNS>
<Proxy_1_ ua="na">$localip</Proxy_1_>
<Server_Type ua="na">Asterisk</Server_Type>
<Dial_Plan_1_> (*x.|*xx*x.|x.)</Dial_Plan_1_>
<Attendant_Console_Call_Pickup_Code ua="na">*8</Attendant_Console_Call_Pickup_Code>
<Signaling_Protocol group="System/System_Configuration">SIP</Signaling_Protocol>
<SPCP_Auto-detect group="System/System_Configuration">No</SPCP_Auto-detect>
<Upgrade_Enable ua="na">Yes</Upgrade_Enable>
<Upgrade_Error_Retry_Delay ua="na">3600</Upgrade_Error_Retry_Delay>
<Downgrade_Rev_Limit ua="na"></Downgrade_Rev_Limit>
<Upgrade_Rule ua="na">( $SWVER ne 7.4.9a )? tftp://$localip/sw/spa50x-30x-7-4-9a.bin</Upgrade_Rule>
<Log_Upgrade_Request_Msg ua="na">$PN $MAC -- Requesting upgrade $SCHEME://$SERVIP:$PORT$PATH</Log_Upgrade_Request_Msg>
<Log_Upgrade_Success_Msg ua="na">$PN $MAC -- Successful upgrade $SCHEME://$SERVIP:$PORT$PATH -- $ERR</Log_Upgrade_Success_Msg>
<Log_Upgrade_Failure_Msg ua="na">$PN $MAC -- Upgrade failed: $ERR</Log_Upgrade_Failure_Msg>
<License_Keys ua="na"></License_Keys>
</flat-profile>

Just got to get the message code working. When it is set to *50* the phone drops the last asterisk and fails. It appears to by design in the phones. Any suggestions?
Regards

Gordon............

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Cisco SPA504G Phones on 3.1.128
« Reply #2 on: October 21, 2011, 04:05:29 PM »
HI Gordon

A few phone types won't allow a trailing star (Gigaset spring to mind).  In any event, you can use an 8 instead of a trailing star on any of these codes and they will work just fine.  So you can do *508.

Kind Regards

S

Offline compsos

  • *
  • 472
  • +0/-0
Re: Cisco SPA504G Phones on 3.1.128
« Reply #3 on: October 22, 2011, 12:17:00 AM »
Hi Jeff
I assume that would be the "8" from the top of the keyboard and not the number pad?

I have found the Cisco already have their own defined "dial strings" and adding a "|#xx#." to the provisioning or the web page of the phone works.

But on provisioning we have a 2 systems using Cisco 504 and 508 phones that read the provisioning files and adjust most parameters but not the username or password. We have had to addd it manually via the web page to register the hand sets. I am sure it has to be in the SEP$MAC.cfg file tripping out some where. Do you have an example of working file to test? Thanks
Regards

Gordon............