unable to restore MAC address

Post Reply
ssteiner
Member
Posts: 61
Joined: 05 Feb 2009 09:20

unable to restore MAC address

Post by ssteiner »

I'm doing operations where I'm removing a MAC address from a NOE IP device (thus unregistering it) and then setting the MAC address again (to register it again. Except, the latter operation doesn't work.

So, the value of the TscIpSubscriber object prior to my operations:

GET http://srvroxe01.nxodev.intra/api/rest/ ... riber/1045 HTTP/1.1

Code: Select all

{
	"objectName": "Tsc_IP_subscriber",
	"objectId": "1045",
	"attributes": [
		{
			"name": "Directory_Number",
			"value": [
				"1045"
			]
		},
		{
			"name": "Ethernet_Address",
			"value": [
				"00:80:9f:c7:84:02"
			]
		},
		{
			"name": "IP_Add_Mode",
			"value": [
				"ipv4"
			]
		},
		{
			"name": "IP_Address",
			"value": [
				"192.168.201.106"
			]
		},
		{
			"name": "IP_Domain_Number",
			"value": [
				"0"
			]
		},
		{
			"name": "IP_Softphone_Emul",
			"value": [
				"No"
			]
		},
		{
			"name": "Reset_For_Update",
			"value": [
				"Yes"
			]
		},
		{
			"name": "Station_Type",
			"value": [
				"NOE_C_Color_IP"
			]
		},
		{
			"name": "Use_Volume_In_System",
			"value": [
				"Yes"
			]
		},
		{
			"name": "Voice_Coding_Algorithm",
			"value": [
				"Default"
			]
		}
	]
}
Then I'm clearing the MAC address

Code: Select all

PUT http://srvroxe01.nxodev.intra/api/rest/1.0/pbxs/143/instances/Subscriber/1045/Tsc_IP_subscriber/1045 HTTP/1.1
user-agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
Content-Type: application/json; charset=utf-8
Host: srvroxe01.nxodev.intra
Cookie: JSESSIONID=A4424918F4E81F16B50AA0F617CD7D34.tomcat; AlcUserId=userid
Content-Length: 57
Expect: 100-continue

{"attributes":[{"name":"Ethernet_Address","value":[""]}]}
Which returns

Code: Select all

HTTP/1.1 204 No Content
Date: Tue, 26 Feb 2019 15:11:15 GMT
Server: Apache/2.4.23
Content-Length: 0
At this point the phone is out of service, as expected.

Then I'm trying to restore the MAC address

Code: Select all

PUT http://srvroxe01.nxodev.intra/api/rest/1.0/pbxs/143/instances/Subscriber/1045/Tsc_IP_subscriber/1045 HTTP/1.1
user-agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
Content-Type: application/json; charset=utf-8
Host: srvroxe01.nxodev.intra
Cookie: JSESSIONID=A4424918F4E81F16B50AA0F617CD7D34.tomcat; AlcUserId=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJzZGt1c2VyIiwiaWF0IjoxNTUxMTkzNzYzfQ.WMLMPQlEmWLgAopebzUAa0Xb9ASyyylrxTYU0KozC6M
Content-Length: 74
Expect: 100-continue

{"attributes":[{"name":"Ethernet_Address","value":["00:80:9f:c7:84:02"]}]}
Which causes this error

Code: Select all

HTTP/1.1 500 Internal Server Error
Date: Tue, 26 Feb 2019 15:12:14 GMT
Server: Apache/2.4.23
Content-Length: 240
Connection: close
Content-Type: application/json

{"httpStatus":"INTERNAL_SERVER_ERROR","code":1007,"helpMessage":"Server general problem. Please contact the administrator to fix the problem.","type":"SERVER_PROBLEM","innerMessage":"error during parsing the allowed value","canRetry":false}
So.. what is the problem? I take it that for some reason it doesn't like the format of the MAC address... but it is the MAC address as I previously extracted it from the system.
User avatar
frank
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 3169
Joined: 06 Jul 2004 00:18
Location: New York
Contact:

Re: unable to restore MAC address

Post by frank »

Ha - I have the same error message while I try to replace the MAC address with "".
Let me check it out with some people and I'll get back to you.
Code Free Or Die
User avatar
frank
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 3169
Joined: 06 Jul 2004 00:18
Location: New York
Contact:

Re: unable to restore MAC address

Post by frank »

Bug is confirmed, and will be fixed in the next release..
Code Free Or Die
ssteiner
Member
Posts: 61
Joined: 05 Feb 2009 09:20

Re: unable to restore MAC address

Post by ssteiner »

Next release being 29 or a later one?
User avatar
frank
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 3169
Joined: 06 Jul 2004 00:18
Location: New York
Contact:

Re: unable to restore MAC address

Post by frank »

Later one. I just tried on 29 and removing a Mac address works, but re-assigning one does not work.
It's a quick fix.
Code Free Or Die
ssteiner
Member
Posts: 61
Joined: 05 Feb 2009 09:20

Re: unable to restore MAC address

Post by ssteiner »

Has this been fully fixed since?
ssteiner
Member
Posts: 61
Joined: 05 Feb 2009 09:20

Re: unable to restore MAC address

Post by ssteiner »

I guess I can answer my own question.. just tested it and it does indeed work.
User avatar
frank
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 3169
Joined: 06 Jul 2004 00:18
Location: New York
Contact:

Re: unable to restore MAC address

Post by frank »

yes, sorry :/
Code Free Or Die
Post Reply

Return to “O2G”