PDA

View Full Version : Voip tim cwmp con openwrt


forzaferrarileo
18-09-2016, 00:23
Vedendo che i fritzbox 7490 possono fare il provisioning voip tramite cwmp , mi stavo chiedendo se secondo voi ( o se qualcuno già ci ha provato ) , è possibile scaricare i dati della propria linea tramite easycwmp ( o altri ) , su openwrt o distro simili


se è fattibile rimetto la buildroot di openwrt e tento

forzaferrarileo
19-09-2016, 20:32
ho installato easycwmp , e ho provato a buttarci qualche parametro nella configurazione , riuscendo a dialogare con il server acs , ricevendo però risposte vuote ( tra le altre cose ho lasciato vuoto user e passwd )

se vi può interessare , questo è il log

root@OpenWrt:~# /etc/init.d/easycwmpd reload
config_init_local(53):: easycwmp.@local[0].interface=eth0
config_init_local(63):: easycwmp.@local[0].port=10500
config_init_local(81):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_acs(147):: easycwmp.@acs[0].scheme=https
config_init_acs(165):: easycwmp.@acs[0].hostname=regman-tl.interbusiness.it
config_init_acs(175):: easycwmp.@acs[0].port=10500
config_init_acs(181):: easycwmp.@acs[0].path=/acs/
config_init_acs(187):: easycwmp.@acs[0].periodic_enable=1
config_init_acs(193):: easycwmp.@acs[0].periodic_interval=100
cwmp_init_deviceid(665): in device you must define serial_number
+++ HTTP SERVER CONFIGURATION +++
NOT BOUND TO IP
port: '10500'
--- HTTP SERVER CONFIGURATION ---
root@OpenWrt:~# +++ HTTP CLIENT CONFIGURATION +++
http_client_init(55):: url: https://(null):(null)@regman-tl.interbusiness.it:10500/acs/
http_client_init(61):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
> POST /acs/ HTTP/1.1
Host: regman-tl.interbusiness.it:10500
Accept: */*
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 3047
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Date: Mon, 19 Sep 2016 17:27:52 GMT
< Server: Apache-Coyote/1.1
< Content-Type: text/xml
< Content-Length: 514
< Set-Cookie: JSESSIONID=AC478E894D85F3EE79B96F495EEB3B2D; Path=/acs/
< Vary: Accept-Encoding
<
+++ RECEIVED HTTP RESPONSE (PART) +++

<SOAP-ENV:Envelope xmlns:cwmp="urn:dslforum-org:cwmp-1-2" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="SOAP-ENV:Envelope"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">
</cwmp:ID></SOAP-ENV:Header><SOAP-ENV:Body><cwmp:InformResponse><MaxEnvelopes>1</MaxEnvelopes></cwmp:InformResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>--- RECEIVED HTTP RESPONSE (PART) ---
+++ RECEIVED HTTP RESPONSE +++

<SOAP-ENV:Envelope xmlns:cwmp="urn:dslforum-org:cwmp-1-2" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="SOAP-ENV:Envelope"><SOAP-ENV:Header><cwmp:ID SOAP-ENV:mustUnderstand="1">
</cwmp:ID></SOAP-ENV:Header><SOAP-ENV:Body><cwmp:InformResponse><MaxEnvelopes>1</MaxEnvelopes></cwmp:InformResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>--- RECEIVED HTTP RESPONSE ---
> POST /acs/ HTTP/1.1
Host: regman-tl.interbusiness.it:10500
Accept: */*
Cookie: JSESSIONID=AC478E894D85F3EE79B96F495EEB3B2D
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 501

< HTTP/1.1 204 No Content
< Date: Mon, 19 Sep 2016 17:27:52 GMT
< Server: Apache-Coyote/1.1
< Content-Type: text/xml
< Vary: Accept-Encoding
< Content-Length: 0
<
+++ RECEIVED EMPTY HTTP RESPONSE +++
> POST /acs/ HTTP/1.1
Host: regman-tl.interbusiness.it:10500
Accept: */*
Cookie: JSESSIONID=AC478E894D85F3EE79B96F495EEB3B2D
User-Agent: easycwmp
Content-Type: text/xml
Content-Length: 0

< HTTP/1.1 204 No Content
< Date: Mon, 19 Sep 2016 17:27:52 GMT
< Server: Apache-Coyote/1.1
< Content-Type: text/xml
< Set-Cookie: JSESSIONID=A1719D6845834D5D0F731C872E88AEA3; Path=/acs/
< Vary: Accept-Encoding
< Content-Length: 0
<
+++ RECEIVED EMPTY HTTP RESPONSE +++