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
NamestringThe name of the phone entry
NumberstringThe number
SearchNumberstringThe search number is the canonical representation of the number. It will be generated by the CDS.
DescriptionstringMandatory description
HideboolWhen 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
collectionNumberProfilePrimaryCollectionThe profile entry will be added to this collection.
ProfileIDstringThje 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
IpPbxPhoneCallIDintThe PhoneCallID same as used in CDR.
UserIDintThe ID of the User
CalledNumberstringThe called party number
CalledNamestringThe called party name
CalledUserIDintThe called party UserID
StateSPCBStateThe 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
collectionPortPrimaryCollectionThe retrieved entry will be added to this collection.
gLoginIDGuid
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
collectionPortPrimaryCollectionThe retrieved entry will be added to this collection.
H323AliasstringThe 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
collectionPortPrimaryCollectionThe retrieved entry will be added to this collection.
PortIDintThe 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
collectionPortPrimaryCollectionThe retrieved entry will be added to this collection.
SIPUserIDstringThe 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
collectionPortPrimaryCollectionThe retrieved entry will be added to this collection.
SIPUserNamestringThe 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
TransportIDint
CreateClient(Binding, EndpointAddress)
protected override IppbxServerFacadeClient CreateClient(Binding binding, EndpointAddress endpointAdrress)
Parameters
bindingBindingendpointAdrressEndpointAddress
Returns
- IppbxServerFacadeClient
CreateFullSync()
public void CreateFullSync()
DeleteEditablePhoneBookEntry(int)
Deletes an new PhoneBookEntry directly
public void DeleteEditablePhoneBookEntry(int EntryID)
Parameters
EntryIDintThe EntryID of the entry to be deleted.
DeleteGroupVoiceMessages(int)
public void DeleteGroupVoiceMessages(int groupId)
Parameters
groupIdint
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
userIdint
DeleteVoiceMessage(int)
public void DeleteVoiceMessage(int callId)
Parameters
callIdint
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
callIdintforwardToGroupIdintnewCallIdintnewCallingNamestringsubscriptionCallActionProcessedSubscription
ForwardVoiceMessageToUser(int, int, int, string, CallActionProcessedSubscription)
public void ForwardVoiceMessageToUser(int callId, int forwardToUserId, int newCallId, string newCallingName, CallActionProcessedSubscription subscription)
Parameters
callIdintforwardToUserIdintnewCallIdintnewCallingNamestringsubscriptionCallActionProcessedSubscription
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
PublicNumberstringThe 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
siteGuidGuid
Returns
GetConnectedSite(int)
Retrieves the ConnectedSiteEntry for the given Site Id
public ConnectedSiteEntry GetConnectedSite(int siteId)
Parameters
siteIdint
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
UserNamestring
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
hardwareIdstring
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
mobileIdstringThe reference id from the movbile phone
Returns
- string
Number or emoty string
GetFreeStatusText(int)
public string GetFreeStatusText(int iUserID)
Parameters
iUserIDint
Returns
GetGroupVoiceMessages(int)
public VoiceMessageList GetGroupVoiceMessages(int groupId)
Parameters
groupIdint
Returns
GetLocalSiteId()
Retrieves the ID of the local site
public int GetLocalSiteId()
Returns
GetLocationUndeliverableCallsNumberByID(int)
public string GetLocationUndeliverableCallsNumberByID(int iLocationID)
Parameters
iLocationIDint
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
CallingPartyIdintThe Id of the CallingParty (UserID or PortID)
CallingPartyTypeCallingPartyTypeThe Type of the CallingParty
NumberstringThe number (starting fragment)
IncludePublicNumbersbooltrue if the number should be searched in the list of public numbers
IncludeInternalNumbersbooltrue if the number should be searched in the list of internal numbers
IncludeMobileNumbersbooltrue if the number shaould searched in the the list of assigned mobile numbers
IncludeExternalNumbersbooltrue if the number shaould searched in the the list of external numbers from users in connected sites
PossibleHitsintReturns the count of possible hits.
IsNumberConfiguredOnTrunkboolReturns 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
CallingPartyIdintThe Id of the CallingParty (UserID or PortID)
CallingPartyTypeCallingPartyTypeThe Type of the CallingParty
NumberstringThe number (starting fragment)
IncludePublicNumbersbooltrue if the number should be searched in the list of public numbers
IncludeInternalNumbersbooltrue if the number should be searched in the list of internal numbers
IncludeMobileNumbersbooltrue if the number shaould searched in the the list of assigned mobile numbers
IncludeExternalNumbersbooltrue if the number shaould searched in the the list of external numbers from users in connected sites
PossibleHitsintReturns the count of possible hits.
IsNumberConfiguredOnTrunkboolReturns if the number is defined on one or mor trunks.
addrResolutionContextAddressResolutionContextReturns 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
CallingPartyIdintThe Id of the CallingParty (UserID or PortID)
CallingPartyTypeCallingPartyTypeThe Type of the CallingParty
NumberstringThe number (starting fragment)
IncludePublicNumbersbooltrue if the number should be searched in the list of public numbers
IncludeInternalNumbersbooltrue if the number should be searched in the list of internal numbers
IncludeMobileNumbersbooltrue if the number shaould searched in the the list of assigned mobile numbers
PossibleHitsintReturns the count of possible hits.
IsNumberConfiguredOnTrunkboolReturns 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
CallingPartyIdintThe Id of the CallingParty (UserID or PortID)
CallingPartyTypeCallingPartyTypeThe Type of the CallingParty
NumberstringThe number (starting fragment)
IncludePublicNumbersbooltrue if the number should be searched in the list of public numbers
IncludeInternalNumbersbooltrue if the number should be searched in the list of internal numbers
PossibleHitsintReturns the count of possible hits.
IsNumberConfiguredOnTrunkboolReturns 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
UserIDintThe id of the user.
PortIDintID of the Port where the call goes through
PortBundleIDintID of the PortBundle corresponding to the Port
InternalNumberstringInternal 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
DialedNumberstringNumberServerRepresentationstringcallingPartyIDintcallingPartyTypeCallingPartyTypecallingPartyNumberstringdateTimeSDateTimeReturnAllPossibleboolcAddressResolutionContextAddressResolutionContextPossibleMatchingEntriesintPossibleMatchingPrefixesintResultingNumberstring
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
DialedNumberstringThe starting number fragment of thr dialed number. The number formatis [PortPrefix][+|PublicAccessPrefix]any*
NumberServerRepresentationstringThis number is used for retrieving access rights. Can be emtpy. In this case the normalized dialed number will be used.
callingPartyIDintThe calling party id is either an UserID or a PortID
callingPartyTypeCallingPartyTypeUser or Port
callingPartyNumberstringThe 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.
dateTimeSDateTimetime of the call as a UTC datetime
ReturnAllPossibleboolWhen true the method returns a list of all possible hits otherwise it will return al list of matching hits
PossibleMatchingEntriesintreturns the number of possible matching routed number entries
PossibleMatchingPrefixesintreturns the number of possible matching prefixes
ResultingNumberstringreturns 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
NumberstringNumber
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
PortIDintThe 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
OnlinePortIDsSIntListThe ID of all online trunks.
TransportIDintA ID that have to be used to confirm the transport. Will be 0 if no message avaiable.
PortIDintThe ID of the port that havwe to used for transport. Will be 0 if no message avaiable.
MessagestringThe 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
ProfileIDstringThe 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
numberstringNumber fragment to search for
searchPublicNumbersboolSearch for hits in the public number table
searchInternalNumbersboolSearch for hits in the internal number table
searchMobileNumbersboolSearch for hits in the user table (mobile phone number are part of the user table)
searchExternalNumbersboolSearch 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
nameFilterstringName of entry. Can contain SQL Like delimters.
showHiddenboolHidden 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
UserIDintUser 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
PortBundleIDintThe id of the port bundle.
CallingPartyIDintThe id of the user or port which makes the call.
CallingPartyTypeCallingPartyTypeType of the calling party: 0=User, 1=Port
CallingNumberstringThe calling number. Can an internal or a public number.
CalledNumberstringThe 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
PortBundleIDintThe id of the port bundle.
CallingPartyIDintThe id of the user or port which makes the call.
CallingPartyTypeCallingPartyTypeType of the calling party: 0=User, 1=Port
CallingNumberstringThe calling number. Can an internal or a public number.
CalledNumberstringThe called number.
cContextAddressResolutionContext
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
PortBundleIDintThe id of the port bundle.
OriginatingPartyIDintThe id of the user or port which makes the call.
OriginatingPartyTypeCallingPartyTypeType of the calling party: 0=User, 1=Port
OriginatingNumberstringThe calling number. Can an internal or a public number.
RedirectingUserIDintThe id of the redirector
RedirectingNumberstringThe number of the redirector
CalledNumberstringThe called number.
cContextAddressResolutionContextNetworkSrcNumberstringThe 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
namestringThe 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
PortBundleTypePortBundleTypeThe type of the Provider
Returns
- ProviderProfilePrimaryCollection
Collection of ProviderProfileEntry objects.
GetProviderProfileByProviderID(string)
Retrieves a Provider Profile
public ProviderProfilePrimaryCollection GetProviderProfileByProviderID(string ProviderID)
Parameters
ProviderIDstringThe 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
publicNumberstringUserFoundboolReturns true if a user was found.
GroupFoundboolReturns true if a group was found.
FoundEntryIDintThe id (user or group) of the owner.
FoundNamestringThe name of the owner.
GetRecordingCodecs()
public RecordingCodecList GetRecordingCodecs()
Returns
GetRootAndServerCertificate(out string)
public bool GetRootAndServerCertificate(out string Certificates)
Parameters
Certificatesstring
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
SchemaVerstringReturns the SchemaVersion
SchemaDatestringReturns the date of the last schema update.
OldVersionsint
GetServerRequestTimeout(IppbxServerFacadeClient)
protected override TimeSpan GetServerRequestTimeout(IppbxServerFacadeClient client)
Parameters
clientIppbxServerFacadeClient
Returns
GetSimpleNumberOwnerList(string)
public SIntList GetSimpleNumberOwnerList(string sInternalNumber)
Parameters
sInternalNumberstring
Returns
GetSiteGuid(int)
Retrieves the SiteGuid for the given SiteId
public Guid GetSiteGuid(int siteId)
Parameters
siteIdint
Returns
GetSiteId(Guid)
Retrieves the SiteId for the given SiteGuid
public int GetSiteId(Guid siteGuid)
Parameters
siteGuidGuid
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
LoginIDGuidGuid
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
VanityNumberstringFileNamestringFileCategoryPreDefinedFileCategorybIncludePrivateFilesboolbIncludeHiddenFilesbool
Returns
- int[]
GetUserIDAndInvalidateLoginID(Guid)
public int GetUserIDAndInvalidateLoginID(Guid LoginID)
Parameters
LoginIDGuid
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
LoginIDGuidGuid
typeLoginIdTypeType 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
UserIDintUser sepecified by ID
Returns
- SStringList
StringList
GetUserMessageCounts(int)
public NumMessages GetUserMessageCounts(int userId)
Parameters
userIdint
Returns
- NumMessages
GetUserNumberMappings(int)
Retrieves a collection with all number mappings (internal public numbers) of a given user.
public NumberMappingPrimaryCollection GetUserNumberMappings(int UserID)
Parameters
UserIDintThe 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
userIdint
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
eRoleBuildInRoles
Returns
IncreaseVoicemail(int)
Increases the voicemail counter by one and returns the actual value
public int IncreaseVoicemail(int UserID)
Parameters
UserIDint
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
iCallingPartyIDinteCallingPartyTypeCallingPartyTypesNumberstringsPublicAccessPrefixstring
Returns
IsPublicNumberConfiguredOnTrunk(string, out bool)
Checks if the given number is configured on a trunk.
public bool IsPublicNumberConfiguredOnTrunk(string PublicNumber, out bool Ambiguous)
Parameters
PublicNumberstringThe number
AmbiguousboolTrue 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
TransportIDintThe 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
EntryIDintThe EntryID of the entry to be modified.
NamestringThe name of the entry
NumberstringThe number
SearchNumberstringThe search number is the canonical representation of the number. It will be generated by the CDS.
DescriptionstringMandatory description
HideboolWhen 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
entryNumberProfileEntryThe 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
entryNumberProfileEntryThe NumberProfileEntry to be parsed.
CountryCodestringOnly matching rules will returned
AreaCodestringOnly 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
entryProviderProfileEntryThe ProviderProfileEntry to be parsed.
Returns
- GenericProviderProfile
GenereicProviderProfile or a derevied class.
PingService(IppbxServerFacadeClient)
protected override void PingService(IppbxServerFacadeClient cProxy)
Parameters
cProxyIppbxServerFacadeClient
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
PortIDint
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
UserIDintThe 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
PortIDintThe 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
dataCallDetailRecordFileMetaData
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
userIDintparametersForwardingConfigParameters
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
userIDintId of the User
numbersSStringListParallel 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
UserIDintUser sepecified by ID
MINsSStringListList 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
recordCallDetailRecord