Smartswitch
|
This interface allows to manipulate a User. More...
defined in <User.ice>
interface User extends Smartswitch::Peer::GenericPeer, Smartswitch::Telephony::CallGeneration::AnswerPeer { ... }
Operations | |
UserCallerId * | addCallerId (string callerNumber, string calleeIdPattern, string realCalleeIdPattern) throws AccessException, DuplicateException |
Attach the new UserCallerId object to the User. More... | |
void | deleteAuthorizedNumber (string number) throws AccessException |
Delete the authorized number from the User. More... | |
void | deleteCallerId (string callerId) throws AccessException |
void | deleteExtension (string extension) throws AccessException |
Delete the extension from the User. More... | |
StringSequence | getAuthorizedNumbers () throws AccessException |
Obtain a sequence of authorized numbers attached to the User. More... | |
Billing::CurrencyAmountSequence | getBalance () |
Obtain the current balance of the User. More... | |
StringSequence | getCallerIds () throws AccessException |
UserCallerIdSequence | getCallerIdSequence () throws AccessException |
Obtain the UserCallerId objects attached to the User. More... | |
Telephony::CdrSequence | getCdr (string from, string to, long offset) |
Obtain the Telephony CDR for the User. More... | |
StringSequence | getExtensions () throws AccessException |
Obtain a sequence of extensions assigned to the User. More... | |
Telephony::Forwarding::RuleSequence | getForwardingRules () |
Obtain Forwarding::Rule sequence for the User. More... | |
idempotent string | getLogin () throws AccessException |
Obtain the login used for the web access. More... | |
idempotent string | getMd5Password () throws AccessException |
Obtain the password for the web access. More... | |
idempotent UserSipParameters * | getSipParameters () throws AccessException |
Obtain the proxy for the UserSipParameters attached to this User. More... | |
idempotent string | getSpeedDialNumber (string shortNumber) throws AccessException |
Obtain the full number which corresponds to a short speed dial number for the User. More... | |
idempotent SpeedDialNumberMap | getSpeedDialNumberMap () throws AccessException |
Obtain the speed dial numbers attached to the User. More... | |
Billing::TransactionSequence | getTransactions (string from, string to) |
Obtain the Transaction entities for the User. More... | |
idempotent UserGroup * | getUserGroup () throws AccessException |
Obtain the proxy for a UserGroup to which this User belongs. More... | |
void | insertAuthorizedNumber (string number) throws AccessException |
Add the new authorized number to the User. More... | |
void | insertCallerId (string callerId) throws AccessException |
void | insertExtension (string extension) throws AccessException |
Assign a new extension to the User. More... | |
bool | isActivated () throws AccessException |
Check if the User is currently active. More... | |
bool | refill (Billing::Service *service, Billing::CurrencyAmount amount) throws AccessException |
Refill the user balance. More... | |
bool | refillBy (int serviceId, string secret, RefillSource rs) |
Refill the user using other User account or RefillVoucher. More... | |
idempotent void | removeSpeedDialNumber (string shortNumber) throws AccessException |
Remove the given short number. More... | |
void | replaceSpeedDialNumber (string shortNumber, string fullNumber) throws AccessException, EmptyArgumentException |
Replace the full number for a given short number. More... | |
void | setActivated (bool activated) throws AccessException |
Activate the User. More... | |
void | setDescription (string description) throws AccessException |
Set the description for the User (for informational purposes). More... | |
void | setEmail (string email) throws AccessException |
Set the email for the User. More... | |
void | setEnabled (bool enabled) throws AccessException |
Enable the User. More... | |
idempotent void | setLogin (string login) throws AccessException |
Set the login used for the web access. More... | |
idempotent void | setPassword (string password) throws AccessException, EmptyArgumentException, InsecureArgumentException |
Set the password used for the web access. More... | |
bool | writeOff (Billing::Service *service, Billing::CurrencyAmount amount) throws AccessException |
Write-off from the user balance. More... | |
Operations inherited from Smartswitch::Peer::GenericPeer | |
Company * | getCompany () throws AccessException |
Obtain the proxy to a Company which is bound to this GenericPeer. More... | |
idempotent long | getId () |
Obtain the unique constant ID of a GenericPeer. More... | |
idempotent string | getName () throws AccessException |
Obtain the name of a GenericPeer. More... | |
VariableSequence | getVariables () throws AccessException |
Obtain the custom variables attached to the GenericPeer. More... | |
void | insertVariable (Variable variable) throws AccessException |
Add a custom variable to the GenericPeer. More... | |
Operations inherited from Smartswitch::Destroyable | |
void | destroy () |
Destroy the proxy entity at the Smartswitch side. More... | |
This interface allows to manipulate a User.
UserCallerId* addCallerId | ( | string | callerNumber, |
string | calleeIdPattern, | ||
string | realCalleeIdPattern | ||
) | throws AccessException, DuplicateException |
Attach the new UserCallerId object to the User.
callerNumber | The caller number to bind to the User. |
calleeIdPattern | Use above caller number of the callee number matches this pattern. Pass empty to match any callee number. |
realCalleeIdPattern | Use above caller number of the real callee number (a number with prefix) matches this pattern. This could be used if you want to allow user to pick up a specific caller number by adding a prefix to a called number. Pass empty to match any real callee number. |
void deleteAuthorizedNumber | ( | string | number | ) | throws AccessException |
Delete the authorized number from the User.
number | The authorized number to remove from the User. |
void deleteCallerId | ( | string | callerId | ) | throws AccessException |
void deleteExtension | ( | string | extension | ) | throws AccessException |
Delete the extension from the User.
extension | The extension to delete from the User. |
StringSequence getAuthorizedNumbers | ( | ) | throws AccessException |
Obtain a sequence of authorized numbers attached to the User.
These numbers are used for PIN-less authentication of a User for the Calling Cards business scheme.
And in any other scheme which involves User dialing Smartswitch as the Access point and then authenticating by a caller number.
Billing::CurrencyAmountSequence getBalance | ( | ) |
StringSequence getCallerIds | ( | ) | throws AccessException |
UserCallerIdSequence getCallerIdSequence | ( | ) | throws AccessException |
Obtain the UserCallerId objects attached to the User.
These settings are used by the Smartswitch to replace a caller number and caller name for the calls from the User.
This is needed to bind a specific A-number and A-name to the user, so that he won't be able to call using other user's caller information.
The latter is considered a crime in many countries and thus it's needed to use this function in a safe User configuration.
Telephony::CdrSequence getCdr | ( | string | from, |
string | to, | ||
long | offset | ||
) |
Obtain the Telephony CDR for the User.
from | Start date to select. If empty, select starting from the very first CDR. |
to | End date to select. If empty, select till the end of CDR. |
offset | Skip 'offset' records when retrieving. Use offset = 0 to get first 100 records. |
StringSequence getExtensions | ( | ) | throws AccessException |
Telephony::Forwarding::RuleSequence getForwardingRules | ( | ) |
idempotent string getLogin | ( | ) | throws AccessException |
idempotent string getMd5Password | ( | ) | throws AccessException |
Obtain the password for the web access.
idempotent UserSipParameters* getSipParameters | ( | ) | throws AccessException |
Obtain the proxy for the UserSipParameters attached to this User.
idempotent string getSpeedDialNumber | ( | string | shortNumber | ) | throws AccessException |
idempotent SpeedDialNumberMap getSpeedDialNumberMap | ( | ) | throws AccessException |
Billing::TransactionSequence getTransactions | ( | string | from, |
string | to | ||
) |
Obtain the Transaction entities for the User.
from | Start date to select. If empty, select starting from the very first CDR. |
to | End date to select. If empty, select starting from the very first CDR. |
idempotent UserGroup* getUserGroup | ( | ) | throws AccessException |
void insertAuthorizedNumber | ( | string | number | ) | throws AccessException |
Add the new authorized number to the User.
number | The new authorized number for the User. |
void insertCallerId | ( | string | callerId | ) | throws AccessException |
void insertExtension | ( | string | extension | ) | throws AccessException |
Assign a new extension to the User.
extension | The new extension to assign to the User. |
bool isActivated | ( | ) | throws AccessException |
bool refill | ( | Billing::Service * | service, |
Billing::CurrencyAmount | amount | ||
) | throws AccessException |
Refill the user balance.
service | Which Service to bind to this transaction (for informational purposes). |
amount | The amount to refill the User's balance. |
bool refillBy | ( | int | serviceId, |
string | secret, | ||
RefillSource | rs | ||
) |
Refill the user using other User account or RefillVoucher.
serviceId | Which Service to bind to this transaction (for informational purposes). |
secret | The secret of other user or of the RefillVoucher. |
idempotent void removeSpeedDialNumber | ( | string | shortNumber | ) | throws AccessException |
Remove the given short number.
shortNumber | The short number to remove. |
void replaceSpeedDialNumber | ( | string | shortNumber, |
string | fullNumber | ||
) | throws AccessException, EmptyArgumentException |
Replace the full number for a given short number.
If the short number doesn't exist, insert it.
shortNumber | The short number to insert. |
fullNumber | The full number to insert. |
void setActivated | ( | bool | activated | ) | throws AccessException |
Activate the User.
When the User is activated, we may perform periodical write-offs of a subscriber fee (if configured).
When the User is deactivated, we will block the services provision.
void setDescription | ( | string | description | ) | throws AccessException |
Set the description for the User (for informational purposes).
description | The contenst of the description (may contain the HTML tags). |
void setEmail | ( | string | ) | throws AccessException |
void setEnabled | ( | bool | enabled | ) | throws AccessException |
idempotent void setLogin | ( | string | login | ) | throws AccessException |
Set the login used for the web access.
login | The login for the web access. |
idempotent void setPassword | ( | string | password | ) | throws AccessException, EmptyArgumentException, InsecureArgumentException |
Set the password used for the web access.
password | The password for the web access. |
bool writeOff | ( | Billing::Service * | service, |
Billing::CurrencyAmount | amount | ||
) | throws AccessException |
Write-off from the user balance.
service | Which Service to bind to this transaction (for informational purposes). |
amount | The amount to refill the User's balance. |