Smartswitch
|
This is the main interface from which you can gain access to other Smartswitch entities. More...
defined in <Session.ice>
interface Session extends Glacier2::Session { ... }
Operations | |
Telephony::CallGeneration::Task * | addCallGenerationTask () throws AccessException |
Add a new Telephony::CallGeneration::Task. More... | |
Telephony::Queue * | addQueue (string name) throws AccessException, DuplicateException |
Add a new Queue. More... | |
void | callback (string callbackCallerName, string callbackCalleeNumber, string dialNumber, Telephony::CallbackMode mode) |
Initiate a 2-way calling. More... | |
HlrDipping::DippingResult | dipHlr (string number) throws EmptyArgumentException, GenericException |
Performs the dipping of a E.164 number in a HLR. More... | |
HlrDipping::BatchDippingResultSequence | dipHlrBatch (StringSequence numbers) throws GenericException |
Performs the dipping of a batch of E.164 numbers in a HLR. More... | |
LnpMnpDipping::DippingResult | dipLnpMnp (string numbers) throws EmptyArgumentException, GenericException |
Performs the dipping of a E.164 number in a LNP/MNP registry. More... | |
LnpMnpDipping::BatchDippingResultSequence | dipLnpMnpBatch (StringSequence numbers) throws GenericException |
Performs the dipping of E.164 numbers in a LNP/MNP registry. More... | |
Peer::Company * | findCompanyById (long id) throws AccessException |
Obtain the proxy to a Company by its unique ID. More... | |
Peer::Company * | findCompanyByName (string name) throws AccessException |
Obtain the proxy to a Company by its unique name. More... | |
Billing::Currency * | findCurrencyByName (string name) throws AccessException |
Obtain the proxy to a Currency by its name. More... | |
Peer::Gateway * | findGatewayById (int id) throws AccessException |
Obtain the proxy to a Gateway by its unique ID. More... | |
Peer::Originator * | findOriginatorById (int id) throws AccessException |
Obtain the proxy to an Originator by its unique ID. More... | |
Peer::GenericPeer * | findPeerById (Peer::PeerType peerType, int id) throws AccessException |
Obtain the proxy to a GenericPeer by its unique ID. More... | |
Telephony::Queue * | findQueueById (long id) throws AccessException |
Obtain the proxy to a Queue by its unique ID. More... | |
Telephony::Queue * | findQueueByName (string name) throws AccessException |
Obtain the proxy to a Queue by its unique name. More... | |
Billing::RefillVoucher * | findRefillVoucher (string code) throws AccessException |
Obtain the proxy to a RefillVoucher by its secret code. More... | |
Billing::Service * | findServiceById (long id) throws AccessException |
Obtain the proxy to a Service by its id. More... | |
Billing::Service * | findServiceByName (string name) throws AccessException |
Obtain the proxy to a Service by its name. More... | |
Peer::Terminator * | findTerminatorById (int id) throws AccessException |
Obtain the proxy to a Terminator by its unique ID. More... | |
Peer::User * | findUserById (int userId) throws AccessException |
Obtain the proxy to a User by its unique ID. More... | |
Peer::User * | findUserByLogin (string login) throws AccessException |
Obtain the proxy to a User by its login. More... | |
Peer::User * | findUserByName (string userName) throws AccessException |
Obtain the proxy to a User by its name. More... | |
Peer::UserGroup * | findUserGroupById (int id) throws AccessException |
Obtain the proxy to a UserGroup by its unique ID. More... | |
StringSequence | generateUsers (string profile, int groupId, int count, int attempts) throws AccessException, ArgumentException, Peer::UserGeneration::IntegerOverflowException, Peer::DescendantLimitReachedException, Peer::UserGeneration::DuplicateNameException, Peer::UserGeneration::WeakPasswordException |
Generate new users. More... | |
Peer::UserGeneration::UserInfoSequence | generateUsersWithInfo (string profile, int groupId, int count) throws AccessException, ArgumentException, Peer::UserGeneration::IntegerOverflowException, Peer::DescendantLimitReachedException, Peer::UserGeneration::DuplicateNameException, Peer::UserGeneration::WeakPasswordException |
Generate new users. More... | |
Telephony::CallGeneration::TaskSequence | getCallGenerationTasks (long offset) throws AccessException |
Telephony::CdrSequence | getCdr (PeerDesc peerDesc, Telephony::CdrFilter filter, long offset) throws AccessException, DbQueryTooLongException |
Obtain Telephony::Cdr with specified filters applied. More... | |
Telephony::ChannelInfoSequence | getChannels () throws AccessException |
Obtain the currently active channels (active calls). More... | |
Billing::ServiceSequence | getServices () |
Obtain the sequence of proxies to available Services. More... | |
Peer::User * | getUser () |
Obtain the proxy to a User whoose credentials were used to log in. More... | |
void | hangupChannel (string channelId) throws AccessException |
void | hangupChannels (StringSequence channelIds) throws AccessException |
Hangup the channels by their IDs. More... | |
void | pickupChannel (string channelName, string displayName) throws AccessException |
Picks up a channel. More... | |
Messaging::SendingResult | sendMessage (Messaging::Message message) throws ArgumentException, GenericException |
Sends a Message. More... | |
Messaging::BatchSendingResultSequence | sendMessageBatch (Messaging::MessageSequence messages) throws GenericException |
Sends a batch of messages. More... | |
void | spyChannel (string channelName, string displayName, SpyMode mode) throws AccessException |
Starts spying on a channel. More... | |
Operations inherited from Glacier2::Session | |
void | destroy () |
This is the main interface from which you can gain access to other Smartswitch entities.
Telephony::CallGeneration::Task* addCallGenerationTask | ( | ) | throws AccessException |
Add a new Telephony::CallGeneration::Task.
You should configure the task and then start it.
Telephony::Queue* addQueue | ( | string | name | ) | throws AccessException, DuplicateException |
Add a new Queue.
name | The name of the Queue. |
void callback | ( | string | callbackCallerName, |
string | callbackCalleeNumber, | ||
string | dialNumber, | ||
Telephony::CallbackMode | mode | ||
) |
Initiate a 2-way calling.
Smartswitch first dials the callback
party.
When the callback
party answers, Smartswitch dials the dial
party.
When the dial
party answers, Smartswitch bridges it with the callback
party.
callbackCallerName | The caller name to be used when dialing the callback party.This name is displayed on the phone of the callback party.It could be used to display some information regarding the dial party to the callback party. |
callbackCalleeNumber | The number of the callback party which is dialed first. |
dialNumber | The number of the dial party which is dialed second. |
mode | The CallbackMode of dialing both parties. |
HlrDipping::DippingResult dipHlr | ( | string | number | ) | throws EmptyArgumentException, GenericException |
Performs the dipping of a E.164 number in a HLR.
number | The E.164 number to dip. |
HlrDipping::BatchDippingResultSequence dipHlrBatch | ( | StringSequence | numbers | ) | throws GenericException |
Performs the dipping of a batch of E.164 numbers in a HLR.
numbers | The sequence of E.164 numbers to dip. |
LnpMnpDipping::DippingResult dipLnpMnp | ( | string | numbers | ) | throws EmptyArgumentException, GenericException |
Performs the dipping of a E.164 number in a LNP/MNP registry.
number | The E.164 number to dip. |
LnpMnpDipping::BatchDippingResultSequence dipLnpMnpBatch | ( | StringSequence | numbers | ) | throws GenericException |
Performs the dipping of E.164 numbers in a LNP/MNP registry.
number | The E.164 numbers to dip. |
Peer::Company* findCompanyById | ( | long | id | ) | throws AccessException |
Obtain the proxy to a Company by its unique ID.
id | The unique ID of the Company. |
NULL
otherwise. Peer::Company* findCompanyByName | ( | string | name | ) | throws AccessException |
Obtain the proxy to a Company by its unique name.
name | The name of the Company. |
NULL
otherwise. Billing::Currency* findCurrencyByName | ( | string | name | ) | throws AccessException |
Obtain the proxy to a Currency by its name.
name | The name of a Currency (for example, "USD"). |
NULL
otherwise. Peer::Gateway* findGatewayById | ( | int | id | ) | throws AccessException |
Obtain the proxy to a Gateway by its unique ID.
id | The unique ID of the Gateway. |
NULL
otherwise. Peer::Originator* findOriginatorById | ( | int | id | ) | throws AccessException |
Obtain the proxy to an Originator by its unique ID.
id | The unique ID of the Originator. |
NULL
otherwise. Peer::GenericPeer* findPeerById | ( | Peer::PeerType | peerType, |
int | id | ||
) | throws AccessException |
Obtain the proxy to a GenericPeer by its unique ID.
id | The unique ID of the GenericPeer. |
NULL
otherwise. Telephony::Queue* findQueueById | ( | long | id | ) | throws AccessException |
Obtain the proxy to a Queue by its unique ID.
id | The unique ID of the Queue. |
NULL
otherwise. Telephony::Queue* findQueueByName | ( | string | name | ) | throws AccessException |
Obtain the proxy to a Queue by its unique name.
name | The name of the Queue. |
NULL
otherwise. Billing::RefillVoucher* findRefillVoucher | ( | string | code | ) | throws AccessException |
Obtain the proxy to a RefillVoucher by its secret code.
code | The secret code of the RefillVoucher. |
NULL
otherwise. Billing::Service* findServiceById | ( | long | id | ) | throws AccessException |
Obtain the proxy to a Service by its id.
id | The ID of a Service. |
NULL
otherwise. Billing::Service* findServiceByName | ( | string | name | ) | throws AccessException |
Obtain the proxy to a Service by its name.
name | The name of a Service. |
NULL
otherwise. Peer::Terminator* findTerminatorById | ( | int | id | ) | throws AccessException |
Obtain the proxy to a Terminator by its unique ID.
id | The unique ID of the Terminator. |
NULL
otherwise. Peer::User* findUserById | ( | int | userId | ) | throws AccessException |
Obtain the proxy to a User by its unique ID.
Peer::User* findUserByLogin | ( | string | login | ) | throws AccessException |
Obtain the proxy to a User by its login.
Peer::User* findUserByName | ( | string | userName | ) | throws AccessException |
Obtain the proxy to a User by its name.
Peer::UserGroup* findUserGroupById | ( | int | id | ) | throws AccessException |
Obtain the proxy to a UserGroup by its unique ID.
id | The unique ID of the UserGroup. |
NULL
otherwise. StringSequence generateUsers | ( | string | profile, |
int | groupId, | ||
int | count, | ||
int | attempts | ||
) | throws AccessException, ArgumentException, Peer::UserGeneration::IntegerOverflowException, Peer::DescendantLimitReachedException, Peer::UserGeneration::DuplicateNameException, Peer::UserGeneration::WeakPasswordException |
Generate new users.
param profile The name of a User generation profile. param groupId The unique ID of a UserGroup to which to push new users. param count The count of users to generate. param attempts The count of attempts to generate unique name for a User.
If unable to generate after that - DuplicateNameException is thrown.
Peer::UserGeneration::UserInfoSequence generateUsersWithInfo | ( | string | profile, |
int | groupId, | ||
int | count | ||
) | throws AccessException, ArgumentException, Peer::UserGeneration::IntegerOverflowException, Peer::DescendantLimitReachedException, Peer::UserGeneration::DuplicateNameException, Peer::UserGeneration::WeakPasswordException |
Generate new users.
param profile The name of a User generation profile. param groupId The unique ID of a UserGroup to which to push new users. param count The count of users to generate.
Telephony::CallGeneration::TaskSequence getCallGenerationTasks | ( | long | offset | ) | throws AccessException |
offset | Skip 'offset' records when retrieving. Use offset = 0 to get first 100 records. |
Telephony::CdrSequence getCdr | ( | PeerDesc | peerDesc, |
Telephony::CdrFilter | filter, | ||
long | offset | ||
) | throws AccessException, DbQueryTooLongException |
Obtain Telephony::Cdr with specified filters applied.
peerDesc | Determines CDRs of which peers to retrieve. |
filter | The filter to apply when retrieving CDRs. |
offset | Skip 'offset' records when retrieving. Use offset = 0 to get first 100 records. |
Telephony::ChannelInfoSequence getChannels | ( | ) | throws AccessException |
Obtain the currently active channels (active calls).
Billing::ServiceSequence getServices | ( | ) |
Obtain the sequence of proxies to available Services.
Peer::User* getUser | ( | ) |
Obtain the proxy to a User whoose credentials were used to log in.
void hangupChannel | ( | string | channelId | ) | throws AccessException |
void hangupChannels | ( | StringSequence | channelIds | ) | throws AccessException |
Hangup the channels by their IDs.
The ID of a channel could be retrieved from ChannelInfo.
channelIds | The sequence of channel IDs. |
void pickupChannel | ( | string | channelName, |
string | displayName | ||
) | throws AccessException |
Picks up a channel.
Smartswitch dials the User under whose credentials the ICE Session has been established.
When the User answers, Smartswitch picks up a given channelName
for this user.
channelName | The channel to spy on. |
displayName | The name to use to dial the User. |
Messaging::SendingResult sendMessage | ( | Messaging::Message | message | ) | throws ArgumentException, GenericException |
Sends a Message.
message | The Message to send. |
Messaging::BatchSendingResultSequence sendMessageBatch | ( | Messaging::MessageSequence | messages | ) | throws GenericException |
Sends a batch of messages.
messages | The sequence of messages to send. |
void spyChannel | ( | string | channelName, |
string | displayName, | ||
SpyMode | mode | ||
) | throws AccessException |
Starts spying on a channel.
Smartswitch dials the User under whose credentials the ICE Session has been established.
When the User answers, Smartswitch starts spying to the channelName
for this user.
channelName | The channel to spy on. |
displayName | The name to use to dial the User. |
mode | The SpyMode to use for the spying. |