Porta Plus 2 Web Services

<back to all web services

CallProcessingRequest

The following routes are available for this service:
GET/GetCPRules/{License}/{IAccount}/{GetCPRules}
GET/GetCPConditions/{License}/{IAccount}/{Type}/{GetCPConditions}
GET/AddFromOrToCPConditions/{License}/{IAccount}/{Type}/{NameOfCondition}/{Number}/{Onnet}/{AddCpcondition}
GET/AddPeriodCPConditions/{License}/{IAccount}/{Type}/{NameOfCondition}/{Period}/{Description}/{AddCpcondition}
GET/UpdateFromOrToCPConditions/{License}/{IAccount}/{ICpCondition}/{Type}/{NameOfCondition}/{Number}/{Onnet}/{UpdateCpCondition}
GET/UpdatePeriodCPConditions/{License}/{IAccount}/{Type}/{ICpCondition}/{NameOfCondition}/{Period}/{Description}/{UpdateCpCondition}
GET/AddCpRule/{License}/{IAccount}/{IfromNumber}/{ItoNumber}/{IPriodNumber}/{action}/{IsActive}/{AddCpRule}
GET/UpdateCpRule/{License}/{IAccount}/{ICPRule}/{IfromNumber}/{ItoNumber}/{IPriodNumber}/{action}/{IsActive}/{UpdateCpRule}
GET/DeleteCpRule/{License}/{IAccount}/{ICPRule}/{DeleteCpRule}
GET/DeleteCpCondition/{License}/{IAccount}/{ICPCondition}/{DeleteCpCondition}
POST/CallProcessingRequests

To override the Content-type in your clients HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/oneway/CallProcessingRequest HTTP/1.1 
Host: api-uk.activesoftswitch.com 
Content-Type: text/jsv
Content-Length: length

{
	IAccount: 0,
	ICPRule: 0,
	ICpCondition: 0,
	Type: String,
	Number: String,
	Onnet: False,
	Period: String,
	NameOfCondition: String,
	Description: String,
	IfromNumber: 0,
	ItoNumber: 0,
	IPriodNumber: 0,
	IsActive: False,
	action: 0,
	GetCPRules: False,
	GetCPConditions: False,
	AddCpRule: False,
	AddCpcondition: False,
	DeleteCpRule: False,
	UpdateCpRule: False,
	UpdateCpCondition: False,
	DeleteCpCondition: False,
	License: String,
	ContentId: 0,
	FeatureName: String
}