Hello!
I made flask server on python which generate links with /<mac_address>.cfg URL path for each telephone in our organization. Configuration files are also generating for each telephone.
If i take new telephone from box. Telephone getting autoprovision server URL from DHCP server and updating all configuration. ALL GOOD.
Then i made some changes in configuration on telephone and started waiting until telephone will make request on autoprovision server. Ok! i see request, but configuration didn't changed back....
Code:
192.168.53.30 - - [20/Feb/2021 08:33:20] "GET /configs/805ec0ae9ab6.boot HTTP/1.1" 404 -
192.168.53.30 - - [20/Feb/2021 08:33:20] "GET /configs/y000000000000.boot HTTP/1.1" 404 -
192.168.53.30 - - [20/Feb/2021 08:33:20] "GET /configs/y000000000052.cfg HTTP/1.1" 404 -
192.168.53.30 - - [20/Feb/2021 08:33:20] "GET /configs/805ec0ae9ab6.cfg HTTP/1.1" 200 -
http headers which my server send
Code:
my server
Content-Type: text/plain; charset=utf-8
Content-Length: 4555
Accept-Ranges: bytes
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
Last-Modified: Sat, 20 Feb 2021 05:46:19 GMT
Server: Werkzeug/1.0.1 Python/3.9.0
Date: Sat, 20 Feb 2021 05:46:19 GMT
i collected logs and find this:
Code:
<134>Feb 20 09:17:38 ATP [1277]: DURL<6+info > [DCMN]GET /configs/805ec0ae9ab6.cfg HTTP/1.1
<134>Feb 20 09:17:38 ATP [1277]: DURL<6+info > [DCMN]Host: 192.168.53.33:8080
<134>Feb 20 09:17:38 ATP [1277]: DURL<6+info > [DCMN]...
<134>Feb 20 09:17:38 ATP [1277]: DURL<6+info > [DCMN]Response header
<134>Feb 20 09:17:38 ATP [1277]: DURL<6+info > [DCMN]HTTP/1.1 200 OK
<134>Feb 20 09:17:38 ATP [1277]: DURL<6+info > [DCMN]Content-Length: 4556
<134>Feb 20 09:17:38 ATP [1277]: DURL<6+info > [DCMN]Date: Sat, 20 Feb 2021 06:17:39 GMT
<134>Feb 20 09:17:38 ATP [1277]: DURL<6+info > [DCMN]Recode is 200, Request ok.
<134>Feb 20 09:17:38 ATP [1277]: DURL<6+info > [DCMN]Connect is short Cleanup curl.
<134>Feb 20 09:17:38 ATP [1277]: DURL<6+info > [DCMN]download common success.
<134>Feb 20 09:17:38 ATP [1277]: ATP <6+info > need_cmp_md5=1
<134>Feb 20 09:17:38 ATP [1277]: ATP <6+info > cfg md5 same!
<131>Feb 20 09:17:39 ATP [1277]: ATP <3+error > [FUNC: atp_trans_get_attr_list, 740] get trans attr error.
<132>Feb 20 09:17:39 ATP [1277]: ATP <4+warnin> error: features.keep_mute.mode
<134>Feb 20 09:17:39 ATP [1277]: ATP <6+info > skip item<features.keep_mute.mode>
<134>Feb 20 09:17:39 ATP [1277]: ATP <6+info > parse item finish
<134>Feb 20 09:17:39 ATP [1277]: ATP <6+info > parse item for rom finish
<133>Feb 20 09:17:39 ATP [1277]: ATP <5+notice> sync switch not open!
<134>Feb 20 09:17:39 ATP [1277]: ATP <6+info > send end provision!!
<134>Feb 20 09:17:39 ATP [1277]: ATP <6+info > auto provision result is 0
<134>Feb 20 09:17:39 GUI [1260:1260]: ZERO<6+info > 859.273.635:process autop msg[ATP_MSG_NOTIFY_AUTOP_END] wparam[1] lparam[0]
<134>Feb 20 09:17:39 ATP [1277]: ATP <6+info > dect dongle state is 0
<134>Feb 20 09:17:39 ATP [1277]: ATP <6+info > Update success, and return
<134>Feb 20 09:17:39 ATP [1277]: ATP <6+info > Upgrade by static config success !
Please help to find what im doing wrong?