EasyCwmp - easycwmp
View Issue Details
0000388easycwmp[All Projects] Questionpublic2019-10-07 08:022019-10-07 23:50
0000388: after change oui and serialnumber get error 403 libcurl
why after change oui or serialnumber libcurl get error 403 from server
In defualt mode I can easily connect
But after changing the serial number or oui get error 403
I don't mind being connected before or for the first time I want to connect
No tags attached.
Issue History
2019-10-07 08:02komeilkmaNew Issue
2019-10-07 12:30mohamed.kallelNote Added: 0000931
2019-10-07 12:35komeilkmaNote Added: 0000932
2019-10-07 13:06mohamed.kallelNote Added: 0000933
2019-10-07 13:06mohamed.kallelNote Added: 0000934
2019-10-07 13:11komeilkmaNote Added: 0000935
2019-10-07 13:14komeilkmaNote Added: 0000936
2019-10-07 13:19komeilkmaNote Added: 0000937
2019-10-07 13:22komeilkmaNote Added: 0000938
2019-10-07 13:28komeilkmaNote Added: 0000939
2019-10-07 13:30komeilkmaNote Added: 0000940
2019-10-07 15:01mohamed.kallelNote Added: 0000941
2019-10-07 15:05komeilkmaNote Added: 0000942
2019-10-07 15:10komeilkmaNote Edited: 0000942bug_revision_view_page.php?bugnote_id=942#r383
2019-10-07 15:32mohamed.kallelNote Added: 0000943
2019-10-07 15:37komeilkmaNote Added: 0000944
2019-10-07 15:42mohamed.kallelNote Added: 0000945
2019-10-07 15:45komeilkmaNote Added: 0000946
2019-10-07 15:58mohamed.kallelNote Added: 0000947
2019-10-07 16:02komeilkmaNote Added: 0000948
2019-10-07 16:03komeilkmaNote Edited: 0000948bug_revision_view_page.php?bugnote_id=948#r385
2019-10-07 17:51komeilkmaNote Added: 0000949
2019-10-07 20:22mohamed.kallelNote Added: 0000950
2019-10-07 20:23mohamed.kallelNote Added: 0000951
2019-10-07 23:49komeilkmaNote Added: 0000952
2019-10-07 23:50komeilkmaNote Edited: 0000952bug_revision_view_page.php?bugnote_id=952#r387

2019-10-07 12:30   
New serial Number (and device info) may be is not defined in the server.
2019-10-07 12:35   
There is no serial number defined on the acs server
Each time the serial number connection is sent and then defined
The initial serial number and oui (FFFFFF FFFFFF123456) were not defined, but the connection was established
2019-10-07 13:06   
what is your ACS server?
2019-10-07 13:06   
please send the files you changed
send log
send traffic capture
2019-10-07 13:11   
AV System ACS
ok I'll send now
2019-10-07 13:14   
this is my config

                                                                                                                                                                                                                   config local option interface 'wwan0' option port '7547' option ubus_socket '/var/run/ubus.sock' option date_format '%FT%T%z' option username 'easycwmp' option password 'easycwmp' option authentication 'Digest' option logging_level '3' config acs option url '' [^] option username 'acs' option password 'acs' option periodic_enable '1' option periodic_interval '100' option periodic_time '0001-01-01T00:00:00Z' config device option oui 'KKKKKK' option serial_number 'KKKKKK123456' option manufacturer 'openwrt' option product_class 'Generic' option hardware_version 'v1' option software_version 'v1'
2019-10-07 13:19   
this id log of easycwmp

start session
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: configured acs url [^]
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: external script init
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: external: execute inform parameter
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: send Inform
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: LibCurl Error: The requested URL returned error: 403 Forbidden
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: sending http message failed
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: sending Inform failed
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: external: execute apply service
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: external script exit
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: end session failed
Mon Oct 7 09:20:49 2019 daemon.notice easycwmpd: retry session in 15 sec, RetryCount = 2
2019-10-07 13:22   
this is config file

