figuring out which parameter was incorrect in an PBX management operation

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

figuring out which parameter was incorrect in an PBX management operation

Post by ssteiner » 06 Dec 2018 15:05

I'm try to rollback a subscriber deletion. So, I extracted the PbxObject, then deleted it, then try to send all its attributes (it's 120) again. Naturally that is turned down. The response only tells me something is wrong with my input, not what:

Code: Select all

{
	"httpStatus": "BAD_REQUEST",
	"code": 1006,
	"helpMessage": "Request parameters are not correct. Please fix the problem and resend the request.",
	"type": "BAD_PARAMETER",
	"innerMessage": "Parsing error",
	"canRetry": true
}
And is there a way to automate this.. so I can take a set of PbxAttributes, and somehow figure out which ones I may not set upon add. So far it's been trial and error for simpler objects, but having 120 properties, trial and error isn't gonna work here.

The request

Code: Select all

{
	"attributes": [{
		"name": "ACD_Group_Directory_Number",
		"value": [""]
	},
	{
		"name": "ACD_Type",
		"value": ["No_ACD"]
	},
	{
		"name": "Add_On_Module_1",
		"value": ["No_Extension"]
	},
	{
		"name": "Add_On_Module_2",
		"value": ["No_Extension"]
	},
	{
		"name": "Add_On_Module_3",
		"value": ["No_Extension"]
	},
	{
		"name": "AdvancedConfiguration",
		"value": ["false"]
	},
	{
		"name": "Annu_First_Name",
		"value": [""]
	},
	{
		"name": "Annu_Name",
		"value": ["test"]
	},
	{
		"name": "Associated_Dect",
		"value": [""]
	},
	{
		"name": "Associated_RSI",
		"value": [""]
	},
	{
		"name": "Associated_Station_Directory_Number",
		"value": ["9563"]
	},
	{
		"name": "Associated_Videophone",
		"value": ["false"]
	},
	{
		"name": "Attached_MultiTandem",
		"value": []
	},
	{
		"name": "CTQ_RA_Type",
		"value": ["CTQ_NOK_TO_OK"]
	},
	{
		"name": "Call_Announce_Group",
		"value": ["-1"]
	},
	{
		"name": "Call_By_Name_Mini_Messaging_Right",
		"value": ["Yes"]
	},
	{
		"name": "Call_Conference_Group",
		"value": ["-1"]
	},
	{
		"name": "Call_Priority",
		"value": ["0"]
	},
	{
		"name": "Caller_Category",
		"value": ["4"]
	},
	{
		"name": "ClickAndPh",
		"value": ["A4980_XmlApi"]
	},
	{
		"name": "Connection_Category_Id",
		"value": ["0"]
	},
	{
		"name": "Cost_Center_Id",
		"value": ["255"]
	},
	{
		"name": "Cost_Center_Name",
		"value": [""]
	},
	{
		"name": "DEV_Routing_Flag",
		"value": ["false"]
	},
	{
		"name": "Destination_Node",
		"value": ["43"]
	},
	{
		"name": "Dialled_Number_Masked_In_Ticket",
		"value": ["No"]
	},
	{
		"name": "Directory_Number",
		"value": ["9563"]
	},
	{
		"name": "Display_Name",
		"value": ["test"]
	},
	{
		"name": "Domain_Identifier",
		"value": ["0"]
	},
	{
		"name": "Emulation_Paging_Right",
		"value": ["No"]
	},
	{
		"name": "Entity_Number",
		"value": ["1"]
	},
	{
		"name": "Equipment_Address_Board",
		"value": ["255"]
	},
	{
		"name": "Equipment_Address_Rack",
		"value": ["255"]
	},
	{
		"name": "Equipment_Address_Terminal",
		"value": ["255"]
	},
	{
		"name": "Explicit_Prio.Priority_Level",
		"value": ["0"]
	},
	{
		"name": "Explicit_Prio.Priority_Mode",
		"value": ["0"]
	},
	{
		"name": "External_Forwarding_Category_Id",
		"value": ["255"]
	},
	{
		"name": "Facility_Category_Id",
		"value": ["11"]
	},
	{
		"name": "Function",
		"value": ["Administrative"]
	},
	{
		"name": "GFU_Incoming_Access",
		"value": ["false"]
	},
	{
		"name": "GFU_List_Number",
		"value": ["-1"]
	},
	{
		"name": "GFU_Outgoing_Access",
		"value": ["false"]
	},
	{
		"name": "GFU_Preferential",
		"value": ["-1"]
	},
	{
		"name": "Implicit_Prio.Priority_Level",
		"value": ["0"]
	},
	{
		"name": "Implicit_Prio.Priority_Mode",
		"value": ["0"]
	},
	{
		"name": "Internal_Keyboard",
		"value": ["German"]
	},
	{
		"name": "Ith_Service_Type",
		"value": ["No_Valide"]
	},
	{
		"name": "Key_Profile",
		"value": ["None"]
	},
	{
		"name": "Language_Id",
		"value": ["1"]
	},
	{
		"name": "Metering_Category",
		"value": ["Justified"]
	},
	{
		"name": "Msg_Class_nb",
		"value": ["7"]
	},
	{
		"name": "Multi_Line_Facility.Delay_Overflow_For_Waiting_Call",
		"value": ["false"]
	},
	{
		"name": "Multi_Line_Facility.Immediate_Overflow_For_Waiting_Call",
		"value": ["false"]
	},
	{
		"name": "Multi_Line_Facility.MLA_Automatic_Outgoing_Seize",
		"value": ["false"]
	},
	{
		"name": "Multi_Line_Facility.Multine_Automatic_Incoming_Seize",
		"value": ["true"]
	},
	{
		"name": "Multi_Line_Facility.Multine_Automatic_Outgoing_Seize",
		"value": ["true"]
	},
	{
		"name": "Multi_Line_Facility.Multine_Selective_Filtering",
		"value": ["false"]
	},
	{
		"name": "Multi_Line_Facility.ake_Supervision_Off_Hook",
		"value": ["false"]
	},
	{
		"name": "Multi_Line_Station",
		"value": ["No"]
	},
	{
		"name": "Nb_Error_CodAffaire",
		"value": ["0"]
	},
	{
		"name": "Nb_Error_CodSecret",
		"value": ["0"]
	},
	{
		"name": "Nomadic_dec",
		"value": ["false"]
	},
	{
		"name": "Number_Of_Users",
		"value": ["1"]
	},
	{
		"name": "Occupation_Type",
		"value": ["Normal"]
	},
	{
		"name": "Ope_Cca",
		"value": ["false"]
	},
	{
		"name": "PCBT_Associated",
		"value": ["No"]
	},
	{
		"name": "PIN.Pin_Group",
		"value": ["1"]
	},
	{
		"name": "PIN.Pin_Number",
		"value": [""]
	},
	{
		"name": "PIN.Pin_Type_Of_Control",
		"value": ["PIN_Category"]
	},
	{
		"name": "PIN.With_Secret_Code",
		"value": ["true"]
	},
	{
		"name": "Paging_Beeper_Directory_Number",
		"value": [""]
	},
	{
		"name": "Paging_Trunk_Group_Number",
		"value": ["255"]
	},
	{
		"name": "Phone_Book_First_Name",
		"value": [""]
	},
	{
		"name": "Phone_Book_Name",
		"value": ["test"]
	},
	{
		"name": "Pickup_Group_Name",
		"value": [""]
	},
	{
		"name": "Pin_Group_Control",
		"value": ["No_Group_Access"]
	},
	{
		"name": "Primary_Line_Prio",
		"value": ["No"]
	},
	{
		"name": "Prio_Presentation",
		"value": ["No"]
	},
	{
		"name": "Public_Network_Category_Id",
		"value": ["2"]
	},
	{
		"name": "Reserved_Time_Slot",
		"value": ["false"]
	},
	{
		"name": "Right_Profile_Name",
		"value": [""]
	},
	{
		"name": "Robinet_Category",
		"value": ["0"]
	},
	{
		"name": "Robinet_Right",
		"value": ["0"]
	},
	{
		"name": "Routing_Number",
		"value": ["0"]
	},
	{
		"name": "S0_Presence",
		"value": ["false"]
	},
	{
		"name": "Secondary_Line_Prio",
		"value": ["No"]
	},
	{
		"name": "Secret_Code",
		"value": ["0000"]
	},
	{
		"name": "Secret_Code_Access_For_SUU",
		"value": ["No"]
	},
	{
		"name": "Secretary_Directory_Number",
		"value": ["9563"]
	},
	{
		"name": "Set_Role",
		"value": ["Default"]
	},
	{
		"name": "Stap",
		"value": ["off_hook"]
	},
	{
		"name": "Station_Group_Directory_Number",
		"value": [""]
	},
	{
		"name": "Station_Type",
		"value": ["NOE_B"]
	},
	{
		"name": "Supplementary_Service_Right.Display_Ext_Calling",
		"value": ["true"]
	},
	{
		"name": "Supplementary_Service_Right.External",
		"value": ["true"]
	},
	{
		"name": "Supplementary_Service_Right.Internal",
		"value": ["false"]
	},
	{
		"name": "TAPIPremiumServer",
		"value": ["No"]
	},
	{
		"name": "Tandem.Partial_Occ",
		"value": ["false"]
	},
	{
		"name": "Tandem.Ringing_In_Partial_Occ",
		"value": ["Long_Ring"]
	},
	{
		"name": "Tandem.Specific_Supervision",
		"value": ["false"]
	},
	{
		"name": "Tandem.Tandem_Directory_Number",
		"value": [""]
	},
	{
		"name": "Tandem.Tandem_Principal",
		"value": ["false"]
	},
	{
		"name": "Tele_Marketing_Actor",
		"value": ["false"]
	},
	{
		"name": "Teleservice",
		"value": ["Phone"]
	},
	{
		"name": "Teleservice_Incident",
		"value": ["No"]
	},
	{
		"name": "Text_MSG_Number",
		"value": ["8"]
	},
	{
		"name": "Transparency_VSI",
		"value": ["false"]
	},
	{
		"name": "Type_of_Keyboard",
		"value": ["EUROPEAN_KB"]
	},
	{
		"name": "URL_Domain",
		"value": [""]
	},
	{
		"name": "URL_UserName",
		"value": [""]
	},
	{
		"name": "UTF8_Phone_Book_First_Name",
		"value": [""]
	},
	{
		"name": "UTF8_Phone_Book_Name",
		"value": [""]
	},
	{
		"name": "Urgent_Call",
		"value": ["No"]
	},
	{
		"name": "Use_Private_Calling_Number",
		"value": ["false"]
	},
	{
		"name": "VIP",
		"value": ["false"]
	},
	{
		"name": "Valid_For_Call_By_Name",
		"value": ["Yes"]
	},
	{
		"name": "Voice_Mail_Directory_Number",
		"value": [""]
	},
	{
		"name": "Voice_Mail_Type",
		"value": ["No_Mevo"]
	},
	{
		"name": "Z_Subdevice",
		"value": ["false"]
	},
	{
		"name": "Z_ivr",
		"value": ["false"]
	}]
}

