Porta Plus 2 Web Services

<back to all web services

CustomerExtension

The following routes are available for this service:
GET/GetUnavailableExtensions/{License}/{ICustomer}/{isUnavailable}
GET/GetCustomerExtensions/{License}/{ICustomer}
GET/GetCustomerExtensions/{License}/{ICustomer}/{IProducts}
GET/GetCustomerExtensionsActiveCalls/{License}/{ICustomer}/{GetActiveCalls}
GET/GetFilteringData/{License}/{ICustomer}/{IsFiltering}
GET/GetCustomerExtensionsActiveCalls/{License}/{ICustomer}/{GetActiveCalls}/{IProducts}
GET/DeleteCustomerExtension/{License}/{ICustomer}/{ExtensionRecordId}
GET/AddCustomerExtension/{License}/{ICustomer}/{Name}/{Id}/{IAccount}
GET/GetOnlineAccounts/{License}/{ICustomer}/{GetSipStatus}
GET/AddCustomerExtenGetIdentitysion/{License}/{ICustomer}/{Name}/{Id}/{IAccount}
GET/UpdateCustomerExtension/{License}/{ICustomer}/{ExtensionRecordId}/{Name}/{Id}/{IAccount}

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/reply/CustomerExtension HTTP/1.1 
Host: api-uk.activesoftswitch.com 
Content-Type: text/jsv
Content-Length: length

{
	ICustomer: 0,
	Name: String,
	Id: String,
	ExtensionRecordId: 0,
	IAccount: 0,
	IProducts: String,
	GetActiveCalls: False,
	IsFiltering: False,
	GetSipStatus: False,
	isUnavailable: False,
	License: String,
	ContentId: 0,
	FeatureName: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	lstportaActiveCalls: 
	[
		{
			IEnv: 0,
			CLI: String,
			CLD: String,
			AccountID: String,
			Connect_time: 0001-01-01,
			Disconnect_time: 0001-01-01,
			ICustomer: 0,
			CallId: String,
			IAccount: 0,
			noofcalls: 0,
			DurationMins: String,
			CallType: String,
			VendorId: 0,
			VendorName: String,
			ConnectionName: String,
			IConnection: 0,
			GatewayId: String,
			IDialRuleCld: 0,
			TrRuletoLocal: String,
			product: String,
			Note: String,
			SubscriberFName: String,
			SubscriberLName: String,
			ExtensionNumber: String
		}
	],
	ExtensionLst: 
	[
		{
			i_c_ext: 0,
			id: String,
			name: String,
			i_account: 0,
			account_id: String,
			firstname: String,
			lastname: String,
			Note: String,
			ProductName: String,
			PhoneNumber: String
		}
	],
	Extension: 
	{
		i_c_ext: 0,
		id: String,
		name: String,
		i_account: 0,
		account_id: String,
		firstname: String,
		lastname: String,
		Note: String,
		ProductName: String,
		PhoneNumber: String
	},
	ExtensionDeleted: False,
	ExtensionsActiveCalls: 
	[
		{
			i_c_ext: 0,
			id: String,
			name: String,
			i_account: 0,
			account_id: String,
			firstname: String,
			lastname: String,
			noofcalls: 0,
			activecall: True,
			NetThroughput: 0,
			note: String,
			SiteName: String,
			i_customer_site: 0,
			IAccount: 0,
			Email: String,
			CLD: String,
			CLI: String,
			DefaultValidIdentity: String,
			callToJoin: False,
			accountToJoin: String,
			i_customer: 0,
			notInGroup: False,
			profile_url: String
		}
	],
	License: String,
	ContentId: 0,
	FeatureName: String
}