flutter_gsmsip library

Flutter GSM SIP SMPP Library

A Flutter plugin for Android that provides GSM, SIP, and SMPP functionality. Enables voice calls and SMS over SIP with GSM integration.

Classes

Account
AccountEventModel
Account event model
AccountRegistration
SIP Account Registration Status
AnalyticsRepository
Репозиторий для работы с аналитикой
AnalyticsUseCases
Use cases для работы с аналитикой
AnswerSipCall
Answer an incoming call
AppConstants
Константы приложения GOSTsimbox Gateway Централизованное хранение всех констант
AttendedTransferSipCall
Attended transfer a call
AuthFailure
Authentication failure
CacheFailure
Cache failure
CallEventData
Call event data
CallEventModel
Call event model
CallRouting
Call Routing entity
ConfigNotFoundFailure
Configuration not found failure
ConnectionFailure
Connection failure
ConnectivityEventModel
Connectivity event model
CreateSipAccount
Create a new SIP account
DeclineSipCall
Decline an incoming call
DeleteSipAccount
Delete a SIP account
DestroySip
Destroy SIP endpoint
DeviceInfo
Модель информации об устройстве
DisposeGateway
Dispose gateway resources
DongleConfig
Конфигурация донгла (адаптера)
DongleConfigStorage
Хранилище конфигурации донгла В реальной реализации будет использовать SharedPreferences
DongleErrorHandler
Сервис для обработки ошибок Dongle
DongleNotificationService
Сервис уведомлений Dongle
DongleRepository
Репозиторий для управления донглами
DongleRepositoryImpl
Реализация DongleRepository
DongleStatus
Статус донгла (адаптера)
DongleTestResult
Результат теста донгла
DongleTypeDetector
Детектор типа донгла по сопротивлениям
EndAllGatewayRoutings
End all active routings
EndGatewayRouting
End specific routing
Failure
Base failure class for all application failures
GatewayConfig
Gateway Configuration entity
GatewayConfigModel
Gateway configuration model
GatewayFailure
Gateway failure
GatewayRepository
Gateway Repository interface
GatewayRepositoryImpl
Gateway Repository Implementation
GatewayStatus
Gateway Status entity
GetActiveGatewayRoutings
Get all active routings
GetActiveSipCalls
Get all active calls
GetAllSipAccounts
Get all SIP accounts
GetGatewayConfig
Get current configuration
GetGatewayRouting
Get routing by ID
GetGatewayStatistics
Get gateway statistics
GetGatewayStatus
Get current gateway status
GetSipAccount
Get a SIP account
HangupSipCall
Hangup a call
HoldSipCall
Hold a call
InitializeGateway
Initialize gateway with configuration
InitializeSip
Initialize SIP endpoint
InvalidConfigFailure
Invalid configuration failure
IsGatewayRunning
Check if gateway is running
IsSipConnected
Check if connected
LoadGatewayConfig
Load configuration from storage
LocalDataSource
Локальный источник данных Direct access to SharedPreferences without presentation layer dependencies
LocalStorageDataSource
LocalStorageDataSourceImpl
MakeGatewayGsmCall
Make call via GSM (GSM→SIP routing)
MakeGatewaySipCall
Make call via SIP (SIP→GSM routing)
MakeSipCall
Make an outgoing SIP call
MuteSipCall
Mute a call
NetworkFailure
Network-related failures
NoParams
No parameters needed
PermissionFailure
Permission failure
RedirectSipCall
Redirect a call
RegisterSipAccount
Register a SIP account
RegistrationEventData
Registration event data
RemoteDataSource
Удаленный источник данных Direct HTTP access without presentation layer dependencies
ResetGatewayStatistics
Reset gateway statistics
ResistanceMeasurementResult
Результат измерения сопротивления
ResistanceMeasurements
Измерения сопротивлений донгла
ResultHelper
Helper functions for creating Result instances
SaveGatewayConfig
Save configuration
SendDtmfSipCall
Send DTMF tone
SendGatewaySms
Send SMS via gateway
ServiceUnavailableFailure
Service unavailable failure
SettingsRepository
Репозиторий для работы с настройками
SettingsUseCases
Use cases для работы с настройками
SipAccount
SIP Account entity
SipAccountModel
SIP Account model
SipCall
SIP Call entity
SipCallModel
SIP Call model
SipEvent
SIP Event entity
SipEventModel
SIP Event model
SipFailure
SIP failure
SipRepository
SIP Repository interface
SipRepositoryImpl
SIP Repository Implementation
SipUseCase<T, Params>
Base class for SIP use cases
SmppConfig
SmppDeliveryReceipt
SmppLogger
SmppMessage
SmppService
SmsMessage
SmsRepository
StartGateway
Start gateway routing
StopGateway
Stop gateway routing
StorageFailure
Storage failure
StorageKeys
Storage keys for SharedPreferences Centralized key constants for all persistent storage
TelephonyFailure
Telephony failure
TestMethodResult
Результат тестирования метода доступа к линии
TimeoutFailure
Timeout failure
TransferSipCall
Blind transfer a call
Try<T>
Try-Catch helper for functional error handling
UnholdSipCall
Unhold a call
UnknownFailure
Unknown/unexpected failure
UnmuteSipCall
Unmute a call
UnregisterSipAccount
Unregister a SIP account
UseEarpieceSipCall
Use earpiece for a call
UseSpeakerSipCall
Use speaker for a call
ValidationFailure
Validation failure
Validators
Класс для валидации различных типов данных
VoiceLineConfig
Конфигурация системы доступа к голосовой линии
VoiceLineConfigStorage
Хранилище конфигурации VoiceLine В реальной реализации будет использовать SharedPreferences
VoiceLineErrorHandler
Сервис для обработки ошибок VoiceLine
VoiceLineMethodStatus
Статус метода доступа к голосовой линии
VoiceLineNotificationService
Сервис уведомлений VoiceLine
VoiceLineRepository
Репозиторий для управления методами доступа к голосовой линии
VoiceLineRepositoryImpl
Реализация VoiceLineRepository