config local
    option interface 'wwan0'
    option port '7547'
    option ubus_socket '/var/run/ubus.sock'
    option date_format '%FT%T%z'
    option username 'easycwmp'
    option password 'easycwmp'
    option authentication 'Digest'
    option logging_level '4'

config acs
    option url '' [^]
    option username 'acs'
    option password 'acs'
    option periodic_enable '1'
    option periodic_interval '100'
    option periodic_time '0001-01-01T00:00:00Z'

config device
    option oui 'KKKKKK'
    option serial_number 'KKKKKK123456'
    option manufacturer 'openwrt'
    option product_class 'Geberic'
    option hardware_version 'v1'
    option software_version 'v1'
2019-10-07 13:28   
this is xml that send

User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
Content-Length: 3200
Expect: 100-continue

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
    xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/" [^]
    xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/" [^]
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" [^]
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" [^]
        <cwmp:ID soap_env:mustUnderstand="1">1</cwmp:ID>
            <Event soap_enc:arrayType="cwmp:EventStruct[2]">
                    <EventCode>0 BOOTSTRAP</EventCode>
                    <CommandKey />
                    <EventCode>2 PERIODIC</EventCode>
                    <CommandKey />
            <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[11]">
                    <Value xsi:type="xsd:string">1.0</Value>
                    <Value xsi:type="xsd:string"></Value>
                    <Value xsi:type="xsd:string">openwrt</Value>
                    <Value xsi:type="xsd:string">KKKKKK</Value>
                    <Value xsi:type="xsd:string">Generic</Value>
                    <Value xsi:type="xsd:string">KKKKKK123456</Value>
                    <Value xsi:type="xsd:string">v1</Value>
                    <Value xsi:type="xsd:string">v1</Value>
                    <Value xsi:type="xsd:string"></Value> [^]
                    <Value xsi:type="xsd:string">n/a</Value>
                    <Value xsi:type="xsd:string"></Value>
2019-10-07 13:30   
After I switch the serial number to FFFFFF123456 and OUI to FFFFFF and restart EASYCWMP worked correct
2019-10-07 15:01   
May be your acs accept only serial number in hexadecimal format
2019-10-07 15:05   
(edited on: 2019-10-07 15:10)
So how does this accept defaults?
Does this mean FFFFF and FFFFFF123456?

2019-10-07 15:32   
by the way OUI should be hexadecimal
FFFFFF is hexadecimal
KKKKKK is not
2019-10-07 15:37   
I tested with this one but still get the Error 403
serial: BBBBBB123456
2019-10-07 15:42   
You have to check with the ACS provider
2019-10-07 15:45   
But I find no reason for this
If acs has problems I shouldn't connect to it even with oui FFFFFF and serial FFFFFF123456
But what happens to ACS after the change? Unchanged ACS This is caused by a change in easycwmp
2019-10-07 15:58   
I checked the inform message sent by your device. ANd there is no issue with it. The issue is from the ACS, because the issue is returning forbidden 403 when OUI is BBBBBB
2019-10-07 16:02   
(edited on: 2019-10-07 16:03)
These acs set the username and password according to oui and serialnumber
And I found that by installing easycwmp even by modifying the modem it recognizes me as the previous modem.
Isn't that the solution for it?

2019-10-07 17:51   
What I do notice is that the server always recognizes me as a similar modem it has previously identified
Is there a solution to this?
2019-10-07 20:22   
This is really ACS issue, you nead to understand the ACS behviour and configure easycwmp and ACS in the right way.

What is your ACS?
2019-10-07 20:23   
OK , I see you are using AV system, easycwmp was tested successfully with AVSystem
2019-10-07 23:49   
(edited on: 2019-10-07 23:50)
Thank you
Does that mean you don't have a solution to solve this problem in easycwmp?