Method | Description | |
---|---|---|
Add ( |
Adds a new customer account.
|
|
CheckAccountCode ( string owner, string accountCode ) : |
Checks the account code is valid and if not will also check the account number.
|
|
Get ( string owner, string accountNumber ) : |
||
GetBalance ( string accountCode ) : decimal | ||
GetRate ( string owner, string rateCode, string destination, int ratePlan ) : |
This method acts as a call rate lookup engine. It's very basic and simply matches the call destination based on the record that has the longest matching prefix.
|
|
GetRtccCustomer ( string owner, string accountNumber ) : SIPSorcery.SIP.App.RtccCustomerAccount | ||
GetRtccRate ( string owner, string rateCode, string destination, int ratePlan ) : SIPSorcery.SIP.App.RtccRate | ||
IsAccountCodeInUse ( string accountCode, string updatingID ) : bool |
Checks whether the account code is already in use for the system.
|
|
IsAccountNameInUse ( string owner, string accountName, string updatingID ) : bool |
Checks whether the account name is already in use for this owner.
|
|
IsAccountNumberInUse ( string owner, string accountNumber, string updatingID ) : bool |
Checks whether the account number is already in use for this owner.
|
|
ReserveCredit ( int seconds, string rtccID ) : bool |
This method attempts to reserve a chunk of credit for to allow a call to continue.
|
|
ReserveInitialCredit ( string accountCode, string rateID, |
This method attempts to reserve a the initial amount of credit for a call.
|
|
ReturnUnusedCredit ( string rtccID ) : decimal |
This method should be called once a billable call has been completed. It will calculate the final cost of the call and return any usused credit back to the customer account.
|
|
SetCDRIsHangingUp ( string rtccID ) : void | ||
Update ( |
Updates an existing customer account.
|
|
UpdateRealTimeCallControlCDRID ( string oldCDRID, |
Method | Description | |
---|---|---|
CheckUniqueFields ( |
public Add ( |
||
customerAccount | The customer account to add. | |
return | void |
public CheckAccountCode ( string owner, string accountCode ) : |
||
owner | string | The owner of the customer accounts to check. |
accountCode | string | |
return |
public Get ( string owner, string accountNumber ) : |
||
owner | string | |
accountNumber | string | |
return |
public GetBalance ( string accountCode ) : decimal | ||
accountCode | string | |
return | decimal |
public GetRate ( string owner, string rateCode, string destination, int ratePlan ) : |
||
owner | string | The owner the call rate lookup is for. |
rateCode | string | The rate code for the call. If specified and a matching rate is found it will /// take precedence over the destination. |
destination | string | The call desintation the rate lookup is for. |
ratePlan | int | |
return |
public GetRtccCustomer ( string owner, string accountNumber ) : SIPSorcery.SIP.App.RtccCustomerAccount | ||
owner | string | |
accountNumber | string | |
return | SIPSorcery.SIP.App.RtccCustomerAccount |
public GetRtccRate ( string owner, string rateCode, string destination, int ratePlan ) : SIPSorcery.SIP.App.RtccRate | ||
owner | string | |
rateCode | string | |
destination | string | |
ratePlan | int | |
return | SIPSorcery.SIP.App.RtccRate |
public IsAccountCodeInUse ( string accountCode, string updatingID ) : bool | ||
accountCode | string | The account code to check. |
updatingID | string | An optional parameter that can be supplied when the check is being made for an account /// that is being updated and in which case this ID is for the record being updated. |
return | bool |
public IsAccountNameInUse ( string owner, string accountName, string updatingID ) : bool | ||
owner | string | The owner of the customer accounts to check. |
accountName | string | The account name to check. |
updatingID | string | An optional parameter that can be supplied when the check is being made for an account /// that is being updated and in which case this ID is for the record being updated. |
return | bool |
public IsAccountNumberInUse ( string owner, string accountNumber, string updatingID ) : bool | ||
owner | string | The owner of the customer accounts to check. |
accountNumber | string | The account number to check. |
updatingID | string | An optional parameter that can be supplied when the check is being made for an account /// that is being updated and in which case this ID is for the record being updated. |
return | bool |
public ReserveCredit ( int seconds, string rtccID ) : bool | ||
seconds | int | The number of seconds the reservation is being requested for. |
rtccID | string | |
return | bool |
public ReserveInitialCredit ( string accountCode, string rateID, |
||
accountCode | string | The accountCode the credit should be reserved against. |
rateID | string | |
cdr | ||
initialSeconds | int | IF the reservation is successful this parameter will hold the number of seconds that were reserved for the initial reservation. |
return | decimal |
public ReturnUnusedCredit ( string rtccID ) : decimal | ||
rtccID | string | |
return | decimal |
public SetCDRIsHangingUp ( string rtccID ) : void | ||
rtccID | string | |
return | void |
public Update ( |
||
customerAccount | The customer account to update. | |
return | void |
public UpdateRealTimeCallControlCDRID ( string oldCDRID, |
||
oldCDRID | string | |
newCDR | ||
return | void |