Enums

CallDirection
Call direction
CallRoutingDirection
Call routing direction
CallRoutingState
Call routing state
CallState
Call state
DongleInterfaceType
Тип интерфейса донгла (адаптера)
DongleType
Тип схемы донгла (определяется по сопротивлению)
QualityLevel
Уровень качества метода доступа к линии
SipConnectionState
SIP connection state
SipEventType
SIP event type
SipRegistrationState
SIP registration state
SipTransport
SIP transport protocol
SmppBindType
SmppConnectionState
SMPP connection state
SmppLogLevel
SmppMessageStatus
SmsStatus
SmsType
TelephonyPermissionStatus
Telephony permission status
VoiceLineMethod
Метод доступа к голосовой линии

Extensions

AsyncResultExtension on AsyncResult<T>
Extension methods for AsyncResult type
BuildContextExtension on BuildContext
BuildContext extensions for common operations
DateTimeExtension on DateTime
DateTime extensions for formatting and manipulation
DongleFutureExtension on Future<T>
Extension для удобной обработки ошибок
DongleInterfaceTypeExtension on DongleInterfaceType
DongleTypeExtension on DongleType
DurationExtension on Duration
Duration extensions for formatting
ListExtension on List<T>
List extensions
MapExtension on Map<K, V>
Map extensions
NumExtension on num
Num extensions for formatting
QualityLevelExtension on QualityLevel
ResultExtension on Result<T>
Extension methods for Result type
StringExtension on String
String extensions for common string operations
VoiceLineFutureExtension on Future<T>
Extension для удобной обработки ошибок
VoiceLineMethodExtension on VoiceLineMethod

Functions

failure<T>(Failure failure) Result<T>
Create a failure Result
success<T>(T value) Result<T>
Create a success Result

Typedefs

AsyncGatewayResult<T> = Future<Either<Failure, T>>
Async Result type alias for gateway operations
AsyncResult<T> = Future<Either<Failure, T>>
Async Result type alias for Future<Either<Failure, T>>
AsyncSipResult<T> = Future<Either<Failure, T>>
Async Result type alias for SIP operations
GatewayResult<T> = Either<Failure, T>
Result type alias for gateway operations
Result<T> = Either<Failure, T>
Result type alias for Either<Failure, T>
SipResult<T> = Either<Failure, T>
Result type alias for SIP operations
StreamResult<T> = Stream<Either<Failure, T>>
Stream Result type alias for Stream<Either<Failure, T>>
StreamSipResult<T> = Stream<Either<Failure, T>>
Stream Result type alias for SIP operations

Exceptions / Errors

AppException
Base exception class for all application exceptions
AuthException
Authentication exceptions
CacheException
Cache exception
ConfigException
Ошибка конфигурации
ConfigNotFoundException
Configuration exceptions
ConnectionException
Connection-specific network exception
DongleConfigException
Ошибка конфигурации
DongleException
Исключения Dongle
DongleNotFoundException
Донгл не найден
GatewayException
Gateway-specific exceptions
InvalidConfigException
Invalid configuration exception
MethodUnavailableException
Метод недоступен
NetworkException
Network-related exceptions
PermissionException
Permission exceptions
ResistanceMeasurementException
Ошибка измерения сопротивлений
ServiceUnavailableException
Service unavailable exception
SipException
SIP-specific exceptions
StorageException
Storage exceptions
TelephonyException
Telephony-specific exceptions
TestFailedException
Ошибка тестирования
TimeoutException
Timeout-specific network exception
TrrsConnectionException
Ошибка TRRS подключения
TypeDetectionException
Ошибка определения типа
UsbConnectionException
Ошибка USB подключения
ValidationException
Validation exceptions
VoiceLineException
Исключения VoiceLine