yblanchard
Member
Posts: 8
Joined: 03 Dec 2018 06:32

Re: figuring out which parameter was incorrect in an PBX management operation

Post by yblanchard » 10 Dec 2018 11:40

The attributes that cannot be set in mgr at Subscriber creation must not be used with O2G.
I don't see any easy solution to automate object re-creation from attributes built from a previous get.
In particular for the Subscriber object which is the most complex object, some attributes (for example Tandem_xxx) cannot be set on object creation,
but only at object modification.
So, to re-create a Subscriber, the application must have the control of the whole parameters, like for a first object creation.

ssteiner
Member
Posts: 17
Joined: 05 Feb 2009 09:20

Re: figuring out which parameter was incorrect in an PBX management operation

Post by ssteiner » 11 Dec 2018 15:18

Isn't there a list of attributes that you can't set on create?
I create my devices based on a template (create user by profile), but unfortunately OXE does not "remember" which profile was used to create a user, hence you're not able to re-create the device based on whatever template was used for first creation.

yblanchard
Member
Posts: 8
Joined: 03 Dec 2018 06:32

Re: figuring out which parameter was incorrect in an PBX management operation

Post by yblanchard » 12 Dec 2018 09:30

Following is the attribute list that CAN be used on create: the other are not permitted:

ACD_Group_Directory_Number
ACD_Type
Add_On_Module_2
Add_On_Module_3
AdvancedConfiguration
Annu_First_Name
Annu_Name
Associated_RSI
Associated_Station_Directory_Number
Associated_Videophone
CTQ_RA_Type
Call_Announce_Group
Call_By_Name_Mini_Messaging_Right
Call_Conference_Group
Call_Priority
Caller_Category
ClickAndPh
Connection_Category_Id
Cost_Center_Id
Cost_Center_Name
Dialled_Number_Masked_In_Ticket
Directory_Number
Display_Name
Domain_Identifier
Entity_Number
Equipment_Address_Board
Equipment_Address_Rack
Equipment_Address_Terminal
Explicit_Prio.Priority_Level
Explicit_Prio.Priority_Mode
External_Forwarding_Category_Id
Facility_Category_Id
Function
GFU_Incoming_Access
GFU_List_Number
GFU_Outgoing_Access
GFU_Preferential
Implicit_Prio.Priority_Level
Implicit_Prio.Priority_Mode
Ith_Service_Type
Key_Profile
Language_Id
Metering_Category
Msg_Class_nb
Nb_Error_CodAffaire
Nb_Error_CodSecret
Number_Of_Users
Occupation_Type
Ope_Cca
PCBT_Associated
Paging_Beeper_Directory_Number
Paging_Trunk_Group_Number
Phone_Book_First_Name
Phone_Book_Name
Pickup_Group_Name
Pin_Group_Control
Primary_Line_Prio
Prio_Presentation
Profile_Type
Public_Network_Category_Id
Reserved_Time_Slot
Right_Profile_Name
Robinet_Category
Robinet_Right
Routing_Number
Secondary_Line_Prio
Secret_Code
Secretary_Directory_Number
Set_Role
Station_Group_Directory_Number
Station_Type
Supplementary_Service_Right.Display_Ext_Calling
Supplementary_Service_Right.External
Supplementary_Service_Right.Internal
TAPIPremiumServer
Tele_Marketing_Actor
Teleservice
Teleservice_Incident
Transparency_VSI
Type_of_Keyboard
URL_Domain
URL_UserName
UTF8_Comment1
UTF8_Comment2
UTF8_Comment3
UTF8_Comment4
UTF8_Phone_Book_First_Name
UTF8_Phone_Book_Name
Urgent_Call
Use_Private_Calling_Number
VIP
Valid_For_Call_By_Name
Voice_Mail_Directory_Number
Z_ivr"

ssteiner
Member
Posts: 17
Joined: 05 Feb 2009 09:20

Re: figuring out which parameter was incorrect in an PBX management operation

Post by ssteiner » 13 Dec 2018 10:48

Did you get that from the schema? there's a way to get the schema.. so I could process that automatically if the schema info is enough (which would be very helpful of course)

Post Reply

Return to “O2G”