cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1871
Views
0
Helpful
6
Replies

SPA112 Provisioning

name29BELVA
Level 1
Level 1

Dear User,

I have a problem with my SPA112 provisioning system.

I have set my dhcp server to push option 160 with the http url of my provisioning server ( http://DNS/provisioning/init.xml ). I have enabled the syslog server on SPA112 but i don't see nothing about resync.

I see GET on my apache webserver.

I don't understand why but my SPA don't reads configuration. I have also tried  http://spaip/admin/resync?http://DNS/provisioning/init.xml with the same result.

Maybe something wrong on my init.xml?

My init.xml file:

<flat-profile>

<Resync_On_Reset> Yes

</Resync_On_Reset>

<Resync_Periodic> 7200

</Resync_Periodic>

<Profile_Rule ua="na">http://DNS/provisioning.php?model=SPA$PSN&mac=$MA</Profile_Rule>

</flat-profile>


My apache log:

192.168.2.254 - - [09/Sep/2013:15:09:41 +0200] "GET /provisioning/init.txt HTTP/1.0" 200 502 "-" "Cisco/SPA112-1.3.1(003) (CCQAT)"

(many times)

6 Replies 6

Dan Lukes
VIP Alumni
VIP Alumni
I see GET on my apache webserver.
...
Yes

7200

And this GET has been caused by resync. So I don't understand what you mean saying "my SPA don't reads configuration" The Apache log show that device did read the configuration according your wishes.

Your configuration order the phone to initiate next resync on reboot or every 7200 seconds.

But despite I don't fully understand your question - turn on log & debug messages and catch them. They should help you to solve a problem you have.

Debug and syslog Messages from SPA1x2 and SPA232D ATA (Analog Telephone Adapters)

Dear, thank you for your answer.

Sorry for my question.

The problem is that spa download the file but not apply.

Thank you for link.

Now log show:

Sep  9 16:56:27 SPA112 ac: f2:c5:35:cf:36 -- Requesting resync http://IP:80/provisioning/init.txt

Sep  9 16:56:27 SPA112 ac: f2:c5:35:cf:36 -- Resync failed: http_get failed

(PS no nat between web server and SPA, only routing and server could ping and open port 80 of the SPA)

Now log show:

Sep  9 16:56:27 SPA112 ac: f2:c5:35:cf:36 -- Requesting resync http://IP:80/provisioning/init.txt

Sep  9 16:56:27 SPA112 ac: f2:c5:35:cf:36 -- Resync failed: http_get failed

It say that phone failed to retrieve document http://IP:80/provisioning/init.txt

The text IP seems not to be neither valid DNS name nor IP address. If it is just obfuscated then dump communication between phone and the http server. Use tcpdump or wireshark or so according your wishes.

Thank you Dan,

But i don't understand how the web-server report 200 to the request. =(

Packet dump will tell you.

Ops... firewall filter =(

Sorry for inconvenience, thank you for all.

Emanuele