Answer the question
In order to leave comments, you need to log in
How do I set up federation between Skype for Business Online and Lync Server 2010?
Good afternoon.
One of the potential customers wants to set up the ability to write directly from their Skype for Bussines to ours.
Says we need to set up federation between our server and theirs.
We use S4B online, our partners use Lync Server 2010.
They sent us the federation details for their server.
How to set up federation between our server and theirs?
Answer the question
In order to leave comments, you need to log in
At any time, he can upload a picture, and then immediately remove it. Therefore, it will forever remain unused anywhere.
You can simply run a scavenger periodically, which will scan all articles and mark unused pictures to be deleted.
For example, a check is started, the timestamp is updated in the base of the image that was found. then sorting by timestamp will show which pictures were not found during this check.
You can simply add such an option to the admin panel and run it manually, or once a week / month at a time of low activity.
It is not good to do a check when editing an article, because one picture can be used in different articles, and a more complex check - brakes during user activity.
You can scatter files into directories as convenient. If the link to the file is in the database, then there are no special rules at all, just for the convenience of maintenance, store it in such a way that the file system does not slow down (for example, no more than several thousand files in one subfolder).
I issue a token and send it to the imgur.com API with my credentials. habrahabr allows you to simply insert a link to any repository and only relatively recently made your own. In any case, it seems to me that the image storage is more correct to consider as a separate world service, and not part of a monolithic application. Keeping storage at home is very expensive in terms of SSD disks and traffic, so it seems reasonable to use a specialized third_party hosting CDN, there are many of them, including free ones. Wiping drafts looks impolite to the user, maybe he has prepared pictures for the next article or has not yet decided which ones are better, and you throw them in the trash.
You can store pictures in folders with article id. An example of a path to a picture with such a storage scheme:
From the pros:
UPD. I'm sorry, I missed the first part of the question.
Storing additional file data is unavoidable if more advanced image management is needed. Of course, it is better to delete while saving the article.
At any time, he can upload an image, and then immediately remove itThis is normal work with sets.
storage/articles/{article_id}/images/
storage/articles/{article_id}/videos/
storage/articles/{article_id}/sounds/
storage/articles/{article_id}/3D/
I have done this on my ad site : the
picture is loaded through a hidden frame. upon successful loading, the frame draws inputs with the image id into the main page:
and the information about the image is written to the link table, where the ID of the entity to which the image is assigned is NULL the
image can be deleted after loading - simply by excluding this input from the DOM, but the image will remain on the server - cron goes to search for such images. it removes all images and information about them from the link table, where the entity ID is null and the time the image was added is more than an hour (well, to be sure)
after the entity is stored in the database, the entity ID is put in the link table, i.e. there is a fixing of pictures for essence.
+ when I render a list of ads, the template needs to know if the ad has an image and how many.
for this, a trigger hangs on the link table, which, when insert/update/delete
1. counts the number of entity pictures and writes them to the entity table
2. finds the first picture added in time and writes information about it to the entity table - this allows you to display a list of ads and an image without additional requests.
Here is the URL of the image added at 10:11 am and immediately "deleted". Three hours later it will no longer be on the server.
all clear?
Good afternoon
If my memory serves me, then a DNS record (SRV) sipfederationtls should be created on your part, pointing to sipfed.online.lync.com. When adding your domain to o365, you must have gone through this step. if you didn’t add your domain, then you probably don’t need to register anything. In the SfB Online control panel, you also need to enable federation in the Organization section of the External link tab
On the part of your potential customers, federation must be enabled in the External Access Policy. Add your domain to Lync Server 2010 as allowed in the federation settings in the control panel, or in powerhell using the New-CsAllowedDomain command. Edge must have a certificate from an external CA that Microsoft trusts. You also need to add a new provider sipfed.online.lync.com
www.useto.ru/index.php/project/223-office-365-fede...
https://technet.microsoft.com/ru-ru/library/ hh2021...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question