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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/CustomerExtension HTTP/1.1 
Host: 7el.co 
Content-Type: application/json
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: application/json
Content-Length: length

{"lstportaActiveCalls":[{"IEnv":0,"CLI":"String","CLD":"String","AccountID":"String","Connect_time":"\/Date(-62135596800000-0000)\/","Disconnect_time":"\/Date(-62135596800000-0000)\/","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"}