[asterisk-users] Getting config from SPA-941 or 942 phones

Andres andres at telesip.net
Wed Mar 19 01:37:04 CDT 2008


James Lamanna wrote:

>Hi,
>Is it possible to get the XML config off of a Linksys SPA-941 or 942 phone?
>I've tried http://[ip address]/admin/spacfg.xml however that file
>doesn't appear to exist.
>
>  
>
Yes it is.  It requires a 2 step process.
1.  Configure the Provisioning Parameter "Report Rule" to point to your 
tftp server and define a file.
For example:  Report Rule tftp://192.168.3.110/spa941.xml
Create the file using the touch command #touch /tftpboot/spa941.xml
chmod 777 /tftpboot/spa941.xml
Also make sure the SPA Parameter Auth Resync-Reboot is set to NO.

2.  Now generate a SIP Notify Message from your server with the 'report' 
header.  I generaly use sipsak for this (http://sipsak.org/)
First I generate a text file called report.txt
# cat report.txt
NOTIFY sip:$user$@$dsthost$ SIP/2.0
From: sip:$srchost$:$port$
To: sip:$user$@$dsthost$
Call-ID: 46324764346@$srchost$
CSeq: 1 NOTIFY
Max-Forwards: 70
Event: report
User-Agent: sipsak
Content-Length: 0

...and then I execute the command:
sipsak -s sip:1002 at 192.168.3.12 -G -f ./report.txt
(were 1002 is the username configured on the SPA and 192.168.3.12 is 
it's IP Address)

This will cause the SPA to do a tftp put with all the XML config into 
your spa941.xml file.

Andres
http://www.neuroredes.com

>Thanks.
>
>_______________________________________________
>-- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
>asterisk-users mailing list
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>  
>




More information about the asterisk-users mailing list