Class IppbxServerFacade
- Namespace
- SWConfigDataClientLib.Proxies.IppbxServer
- Assembly
- IpPbxCDSClientLib.dll
Facade class for IppbxServer
public class IppbxServerFacade : IppbxServerFacadeBase
- Inheritance
-
SWCFProxy<IppbxServerFacadeClient, IIppbxServerFacade>IppbxServerFacade
- Inherited Members
Constructors
IppbxServerFacade()
Create instance of IppbxServerFacade. Ony used by Unmanaged Wrapper. To create an instance of this class use the LibManager.
public IppbxServerFacade()
Remarks
The connection will be established by the first remote call.
Properties
PoolMaxSize
depcreated
public static int PoolMaxSize { get; set; }
Property Value
PoolMinSize
depcreated
public static int PoolMinSize { get; set; }
Property Value
m_BaseUrl
protected override string m_BaseUrl { get; }
Property Value
Methods
AddEditablePhoneBookEntry(string, string, string, string, bool)
Adds a new PhoneBookEntry (Global editable phonebook) directly into database.
public int AddEditablePhoneBookEntry(string Name, string Number, string SearchNumber, string Description, bool Hide)
Parameters
Name
stringThe name of the phone entry
Number
stringThe number
SearchNumber
stringThe search number is the canonical representation of the number. It will be generated by the CDS.
Description
stringMandatory description
Hide
boolWhen set to true the entry will not be shown in phonebook. It will be used to resolve the name for displaying current call informations.
Returns
- int
The EntryID of the entry
AddNumberFormatProfileByID(NumberProfilePrimaryCollection, string)
Adds a NumberFormatProfile Entry from database to the given Collection. The Profile is identified by its id. If the profile is already contained by teh collection it will be replaced.
public NumberProfileEntry AddNumberFormatProfileByID(NumberProfilePrimaryCollection collection, string ProfileID)
Parameters
collection
NumberProfilePrimaryCollectionThe profile entry will be added to this collection.
ProfileID
stringThje id of the profile
Returns
- NumberProfileEntry
The added profile will be returned.
AddPhoneCallbackRequest(int, int, string, string, int, SPCBState)
Adds a PhoneCallbackRequest to the given users PhoneCallbackRequest list.
public void AddPhoneCallbackRequest(int IpPbxPhoneCallID, int UserID, string CalledNumber, string CalledName, int CalledUserID, SPCBState State)
Parameters
IpPbxPhoneCallID
intThe PhoneCallID same as used in CDR.
UserID
intThe ID of the User
CalledNumber
stringThe called party number
CalledName
stringThe called party name
CalledUserID
intThe called party UserID
State
SPCBStateThe state of the request
AddPortByLoginID(PortPrimaryCollection, Guid)
Adds or replaces a Port with a given PortID from database
public PortEntry AddPortByLoginID(PortPrimaryCollection collection, Guid gLoginID)
Parameters
collection
PortPrimaryCollectionThe retrieved entry will be added to this collection.
gLoginID
Guid
Returns
- PortEntry
Added port entry.
AddPortWithH323Alias(PortPrimaryCollection, string)
Adds or replaces a Port with a given H323 Alias from database
public PortEntry AddPortWithH323Alias(PortPrimaryCollection collection, string H323Alias)
Parameters
collection
PortPrimaryCollectionThe retrieved entry will be added to this collection.
H323Alias
stringThe H323 that identifies the entry.
Returns
- PortEntry
The added port entry.
AddPortWithPortID(PortPrimaryCollection, int)
Adds or replaces a Port with a given PortID from database
public PortEntry AddPortWithPortID(PortPrimaryCollection collection, int PortID)
Parameters
collection
PortPrimaryCollectionThe retrieved entry will be added to this collection.
PortID
intThe PortID that identifies the Port.
Returns
- PortEntry
Added port entry.
AddPortWithSIPUserID(PortPrimaryCollection, string)
Adds or replaces a Port with a given SIPUserID from database
public PortEntry AddPortWithSIPUserID(PortPrimaryCollection collection, string SIPUserID)
Parameters
collection
PortPrimaryCollectionThe retrieved entry will be added to this collection.
SIPUserID
stringThe SIPUserID that identifies the entry.
Returns
- PortEntry
The added port entry.
AddPortWithSIPUserName(PortPrimaryCollection, string)
Adds or replaces a Port with a given SIPUserName from database
public PortEntry AddPortWithSIPUserName(PortPrimaryCollection collection, string SIPUserName)
Parameters
collection
PortPrimaryCollectionThe retrieved entry will be added to this collection.
SIPUserName
stringThe SIPUserName that identifies the entry.
Returns
- PortEntry
The added port entry.
CheckClientVersion()
Checks if the client version is supported by the server.
public void CheckClientVersion()
CheckVersion()
public void CheckVersion()
ConfirmMessageTransport(int)
Confirms the tansport of a message. This method has to be invoked after ProcessIncommingSynchronizationMessage on the remote side has been called.
public void ConfirmMessageTransport(int TransportID)
Parameters
TransportID
int
CreateClient(Binding, EndpointAddress)
protected override IppbxServerFacadeClient CreateClient(Binding binding, EndpointAddress endpointAdrress)
Parameters
binding
BindingendpointAdrress
EndpointAddress
Returns
- IppbxServerFacadeClient
CreateFullSync()
public void CreateFullSync()
DeleteEditablePhoneBookEntry(int)
Deletes an new PhoneBookEntry directly
public void DeleteEditablePhoneBookEntry(int EntryID)
Parameters
EntryID
intThe EntryID of the entry to be deleted.
DeleteGroupVoiceMessages(int)
public void DeleteGroupVoiceMessages(int groupId)
Parameters
groupId
int
DeletePhoneCallbackRequestByPeers(int, int)
Deletes all UserPhoneCallbackRequests where the UserID and the CalledUserID are UserID1 or UserID2
public void DeletePhoneCallbackRequestByPeers(int UserID1, int UserID2)
Parameters
DeleteUserVoiceMessages(int)
public void DeleteUserVoiceMessages(int userId)
Parameters
userId
int
DeleteVoiceMessage(int)
public void DeleteVoiceMessage(int callId)
Parameters
callId
int
Dispose()
public virtual void Dispose()
ForwardVoiceMessageToGroup(int, int, int, string, CallActionProcessedSubscription)
public void ForwardVoiceMessageToGroup(int callId, int forwardToGroupId, int newCallId, string newCallingName, CallActionProcessedSubscription subscription)
Parameters
callId
intforwardToGroupId
intnewCallId
intnewCallingName
stringsubscription
CallActionProcessedSubscription
ForwardVoiceMessageToUser(int, int, int, string, CallActionProcessedSubscription)
public void ForwardVoiceMessageToUser(int callId, int forwardToUserId, int newCallId, string newCallingName, CallActionProcessedSubscription subscription)
Parameters
callId
intforwardToUserId
intnewCallId
intnewCallingName
stringsubscription
CallActionProcessedSubscription
FreeForReuse()
public override void FreeForReuse()
GetAllNumberFormatProfiles()
Retrieves a collection of NumberFormatProfileEntry objects containing all profiles.
public NumberProfilePrimaryCollection GetAllNumberFormatProfiles()
Returns
- NumberProfilePrimaryCollection
Collection of NumberFormatProfileEntry objects.
GetAllPorts()
Retrieves all Ports including Link and Gateway information.
public PortPrimaryCollection GetAllPorts()
Returns
- PortPrimaryCollection
Collection of all ports.
GetAllPortsMatchingPublicNumber(string)
Retrieves all Ports including Link and Gateway information, which matches with one or more of its numberranges to the given number
public PortPrimaryCollection GetAllPortsMatchingPublicNumber(string PublicNumber)
Parameters
PublicNumber
stringThe givwen public number in canonical form.
Returns
- PortPrimaryCollection
Collection of PortEntries.
GetAllPresentityContexts()
public TSiteContext[] GetAllPresentityContexts()
Returns
- TSiteContext[]
GetAllProviderProfiles()
Retrieves all Provider Profiles
public ProviderProfilePrimaryCollection GetAllProviderProfiles()
Returns
- ProviderProfilePrimaryCollection
Collection of ProviderProfileEntry objects.
GetCallDetailRecordFileMetaData()
public CallDetailRecordFileMetaData GetCallDetailRecordFileMetaData()
Returns
- CallDetailRecordFileMetaData
GetConnectedSite(Guid)
Retrieves the ConnectedSiteEntry for the given Site Guid
public ConnectedSiteEntry GetConnectedSite(Guid siteGuid)
Parameters
siteGuid
Guid
Returns
GetConnectedSite(int)
Retrieves the ConnectedSiteEntry for the given Site Id
public ConnectedSiteEntry GetConnectedSite(int siteId)
Parameters
siteId
int
Returns
GetConnectedSites()
Retrieves the all Connected Sites
public ConnectedSitePrimaryCollection GetConnectedSites()
Returns
GetCurrentServerType()
public ServerType GetCurrentServerType()
Returns
- ServerType
GetCurrentThreadOwner()
public string GetCurrentThreadOwner()
Returns
GetCurrentUserID()
public int GetCurrentUserID()
Returns
GetCurrentUserName()
public string GetCurrentUserName()
Returns
GetCurrentUserName(ref string)
public int GetCurrentUserName(ref string UserName)
Parameters
UserName
string
Returns
GetDBEngineEdition()
Retrieves number describing the database engine edition.
public SQLEngine GetDBEngineEdition()
Returns
- SQLEngine
Engine Edition
GetDBSchema()
Gets the current database schema version.
public int GetDBSchema()
Returns
- int
Schema version.
GetDBSchemaDate()
Retrieves the date of the last database schema update.
public SDateTime GetDBSchemaDate()
Returns
- SDateTime
Date of last schema update.
GetDcfRegisterFailedContent(string)
returns vendor specific content for failure registration.
public string GetDcfRegisterFailedContent(string hardwareId)
Parameters
hardwareId
string
Returns
- string
dcf device info objects
GetFastDialDestination(string)
Gets a destinaton number for the mem fast dial feature by mobileId. Only numbers set by the ClientRestAPI (NGClients) will be returned. Fast dial destination numbers will expire after one minute.
public string GetFastDialDestination(string mobileId)
Parameters
mobileId
stringThe reference id from the movbile phone
Returns
- string
Number or emoty string
GetFreeStatusText(int)
public string GetFreeStatusText(int iUserID)
Parameters
iUserID
int
Returns
GetGroupVoiceMessages(int)
public VoiceMessageList GetGroupVoiceMessages(int groupId)
Parameters
groupId
int
Returns
GetLocalSiteId()
Retrieves the ID of the local site
public int GetLocalSiteId()
Returns
GetLocationUndeliverableCallsNumberByID(int)
public string GetLocationUndeliverableCallsNumberByID(int iLocationID)
Parameters
iLocationID
int
Returns
GetMatchingNumberOwners(int, CallingPartyType, string, bool, bool, bool, bool, out int, out bool)
Retrieves a list of owners of the Number
public NumberOwnerListPrimaryCollection GetMatchingNumberOwners(int CallingPartyId, CallingPartyType CallingPartyType, string Number, bool IncludePublicNumbers, bool IncludeInternalNumbers, bool IncludeMobileNumbers, bool IncludeExternalNumbers, out int PossibleHits, out bool IsNumberConfiguredOnTrunk)
Parameters
CallingPartyId
intThe Id of the CallingParty (UserID or PortID)
CallingPartyType
CallingPartyTypeThe Type of the CallingParty
Number
stringThe number (starting fragment)
IncludePublicNumbers
booltrue if the number should be searched in the list of public numbers
IncludeInternalNumbers
booltrue if the number should be searched in the list of internal numbers
IncludeMobileNumbers
booltrue if the number shaould searched in the the list of assigned mobile numbers
IncludeExternalNumbers
booltrue if the number shaould searched in the the list of external numbers from users in connected sites
PossibleHits
intReturns the count of possible hits.
IsNumberConfiguredOnTrunk
boolReturns if the number is defined on one or mor trunks.
Returns
- NumberOwnerListPrimaryCollection
Returns one list of matching users with additional informations. The list will contain no user, one user or all users of one group.
Remarks
Result will be cached for 20 sec.
GetMatchingNumberOwners(int, CallingPartyType, string, bool, bool, bool, bool, out int, out bool, out AddressResolutionContext)
Retrieves a list of owners of the Number
public NumberOwnerListPrimaryCollection GetMatchingNumberOwners(int CallingPartyId, CallingPartyType CallingPartyType, string Number, bool IncludePublicNumbers, bool IncludeInternalNumbers, bool IncludeMobileNumbers, bool IncludeExternalNumbers, out int PossibleHits, out bool IsNumberConfiguredOnTrunk, out AddressResolutionContext addrResolutionContext)
Parameters
CallingPartyId
intThe Id of the CallingParty (UserID or PortID)
CallingPartyType
CallingPartyTypeThe Type of the CallingParty
Number
stringThe number (starting fragment)
IncludePublicNumbers
booltrue if the number should be searched in the list of public numbers
IncludeInternalNumbers
booltrue if the number should be searched in the list of internal numbers
IncludeMobileNumbers
booltrue if the number shaould searched in the the list of assigned mobile numbers
IncludeExternalNumbers
booltrue if the number shaould searched in the the list of external numbers from users in connected sites
PossibleHits
intReturns the count of possible hits.
IsNumberConfiguredOnTrunk
boolReturns if the number is defined on one or mor trunks.
addrResolutionContext
AddressResolutionContextReturns an AddressResolutionContext
Returns
- NumberOwnerListPrimaryCollection
Returns one list of matching users with additional informations. The list will contain no user, one user or all users of one group.
Remarks
Result will be cached for 20 sec.
GetMatchingNumberOwners(int, CallingPartyType, string, bool, bool, bool, out int, out bool)
Retrieves a list of owners of the Number
public NumberOwnerListPrimaryCollection GetMatchingNumberOwners(int CallingPartyId, CallingPartyType CallingPartyType, string Number, bool IncludePublicNumbers, bool IncludeInternalNumbers, bool IncludeMobileNumbers, out int PossibleHits, out bool IsNumberConfiguredOnTrunk)
Parameters
CallingPartyId
intThe Id of the CallingParty (UserID or PortID)
CallingPartyType
CallingPartyTypeThe Type of the CallingParty
Number
stringThe number (starting fragment)
IncludePublicNumbers
booltrue if the number should be searched in the list of public numbers
IncludeInternalNumbers
booltrue if the number should be searched in the list of internal numbers
IncludeMobileNumbers
booltrue if the number shaould searched in the the list of assigned mobile numbers
PossibleHits
intReturns the count of possible hits.
IsNumberConfiguredOnTrunk
boolReturns if the number is defined on one or mor trunks.
Returns
- NumberOwnerListPrimaryCollection
Returns one list of matching users with additional informations. The list will contain no user, one user or all users of one group.
Remarks
Result will be cached for 20 sec.
GetMatchingNumberOwners(int, CallingPartyType, string, bool, bool, out int, out bool)
Retrieves a list of owners of the Number
public NumberOwnerListPrimaryCollection GetMatchingNumberOwners(int CallingPartyId, CallingPartyType CallingPartyType, string Number, bool IncludePublicNumbers, bool IncludeInternalNumbers, out int PossibleHits, out bool IsNumberConfiguredOnTrunk)
Parameters
CallingPartyId
intThe Id of the CallingParty (UserID or PortID)
CallingPartyType
CallingPartyTypeThe Type of the CallingParty
Number
stringThe number (starting fragment)
IncludePublicNumbers
booltrue if the number should be searched in the list of public numbers
IncludeInternalNumbers
booltrue if the number should be searched in the list of internal numbers
PossibleHits
intReturns the count of possible hits.
IsNumberConfiguredOnTrunk
boolReturns if the number is defined on one or mor trunks.
Returns
- NumberOwnerListPrimaryCollection
Returns one list of matching users with additional informations. The list will contain no user, one user or all users of one group.
Remarks
Result will be cached for 20 sec.
GetMatchingPublicNumber(int, int, int, string)
Retrieves a matching public for the given parameters.
public string GetMatchingPublicNumber(int UserID, int PortID, int PortBundleID, string InternalNumber)
Parameters
UserID
intThe id of the user.
PortID
intID of the Port where the call goes through
PortBundleID
intID of the PortBundle corresponding to the Port
InternalNumber
stringInternal Number of the user which is used for this call
Returns
- string
One public number as a string
GetMatchingRoutedNumberEntries(string, string, int, CallingPartyType, string, SDateTime, bool, AddressResolutionContext, out int, out int, out string)
public MatchingRoutedNumberPrimaryCollection GetMatchingRoutedNumberEntries(string DialedNumber, string NumberServerRepresentation, int callingPartyID, CallingPartyType callingPartyType, string callingPartyNumber, SDateTime dateTime, bool ReturnAllPossible, AddressResolutionContext cAddressResolutionContext, out int PossibleMatchingEntries, out int PossibleMatchingPrefixes, out string ResultingNumber)
Parameters
DialedNumber
stringNumberServerRepresentation
stringcallingPartyID
intcallingPartyType
CallingPartyTypecallingPartyNumber
stringdateTime
SDateTimeReturnAllPossible
boolcAddressResolutionContext
AddressResolutionContextPossibleMatchingEntries
intPossibleMatchingPrefixes
intResultingNumber
string
Returns
GetMatchingRoutedNumberEntries(string, string, int, CallingPartyType, string, SDateTime, bool, out int, out int, out string)
This Method retrieves a list of best matching routed number entries for the starting number fragment defined in the parameter numbers. The list is empty when more than one routed numbers matches the number fragment and there is chance to get a better match with a longer starting fragment. If there is only one entry, which possibly match the number, the entry will bie returned. RoutedNumberEntries with retry > 0 will occur retry+1 times in the returning collection.
public MatchingRoutedNumberPrimaryCollection GetMatchingRoutedNumberEntries(string DialedNumber, string NumberServerRepresentation, int callingPartyID, CallingPartyType callingPartyType, string callingPartyNumber, SDateTime dateTime, bool ReturnAllPossible, out int PossibleMatchingEntries, out int PossibleMatchingPrefixes, out string ResultingNumber)
Parameters
DialedNumber
stringThe starting number fragment of thr dialed number. The number formatis [PortPrefix][+|PublicAccessPrefix]any*
NumberServerRepresentation
stringThis number is used for retrieving access rights. Can be emtpy. In this case the normalized dialed number will be used.
callingPartyID
intThe calling party id is either an UserID or a PortID
callingPartyType
CallingPartyTypeUser or Port
callingPartyNumber
stringThe number of the callig device. If the calling party is a user The internal number of the user device should be used. If the calling party is trunk a canonaical number or a SIP uri will be valid.
dateTime
SDateTimetime of the call as a UTC datetime
ReturnAllPossible
boolWhen true the method returns a list of all possible hits otherwise it will return al list of matching hits
PossibleMatchingEntries
intreturns the number of possible matching routed number entries
PossibleMatchingPrefixes
intreturns the number of possible matching prefixes
ResultingNumber
stringreturns the number as an canonical number. Country- and AreaCode will be retrieved from the calling parties location.
Returns
- MatchingRoutedNumberPrimaryCollection
Return a list of MatchingRoutedNumberEntry
Remarks
The returning list contains: RoutingAccessGranted: bool true if routing is granted (always true) Priority int: Priority of the routing entry (list is sorted by this column) NoFurtherRetries: PublicAccessPrefix: The PublicAccesPrefix found. If there is no one the default PublicAccessPrefix of the PortBundles Location will be returned. PortBundlePrefix: The PortBundleAccesPrefix found. MatchingType NumberAccessGranted bool: is true when calling party has permission to call the number otherwise false ItemID: PortBundleID
GetNameByNumberNew(string, int)
public NamesByNumberPrimaryCollection GetNameByNumberNew(string number, int userId)
Parameters
Returns
GetNamesByNumber(string)
Retrieves a collection of phonebook entries which matches with the given number. The system phonebook and the global editable phonebook will be searched.
public NamesByNumberPrimaryCollection GetNamesByNumber(string Number)
Parameters
Number
stringNumber
Returns
- NamesByNumberPrimaryCollection
Collection of phonebook entries.
GetNamesByNumber(string, int)
Retrieves a collection of phonebook entries which matches with the given number. The users phonebook, the system phonebook and the global editable phonebook will be searched.
public NamesByNumberPrimaryCollection GetNamesByNumber(string Number, int UserID)
Parameters
Returns
- NamesByNumberPrimaryCollection
Collection of phonebook entries.
GetNewOldPhoneCallCount(int, out int, out int)
Retrieves the new/old calls count pair to use in MWI subscription
public void GetNewOldPhoneCallCount(int userID, out int newCallCount, out int oldCallCount)
Parameters
GetNextRoutingChangeTime()
Returns the next time when a routing record schedule changes
public DateTime GetNextRoutingChangeTime()
Returns
- DateTime
Date of next change.
GetNextRoutingChangeTime(int)
Returns the next time when a routing record of the port schedule changes
public DateTime GetNextRoutingChangeTime(int PortID)
Parameters
PortID
intThe port
Returns
- DateTime
Date of next change.
GetNextSynchronizationMessageFromQueue(SIntList, out int, out int, out string)
Retrieves a single message that has to be tranported by the link manager.
public bool GetNextSynchronizationMessageFromQueue(SIntList OnlinePortIDs, out int TransportID, out int PortID, out string Message)
Parameters
OnlinePortIDs
SIntListThe ID of all online trunks.
TransportID
intA ID that have to be used to confirm the transport. Will be 0 if no message avaiable.
PortID
intThe ID of the port that havwe to used for transport. Will be 0 if no message avaiable.
Message
stringThe compressed message itself. Will be null if no message avaiable.
Returns
- bool
True if there are more messages in queue ready for transport
GetNumberFormatProfileByID(string)
Retrieves a collection of NumberFormatProfileEntry objects, containing one or no entry.
public NumberProfilePrimaryCollection GetNumberFormatProfileByID(string ProfileID)
Parameters
ProfileID
stringThe id of the profile to be returned.
Returns
- NumberProfilePrimaryCollection
Collection of NumberFormatProfileEntry objects.
GetNumberPossibleHits(string, bool, bool, bool, bool)
Returns object with possible hits (for each number type) and an exact match flag for given number fragment
public NumberPossibleHitsResult GetNumberPossibleHits(string number, bool searchPublicNumbers, bool searchInternalNumbers, bool searchMobileNumbers, bool searchExternalNumbers)
Parameters
number
stringNumber fragment to search for
searchPublicNumbers
boolSearch for hits in the public number table
searchInternalNumbers
boolSearch for hits in the internal number table
searchMobileNumbers
boolSearch for hits in the user table (mobile phone number are part of the user table)
searchExternalNumbers
boolSearch for hits in the external number table
Returns
Remarks
The given number fragment will NOT be modified (canonicalized) for searching.
GetPBXPhonebook(string, bool)
Retrieves a collection of PBXPhonebook entris matching the filter
public PBXPhonebookPrimaryCollection GetPBXPhonebook(string nameFilter, bool showHidden)
Parameters
nameFilter
stringName of entry. Can contain SQL Like delimters.
showHidden
boolHidden entries will not be ignored
Returns
- PBXPhonebookPrimaryCollection
Collection od PBXPhonebook objects.
GetParallelCalls(int)
Retrieves the list of configured parallel call numbers for the given user.
public SStringList GetParallelCalls(int UserID)
Parameters
UserID
intUser sepecified by ID
Returns
- SStringList
Parallel Call numbers as a StringList
GetPortSelection(int, int, CallingPartyType, string, string)
Gets a list of all usable ports of a the given PortBundle. The methods evaluates the number to be signaled (NonMatchingNumberBehaviour).
public PortSelectionPrimaryCollection GetPortSelection(int PortBundleID, int CallingPartyID, CallingPartyType CallingPartyType, string CallingNumber, string CalledNumber)
Parameters
PortBundleID
intThe id of the port bundle.
CallingPartyID
intThe id of the user or port which makes the call.
CallingPartyType
CallingPartyTypeType of the calling party: 0=User, 1=Port
CallingNumber
stringThe calling number. Can an internal or a public number.
CalledNumber
stringThe called number.
Returns
- PortSelectionPrimaryCollection
Collection of PortSelectionEntry objects
Remarks
The returned PortSelectionEntry contains additional flags indicating weather the called number is configured on this port. In that case the port should not be used. There is no ambigous test for SIP uris, the flag will be returning false for every sip uri.
GetPortSelection(int, int, CallingPartyType, string, string, AddressResolutionContext)
Gets a list of all usable ports of a the given PortBundle. The methods evaluates the number to be signaled (NonMatchingNumberBehaviour).
public PortSelectionPrimaryCollection GetPortSelection(int PortBundleID, int CallingPartyID, CallingPartyType CallingPartyType, string CallingNumber, string CalledNumber, AddressResolutionContext cContext)
Parameters
PortBundleID
intThe id of the port bundle.
CallingPartyID
intThe id of the user or port which makes the call.
CallingPartyType
CallingPartyTypeType of the calling party: 0=User, 1=Port
CallingNumber
stringThe calling number. Can an internal or a public number.
CalledNumber
stringThe called number.
cContext
AddressResolutionContext
Returns
- PortSelectionPrimaryCollection
Collection of PortSelectionEntry objects
Remarks
The returned PortSelectionEntry contains additional flags indicating weather the called number is configured on this port. In that case the port should not be used. There is no ambigous test for SIP uris, the flag will be returning false for every sip uri.
GetPortSelectionEx(int, int, CallingPartyType, string, int, string, string, AddressResolutionContext, string)
Gets a list of all usable ports of a the given PortBundle. The methods determiners the number to be signaled on each trunk regarding the singalling template on each trunk.
public PortSelectionPrimaryCollection GetPortSelectionEx(int PortBundleID, int OriginatingPartyID, CallingPartyType OriginatingPartyType, string OriginatingNumber, int RedirectingUserID, string RedirectingNumber, string CalledNumber, AddressResolutionContext cContext, string NetworkSrcNumber)
Parameters
PortBundleID
intThe id of the port bundle.
OriginatingPartyID
intThe id of the user or port which makes the call.
OriginatingPartyType
CallingPartyTypeType of the calling party: 0=User, 1=Port
OriginatingNumber
stringThe calling number. Can an internal or a public number.
RedirectingUserID
intThe id of the redirector
RedirectingNumber
stringThe number of the redirector
CalledNumber
stringThe called number.
cContext
AddressResolutionContextNetworkSrcNumber
stringThe network source number
Returns
- PortSelectionPrimaryCollection
Collection of PortSelectionEntry objects
Remarks
The result list is sorted by the MatchType. (Originator>Redirector>SpecificNumber>NoMatch) Furhter the returned PortSelectionEntries contains additional flags indicating weather the called number is configured on this port. In that case the port should not be used. There is no ambigous test for SIP uris, the flag will be returning false for every sip uri. If the OriginatingNumber or the RedirectingNumber are internal and they will replaced by public numbers in the retrieved result.
GetPortsByName(string)
Retrieves all Ports matching the given name
public PortPrimaryCollection GetPortsByName(string name)
Parameters
name
stringThe port name.
Returns
- PortPrimaryCollection
Collection of ports filtered by name.
GetPossibleIpPbxUserNames()
Returns all possible IpPbx User Names of the current user. Can be more than one if the current user is a windows user and multiple IppPbxUser are assigned to his windows account.
public SStringList GetPossibleIpPbxUserNames()
Returns
- SStringList
StringList
GetProviderProfileByPortBundleType(PortBundleType)
Retrieves all ProviderProfiles matching the PortBundleType sorted by ProviderProfileName
public ProviderProfilePrimaryCollection GetProviderProfileByPortBundleType(PortBundleType PortBundleType)
Parameters
PortBundleType
PortBundleTypeThe type of the Provider
Returns
- ProviderProfilePrimaryCollection
Collection of ProviderProfileEntry objects.
GetProviderProfileByProviderID(string)
Retrieves a Provider Profile
public ProviderProfilePrimaryCollection GetProviderProfileByProviderID(string ProviderID)
Parameters
ProviderID
stringThe ID of the Provider as it is defined int the ProviderFile
Returns
- ProviderProfilePrimaryCollection
Collection of ProviderProfileEntry objects.
GetPublicNumberOwner(string, out bool, out bool, out int, out string)
Searches for the owner of a public number.
public void GetPublicNumberOwner(string publicNumber, out bool UserFound, out bool GroupFound, out int FoundEntryID, out string FoundName)
Parameters
publicNumber
stringUserFound
boolReturns true if a user was found.
GroupFound
boolReturns true if a group was found.
FoundEntryID
intThe id (user or group) of the owner.
FoundName
stringThe name of the owner.
GetRecordingCodecs()
public RecordingCodecList GetRecordingCodecs()
Returns
GetRootAndServerCertificate(out string)
public bool GetRootAndServerCertificate(out string Certificates)
Parameters
Certificates
string
Returns
GetSchemaVersion(out string, out string, out int)
Retrieves schema informations from database.
public void GetSchemaVersion(out string SchemaVer, out string SchemaDate, out int OldVersions)
Parameters
SchemaVer
stringReturns the SchemaVersion
SchemaDate
stringReturns the date of the last schema update.
OldVersions
int
GetServerRequestTimeout(IppbxServerFacadeClient)
protected override TimeSpan GetServerRequestTimeout(IppbxServerFacadeClient client)
Parameters
client
IppbxServerFacadeClient
Returns
GetSimpleNumberOwnerList(string)
public SIntList GetSimpleNumberOwnerList(string sInternalNumber)
Parameters
sInternalNumber
string
Returns
GetSiteGuid(int)
Retrieves the SiteGuid for the given SiteId
public Guid GetSiteGuid(int siteId)
Parameters
siteId
int
Returns
GetSiteId(Guid)
Retrieves the SiteId for the given SiteGuid
public int GetSiteId(Guid siteGuid)
Parameters
siteGuid
Guid
Returns
GetSupportedClientVersions()
public SStringList GetSupportedClientVersions()
Returns
GetSyncPortsView()
Retrieves a SyncPortsView
public SyncPortsViewPrimaryCollection GetSyncPortsView()
Returns
GetThumbprints()
public SStringList GetThumbprints()
Returns
GetTrunkIDByLoginID(Guid)
Check if LoginID is valid and returns TrunksID
public int GetTrunkIDByLoginID(Guid LoginID)
Parameters
LoginID
GuidGuid
Returns
- int
Trunk ID (int)
GetUserByVanitiyNumberAndExistingFile(string, string, PreDefinedFileCategory, bool, bool)
public int[] GetUserByVanitiyNumberAndExistingFile(string VanityNumber, string FileName, PreDefinedFileCategory FileCategory, bool bIncludePrivateFiles, bool bIncludeHiddenFiles)
Parameters
VanityNumber
stringFileName
stringFileCategory
PreDefinedFileCategorybIncludePrivateFiles
boolbIncludeHiddenFiles
bool
Returns
- int[]
GetUserIDAndInvalidateLoginID(Guid)
public int GetUserIDAndInvalidateLoginID(Guid LoginID)
Parameters
LoginID
Guid
Returns
GetUserIDAndInvalidateLoginID(Guid, LoginIdType)
Check if LoginID is valid and return UserID On success LoginID will be removed
public int GetUserIDAndInvalidateLoginID(Guid LoginID, LoginIdType type)
Parameters
LoginID
GuidGuid
type
LoginIdTypeType of the login id. (IpPbxSrv|UaCstaSrv)
Returns
- int
User ID (int)
GetUserMINs(int)
Retrieves the list of MobileIdentificationNumbers (MINs) for the current user.
public SStringList GetUserMINs(int UserID)
Parameters
UserID
intUser sepecified by ID
Returns
- SStringList
StringList
GetUserMessageCounts(int)
public NumMessages GetUserMessageCounts(int userId)
Parameters
userId
int
Returns
- NumMessages
GetUserNumberMappings(int)
Retrieves a collection with all number mappings (internal public numbers) of a given user.
public NumberMappingPrimaryCollection GetUserNumberMappings(int UserID)
Parameters
UserID
intThe id of the user.
Returns
- NumberMappingPrimaryCollection
Collection of NumberMappingEntries
GetUserPresenceData(int, out bool, out bool)
public void GetUserPresenceData(int iUserID, out bool bIsAway, out bool bDoNotDisturb)
Parameters
GetUserVoiceMessages(int)
public VoiceMessageList GetUserVoiceMessages(int userId)
Parameters
userId
int
Returns
HasNextSynchronizationMessage()
Checks for ready messages for transport
public bool HasNextSynchronizationMessage()
Returns
- bool
True if there are more messages in queue ready for transport
HasRole(BuildInRoles)
public bool HasRole(BuildInRoles eRole)
Parameters
eRole
BuildInRoles
Returns
IncreaseVoicemail(int)
Increases the voicemail counter by one and returns the actual value
public int IncreaseVoicemail(int UserID)
Parameters
UserID
int
Returns
- int
actual voicemail counter
InitDatabase()
Inits the database while starting the IpPbxServer. The LgoinTime of all users will be set to null
public void InitDatabase()
IsCallAllowed(int, CallingPartyType, string, string)
public bool IsCallAllowed(int iCallingPartyID, CallingPartyType eCallingPartyType, string sNumber, string sPublicAccessPrefix)
Parameters
iCallingPartyID
inteCallingPartyType
CallingPartyTypesNumber
stringsPublicAccessPrefix
string
Returns
IsPublicNumberConfiguredOnTrunk(string, out bool)
Checks if the given number is configured on a trunk.
public bool IsPublicNumberConfiguredOnTrunk(string PublicNumber, out bool Ambiguous)
Parameters
PublicNumber
stringThe number
Ambiguous
boolTrue if a longer number starting with the given public number may be configured.
Returns
- bool
True or False
MessageTranportFailed(int)
Informs the CDS that the tranport of the message has been failed
public void MessageTranportFailed(int TransportID)
Parameters
TransportID
intThe Tranport ID that of the message.
ModifyEditablePhoneBookEntry(int, string, string, string, string, bool)
Modifies a PhoneBookEntry directly
public void ModifyEditablePhoneBookEntry(int EntryID, string Name, string Number, string SearchNumber, string Description, bool Hide)
Parameters
EntryID
intThe EntryID of the entry to be modified.
Name
stringThe name of the entry
Number
stringThe number
SearchNumber
stringThe search number is the canonical representation of the number. It will be generated by the CDS.
Description
stringMandatory description
Hide
boolWhen set to true the entry will not be shown in phonebook. It will be used to resolve the name for displaying current call informations.
ParseNumberFormatProfile(NumberProfileEntry)
Parses the XMLCode in the NumberProfileEntry.
public GenericNumberFormatProfile ParseNumberFormatProfile(NumberProfileEntry entry)
Parameters
entry
NumberProfileEntryThe NumberProfileEntry to be parsed.
Returns
- GenericNumberFormatProfile
GenereicNumberProfile or a derevied class.
ParseNumberFormatProfile(NumberProfileEntry, string, string)
Parses the XMLCode in the NumberProfileEntry.
public GenericNumberFormatProfile ParseNumberFormatProfile(NumberProfileEntry entry, string CountryCode, string AreaCode)
Parameters
entry
NumberProfileEntryThe NumberProfileEntry to be parsed.
CountryCode
stringOnly matching rules will returned
AreaCode
stringOnly matching rules will returned
Returns
- GenericNumberFormatProfile
GenereicNumberProfile or a derevied class.
ParseProviderProfile(ProviderProfileEntry)
Parses the XMLCode in the ProviderProfileEntry.
public GenericProviderProfile ParseProviderProfile(ProviderProfileEntry entry)
Parameters
entry
ProviderProfileEntryThe ProviderProfileEntry to be parsed.
Returns
- GenericProviderProfile
GenereicProviderProfile or a derevied class.
PingService(IppbxServerFacadeClient)
protected override void PingService(IppbxServerFacadeClient cProxy)
Parameters
cProxy
IppbxServerFacadeClient
ProcessIncommingSynchronizationMessage(int, string)
Process an incomming message from a remote LinkManager (side)
public void ProcessIncommingSynchronizationMessage(int IncommingPortID, string Message)
Parameters
ResetDynamicPortPSK(int)
The current preshared key of the given port will be reseted at CDSService
public string ResetDynamicPortPSK(int PortID)
Parameters
PortID
int
Returns
- string
New PSK
Remarks
To acutalize the PSK in the local user entry, use IpPbxServerFacade.UserPrimaryCollection.PresharedKeyDynamic
ResetDynamicUserPSK(int)
The current preshared key of the given user will be reseted at CDSService
public string ResetDynamicUserPSK(int UserID)
Parameters
UserID
intThe id of the given user
Returns
- string
New PSK
Remarks
To acutalize the PSK in the local user entry, use IpPbxServerFacade.UserPrimaryCollection.PresharedKeyDynamic
ResetGroupCallDeliveryDisabledFlags()
public void ResetGroupCallDeliveryDisabledFlags()
ResetPortLoginID(int)
The current LoginID of the given port will be reseted at CDSService
public Guid ResetPortLoginID(int PortID)
Parameters
PortID
intThe id of the given port
Returns
- Guid
New LoginID
Remarks
To acutalize the LoginID in the local user entry, call IpPbxServerFacade.UserPrimaryCollection.SetLoginID
SetAllGroupVoiceMessageViewedAt(int, bool, int, string)
public bool SetAllGroupVoiceMessageViewedAt(int groupId, bool viewed, int viewedByUserId, string viewedByFallback)
Parameters
Returns
SetAllUserVoiceMessageViewedAt(int, bool, int, string)
public bool SetAllUserVoiceMessageViewedAt(int userId, bool viewed, int viewedByUserId, string viewedByFallback)
Parameters
Returns
SetAutoLoginPhone(int, string)
Set the users AutoLoginPhone attribute direct
public bool SetAutoLoginPhone(int UserID, string AutoLoginPhone)
Parameters
Returns
- bool
true if successfull
Remarks
This method is a remote one.
SetCallDetailRecordFileMetaData(CallDetailRecordFileMetaData)
public void SetCallDetailRecordFileMetaData(CallDetailRecordFileMetaData data)
Parameters
data
CallDetailRecordFileMetaData
SetConfigurationLoadConfirmation(string, bool)
public void SetConfigurationLoadConfirmation(string service, bool withoutErrors)
Parameters
SetDefaultForwardingEnabled(int, bool)
public void SetDefaultForwardingEnabled(int userID, bool value)
Parameters
SetDefaultForwardingNumber(int, string)
public void SetDefaultForwardingNumber(int userID, string value)
Parameters
SetEmailAddress(int, string)
public void SetEmailAddress(int userID, string value)
Parameters
SetForwardOnBusyEnabled(int, bool)
public void SetForwardOnBusyEnabled(int userID, bool value)
Parameters
SetForwardOnBusyNumber(int, string)
public void SetForwardOnBusyNumber(int userID, string value)
Parameters
SetForwardOnNoAnswerEnabled(int, bool)
public void SetForwardOnNoAnswerEnabled(int userID, bool value)
Parameters
SetForwardOnNoAnswerNumber(int, string)
public void SetForwardOnNoAnswerNumber(int userID, string value)
Parameters
SetForwardOnNoAnswerTimeout(int, int)
public void SetForwardOnNoAnswerTimeout(int userID, int value)
Parameters
SetForwardingConfiguration(int, ForwardingConfigParameters)
public void SetForwardingConfiguration(int userID, ForwardingConfigParameters parameters)
Parameters
userID
intparameters
ForwardingConfigParameters
SetFreeStatusText(int, string)
public void SetFreeStatusText(int iUserID, string strFreeStatusText)
Parameters
SetLanPhonePin(int, string)
public void SetLanPhonePin(int userID, string value)
Parameters
SetNewVoicemailNum(int, int)
Sets the voicemail counter to a given value. The value can be 0. If the value is not 0 it can not be lower than the number in database. In this case the number in database will be increased by one
public int SetNewVoicemailNum(int userID, int number)
Parameters
Returns
- int
actual voicemail counter
SetParallelCalls(int, SStringList)
Set Parallel Call numbers for the given user
public void SetParallelCalls(int userID, SStringList numbers)
Parameters
userID
intId of the User
numbers
SStringListParallel Call numbers as a StringList
SetUserMINs(int, SStringList)
Sets the list of mobile idtenification numbers (MINs) for the given user.
public void SetUserMINs(int UserID, SStringList MINs)
Parameters
UserID
intUser sepecified by ID
MINs
SStringListList of MINs
SetUserPresenceData(int, bool, bool, SDateTime)
public void SetUserPresenceData(int iUserID, bool bIsAway, bool bDoNotDisturb, SDateTime dExpirationDate)
Parameters
SetVoiceMailFile(int, string)
public void SetVoiceMailFile(int userID, string value)
Parameters
SetVoiceMailRecLen(int, int)
public void SetVoiceMailRecLen(int userID, int value)
Parameters
SetVoiceMessageViewedAt(int, bool, int, string)
public bool SetVoiceMessageViewedAt(int callId, bool viewed, int viewedByUserId, string viewedByFallback)
Parameters
Returns
WriteCallDetailRecord(CallDetailRecord)
public void WriteCallDetailRecord(CallDetailRecord record)
Parameters
record
CallDetailRecord