09-09-2013 06:13 AM - edited 03-21-2019 10:07 AM
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)
09-09-2013 07:50 AM
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)
09-09-2013 07:58 AM
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)
09-09-2013 11:41 AM
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.
09-09-2013 11:43 AM
Thank you Dan,
But i don't understand how the web-server report 200 to the request. =(
09-09-2013 12:19 PM
Packet dump will tell you.
09-09-2013 12:50 PM
Ops... firewall filter =(
Sorry for inconvenience, thank you for all.
Emanuele
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide