'SIP', self::PROTOCOL_PJSIP => 'PJSIP', self::PROTOCOL_WSS => 'WSS (WebRTC)', ]; protected $table = 'user_extensions'; protected $fillable = [ 'user_id', 'label', 'sip_domain', 'sip_port', 'sip_protocol', 'sip_credentials_enabled', ]; protected $casts = [ 'sip_credentials_enabled' => 'boolean', ]; // ------------------------------------------------------------------------- // Relationships // ------------------------------------------------------------------------- /** * The user this extension belongs to. */ public function user() { return $this->belongsTo(User::class); } }