Class CallUserEntity

java.lang.Object
com.bytedesk.core.base.BaseEntity
com.bytedesk.call.users.CallUserEntity
All Implemented Interfaces:
Serializable

@Entity public class CallUserEntity extends BaseEntity
Call用户实体 对应数据库表:freeswitch_users
See Also:
  • Field Details

    • username

      private String username
      用户名(SIP用户名)
    • domain

      private String domain
      SIP域名 对应数据库字段:domain
    • password

      private String password
      密码 对应数据库字段:password
    • vmPassword

      private String vmPassword
      语音邮件密码 对应数据库字段:vm_password
    • enabled

      private Boolean enabled
      是否启用 对应数据库字段:enabled
    • callerIdName

      private String callerIdName
      呼叫显示名称 对应数据库字段:caller_id_name
    • callerIdNumber

      private String callerIdNumber
      呼叫显示号码 对应数据库字段:caller_id_number
    • outboundCallerIdName

      private String outboundCallerIdName
      外呼显示名称 对应数据库字段:outbound_caller_id_name
    • outboundCallerIdNumber

      private String outboundCallerIdNumber
      外呼显示号码 对应数据库字段:outbound_caller_id_number
    • tollAllow

      private String tollAllow
      通话权限 对应数据库字段:toll_allow
    • accountcode

      private String accountcode
      账户代码 对应数据库字段:accountcode
    • userContext

      private String userContext
      用户上下文 对应数据库字段:user_context
    • callgroup

      private String callgroup
      呼叫组 对应数据库字段:callgroup
    • displayName

      private String displayName
      显示名称(兼容字段,对应caller_id_name)
    • email

      private String email
      邮箱
    • lastRegister

      private ZonedDateTime lastRegister
      最后注册时间
    • registerIp

      private String registerIp
      注册IP地址
    • userAgent

      private String userAgent
      用户代理
    • remarks

      private String remarks
      备注
  • Constructor Details

    • CallUserEntity

      public CallUserEntity()
  • Method Details

    • getSipAddress

      public String getSipAddress()
      获取完整的SIP地址
    • isOnline

      public boolean isOnline()
      检查用户是否在线
    • getEffectiveCallerIdName

      public String getEffectiveCallerIdName()
      获取呼叫显示名称,优先使用caller_id_name,如果没有则使用displayName
    • getEffectiveCallerIdNumber

      public String getEffectiveCallerIdNumber()
      获取呼叫显示号码,优先使用caller_id_number,如果没有则使用username
    • hasOutboundPermission

      public boolean hasOutboundPermission()
      检查是否有外呼权限