C# Class SIPSorcery.Web.Services.Provisioning

Inheritance: IProvisioning
Mostra file Open project: sipsorcery/sipsorcery

Public Methods

Method Description
AddCustomer ( CustomerJSON customer ) : JSONResult
AddDialPlan ( SIPDialPlanJSON sipDialPlan ) : JSONResult
AddSIPAccount ( SIPAccountJSON sipAccount ) : JSONResult
AddSIPProvider ( SIPProviderJSON sipProvider ) : JSONResult
CopyDialPlan ( string id ) : JSONResult
DBDelete ( string key ) : JSONResult
DBGetKeys ( ) : JSONResult>
DBRead ( string key ) : JSONResult
DBWrite ( string key, string value ) : JSONResult
DeleteDialPlan ( string id ) : JSONResult
DeleteSIPAccount ( string id ) : JSONResult

Attempts to delete a SIP account that matches the specified ID.

DeleteSIPProvider ( string id ) : JSONResult

Attempts to delete a SIP provider that matches the specified ID.

GetCDRs ( string where, int offset, int count ) : JSONResult>
GetCDRsCount ( string where ) : JSONResult
GetCalls ( string where, int offset, int count ) : JSONResult>
GetCallsCount ( string where ) : JSONResult
GetDialPlans ( string where, int offset, int count ) : JSONResult>
GetDialPlansCount ( string where ) : JSONResult
GetSIPAccountBindings ( string where, int offset, int count ) : JSONResult>
GetSIPAccountBindingsCount ( string where ) : JSONResult
GetSIPAccounts ( string where, int offset, int count ) : JSONResult>
GetSIPAccountsCount ( string where ) : JSONResult

Retrieves a count of the user's matching SIP accounts.

GetSIPDomains ( string where, int offset, int count ) : List
GetSIPProviderBindings ( string where, int offset, int count ) : JSONResult>
GetSIPProviderBindingsCount ( string where ) : JSONResult
GetSIPProviders ( string where, int offset, int count ) : JSONResult>
GetSIPProvidersCount ( string where ) : JSONResult

Retrieves a count of the user's matching SIP providers.

IsAlive ( ) : bool
SetCustomerServiceLevel ( string username, string serviceLevel, string renewalDate ) : JSONResult
SetReadOnly ( string username ) : JSONResult
UpdateDialPlan ( SIPDialPlanJSON sipDialPlan ) : JSONResult
UpdateSIPAccount ( SIPAccountJSON sipAccount ) : JSONResult
UpdateSIPProvider ( SIPProviderJSON sipProvider ) : JSONResult

Private Methods

Method Description
AuthoriseRequest ( ) : Customer

Method Details

AddCustomer() public method

public AddCustomer ( CustomerJSON customer ) : JSONResult
customer SIPSorcery.Entities.CustomerJSON
return JSONResult

AddDialPlan() public method

public AddDialPlan ( SIPDialPlanJSON sipDialPlan ) : JSONResult
sipDialPlan SIPSorcery.Entities.SIPDialPlanJSON
return JSONResult

AddSIPAccount() public method

public AddSIPAccount ( SIPAccountJSON sipAccount ) : JSONResult
sipAccount SIPSorcery.Entities.SIPAccountJSON
return JSONResult

AddSIPProvider() public method

public AddSIPProvider ( SIPProviderJSON sipProvider ) : JSONResult
sipProvider SIPSorcery.Entities.SIPProviderJSON
return JSONResult

CopyDialPlan() public method

public CopyDialPlan ( string id ) : JSONResult
id string
return JSONResult

DBDelete() public method

public DBDelete ( string key ) : JSONResult
key string
return JSONResult

DBGetKeys() public method

public DBGetKeys ( ) : JSONResult>
return JSONResult>

DBRead() public method

public DBRead ( string key ) : JSONResult
key string
return JSONResult

DBWrite() public method

public DBWrite ( string key, string value ) : JSONResult
key string
value string
return JSONResult

DeleteDialPlan() public method

public DeleteDialPlan ( string id ) : JSONResult
id string
return JSONResult

DeleteSIPAccount() public method

Attempts to delete a SIP account that matches the specified ID.
public DeleteSIPAccount ( string id ) : JSONResult
id string
return JSONResult

DeleteSIPProvider() public method

Attempts to delete a SIP provider that matches the specified ID.
public DeleteSIPProvider ( string id ) : JSONResult
id string
return JSONResult

GetCDRs() public method

public GetCDRs ( string where, int offset, int count ) : JSONResult>
where string
offset int
count int
return JSONResult>

GetCDRsCount() public method

public GetCDRsCount ( string where ) : JSONResult
where string
return JSONResult

GetCalls() public method

public GetCalls ( string where, int offset, int count ) : JSONResult>
where string
offset int
count int
return JSONResult>

GetCallsCount() public method

public GetCallsCount ( string where ) : JSONResult
where string
return JSONResult

GetDialPlans() public method

public GetDialPlans ( string where, int offset, int count ) : JSONResult>
where string
offset int
count int
return JSONResult>

GetDialPlansCount() public method

public GetDialPlansCount ( string where ) : JSONResult
where string
return JSONResult

GetSIPAccountBindings() public method

public GetSIPAccountBindings ( string where, int offset, int count ) : JSONResult>
where string
offset int
count int
return JSONResult>

GetSIPAccountBindingsCount() public method

public GetSIPAccountBindingsCount ( string where ) : JSONResult
where string
return JSONResult

GetSIPAccounts() public method

public GetSIPAccounts ( string where, int offset, int count ) : JSONResult>
where string
offset int
count int
return JSONResult>

GetSIPAccountsCount() public method

Retrieves a count of the user's matching SIP accounts.
public GetSIPAccountsCount ( string where ) : JSONResult
where string An optional dynamic LINQ where clause to apply when doing the count.
return JSONResult

GetSIPDomains() public method

public GetSIPDomains ( string where, int offset, int count ) : List
where string
offset int
count int
return List

GetSIPProviderBindings() public method

public GetSIPProviderBindings ( string where, int offset, int count ) : JSONResult>
where string
offset int
count int
return JSONResult>

GetSIPProviderBindingsCount() public method

public GetSIPProviderBindingsCount ( string where ) : JSONResult
where string
return JSONResult

GetSIPProviders() public method

public GetSIPProviders ( string where, int offset, int count ) : JSONResult>
where string
offset int
count int
return JSONResult>

GetSIPProvidersCount() public method

Retrieves a count of the user's matching SIP providers.
public GetSIPProvidersCount ( string where ) : JSONResult
where string An optional dynamic LINQ where clause to apply when doing the count.
return JSONResult

IsAlive() public method

public IsAlive ( ) : bool
return bool

SetCustomerServiceLevel() public method

public SetCustomerServiceLevel ( string username, string serviceLevel, string renewalDate ) : JSONResult
username string
serviceLevel string
renewalDate string
return JSONResult

SetReadOnly() public method

public SetReadOnly ( string username ) : JSONResult
username string
return JSONResult

UpdateDialPlan() public method

public UpdateDialPlan ( SIPDialPlanJSON sipDialPlan ) : JSONResult
sipDialPlan SIPSorcery.Entities.SIPDialPlanJSON
return JSONResult

UpdateSIPAccount() public method

public UpdateSIPAccount ( SIPAccountJSON sipAccount ) : JSONResult
sipAccount SIPSorcery.Entities.SIPAccountJSON
return JSONResult

UpdateSIPProvider() public method

public UpdateSIPProvider ( SIPProviderJSON sipProvider ) : JSONResult
sipProvider SIPProviderJSON
return JSONResult