Package com.bytedesk.call.users
Class CallUserEntity
java.lang.Object
com.bytedesk.core.base.BaseEntity
com.bytedesk.call.users.CallUserEntity
- All Implemented Interfaces:
Serializable
Call用户实体
对应数据库表:freeswitch_users
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
账户代码 对应数据库字段:accountcodeprivate String
呼叫显示名称 对应数据库字段:caller_id_nameprivate String
呼叫显示号码 对应数据库字段:caller_id_numberprivate String
呼叫组 对应数据库字段:callgroupprivate String
显示名称(兼容字段,对应caller_id_name)private String
SIP域名 对应数据库字段:domainprivate String
邮箱private Boolean
是否启用 对应数据库字段:enabledprivate ZonedDateTime
最后注册时间private String
外呼显示名称 对应数据库字段:outbound_caller_id_nameprivate String
外呼显示号码 对应数据库字段:outbound_caller_id_numberprivate String
密码 对应数据库字段:passwordprivate String
注册IP地址private String
备注private String
通话权限 对应数据库字段:toll_allowprivate String
用户代理private String
用户上下文 对应数据库字段:user_contextprivate String
用户名(SIP用户名)private String
语音邮件密码 对应数据库字段:vm_password -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription获取呼叫显示名称,优先使用caller_id_name,如果没有则使用displayName获取呼叫显示号码,优先使用caller_id_number,如果没有则使用username获取完整的SIP地址boolean
检查是否有外呼权限boolean
isOnline()
检查用户是否在线Methods inherited from class com.bytedesk.core.base.BaseEntity
getCreatedAtString, getUpdatedAtString
-
Field Details
-
username
用户名(SIP用户名) -
domain
SIP域名 对应数据库字段:domain -
password
密码 对应数据库字段:password -
vmPassword
语音邮件密码 对应数据库字段:vm_password -
enabled
是否启用 对应数据库字段:enabled -
callerIdName
呼叫显示名称 对应数据库字段:caller_id_name -
callerIdNumber
呼叫显示号码 对应数据库字段:caller_id_number -
outboundCallerIdName
外呼显示名称 对应数据库字段:outbound_caller_id_name -
outboundCallerIdNumber
外呼显示号码 对应数据库字段:outbound_caller_id_number -
tollAllow
通话权限 对应数据库字段:toll_allow -
accountcode
账户代码 对应数据库字段:accountcode -
userContext
用户上下文 对应数据库字段:user_context -
callgroup
呼叫组 对应数据库字段:callgroup -
displayName
显示名称(兼容字段,对应caller_id_name) -
email
邮箱 -
lastRegister
最后注册时间 -
registerIp
注册IP地址 -
userAgent
用户代理 -
remarks
备注
-
-
Constructor Details
-
CallUserEntity
public CallUserEntity()
-
-
Method Details
-
getSipAddress
获取完整的SIP地址 -
isOnline
public boolean isOnline()检查用户是否在线 -
getEffectiveCallerIdName
获取呼叫显示名称,优先使用caller_id_name,如果没有则使用displayName -
getEffectiveCallerIdNumber
获取呼叫显示号码,优先使用caller_id_number,如果没有则使用username -
hasOutboundPermission
public boolean hasOutboundPermission()检查是否有外呼权限
-