lync interview questions
Top lync frequently asked interview questions
Could anyone please send me some urls or code samples for develop extension for lync 2010.
I mean development some tools which can integrated into lync 2010 as extension.
add a menu or button to lync 2010, when click the menu or button, the customerized tool will popup.
Thanks a lot.
Source: (StackOverflow)
There are no samples using for UCMA to send file from applicationendpoint to userendpoint or vice versa.
I've tried below sample but it didn't work. See code and error:
if (e.State == MediaFlowState.Active)
{
byte[] fileBytes = null;
using (FileStream fs = File.OpenRead(_fileToSend))
{
fileBytes = new byte[fs.Length];
fs.Read(fileBytes, 0, fileBytes.Length);
}
ContentType ct = new ContentType("text/x-msmsgsinvite");
ct.CharSet = "UTF-8";
StringBuilder sb = new StringBuilder();
sb.Append("Application-Name: File Transfer\r\n");
sb.Append("Application-GUID: {5D3E02AB-6190-11d3-BBBB-00C04F795683}\r\n");
sb.Append("Invitation-Command: INVITE\r\n");
sb.Append("Invitation-Cookie: 33267\r\n");
sb.Append("Application-File: Readme.txt\r\n");
sb.Append("Application-FileSize: " + fileBytes.Length.ToString() + "\r\n");
sb.Append("Connectivity: N\r\n\r\n");
string s = sb.ToString();
byte[] bytes1 = Encoding.UTF8.GetBytes(s);
try
{
_instantMessagingFlow.BeginSendInstantMessage(ct, bytes1, result1 =>
{
_instantMessagingFlow.EndSendInstantMessage(result1);
}, null);
WriteLog.AddLine("File sent to: " + _coachSipAddress + " from: " + _userSipAddress + " the file: " + _fileToSend);
}
catch (Exception ex)
{
WriteLog.AddLine("File couldn't sent " + ex.StackTrace);
}
}
11:16 sip:emre@dev-adoptuc.com said: Invitation-Command: CANCEL
Invitation-Cookie: 33267 Cancel-Code: FAIL
Can anybody help or give any sample for sending file in UCMA for file transfer?
Source: (StackOverflow)
I'm trying to detect an incoming call in the Lync client . This is done by subscribing to ConversationManager.ConversationAdded event in the Lync client as described in this post
However, by using this method I'm not able to detect incoming calls if a conversation window with the caller is already open before the caller is calling.
For instance if I'm chatting with a friend and therefore have a open conversation windows and this friend decides to call me, the ConversationAdded event is not triggered.
How would I detect incoming calls when I already have an active conversation with the caller?
Thanks,
Nicklas
Source: (StackOverflow)
I'm working on custom UI for company's directory based on Lync. Using Lync 2013 I execute this search:
Container.Instance.Lync.ContactManager.BeginSearch(SearchQuery,
SearchProviders.GlobalAddressList,
SearchFields.AllFields,
SearchOptions.IncludeContactsWithoutSipOrTelUri,
500,
ContactsAndGroupsCallback, SearchQuery);
For each of matching contacts I try to access their endpoints to display phone number:
var cit = ContactInformationType.ContactEndpoints;
var endpoints = contact.GetContactInformation(cit) as List<object>;
Problem
If found contact is in the contact list of account I'm using to connect Lync, then I get access to full details (5 endpoints). However if he is not in contact list, I get access to only 1 endpoint.
Any ideas why is it happening like that? Is there a global privacy setting I need to turn off or something?
How can I get access to all endpoints at all times?
Thank you.
PS: I tried to load each contact in the result set individually and still get the same behavior.
Source: (StackOverflow)
When I try to get the list of available audio devices like this.
LyncClient client = LyncClient.GetClient();
foreach (Device dev in client.DeviceManager.AudioDevices)
{
//Do something
}
I get the error Exception has been thrown by the target of an invocation.
"Unable to cast COM object of type 'System.__ComObject' to interface type
'Microsoft.Office.Uc.IAudioDevice2'. This operation failed because the QueryInterface
call on the COM component for the interface with IID '{86B3E5FE-4635-4C1E-
A725-C80B71D04984}' failed due to the following error: No such interface supported
(Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."
Here is the stack trace
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Microsoft.Lync.Model.Internal.UCWCache.CreateUCW(Object source, CCOMInfo ccomInfo)
at Microsoft.Lync.Model.Internal.UCWCache.GetITTargetNS(Object source)
at Microsoft.Lync.Model.Internal.UCEnumerator`2.get_Current()
at Microsoft.Lync.Model.Internal.UCEnumerator`2.System.Collections.Generic.IEnumerator<S>.get_Current()
And the inner exception stack trace
at Microsoft.Lync.Model.Device.AudioDevice.INTERNAL_Init(IAudioDevice initInterface)
at Microsoft.Lync.Model.Device.AudioDevice.INTERNAL_Init_Object(Object initInterface)
Source: (StackOverflow)
I found the same question I'm about to ask on stackoverflow, but the answer didn't help as the link didn't deal with javascript as far as I can tell. Is it possible to open a new Lync conversation from a webpage?
In a nutshell, I want to programmatically open a Lync chat window using javascript. I've done this with a simple link:
<a rel='nofollow' href="sip:person@domain.com">IM</a>
Clicking the link would open the window as expected. I'm looking for a way to duplicate that behavior in javascript:
function doImDeveloper() {
//Javascript to open a Lync window
}
This is in an internal environment. I want people at my company to be able to click a button and have it launch a Lync conversation with me. Any help would be appreciated.
Source: (StackOverflow)
I have the email address of a Lync user and want to send him an instant message.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Lync.Model;
using Microsoft.Lync.Model.Conversation;
namespace Build_Server_Lync_Notifier
{
class Program
{
static void Main(string[] args)
{
if (args.Length != 2)
{
Console.WriteLine("Usage: bsln.exe <uri> <message>");
return;
}
LyncClient client = Microsoft.Lync.Model.LyncClient.GetClient();
Contact contact = client.ContactManager.GetContactByUri(args[0]);
Conversation conversation = client.ConversationManager.AddConversation();
conversation.AddParticipant(contact);
Dictionary<InstantMessageContentType, String> messages = new Dictionary<InstantMessageContentType, String>();
messages.Add(InstantMessageContentType.PlainText, args[1]);
InstantMessageModality m = (InstantMessageModality) conversation.Modalities[ModalityTypes.InstantMessage];
m.BeginSendMessage(messages, null, messages);
//Console.Read();
}
}
}
Screenshot
Link to large screenshot: http://i.imgur.com/LMHEF.png
As you can see in this screenshot, my program doesn't really seem to work, even though I'm able to manually search up the contact and send an instant message manually.
I also tried using ContactManager.BeginSearch()
instead of ContactManager.GetContactByUri()
, but got the same result (you can see in the screenshot): http://pastie.org/private/o9joyzvux4mkhzsjw1pioa
Source: (StackOverflow)
I would like to open a new conversation in a users Lync client, with a pre-determined message text but with the reciepients of the message to be selected by the user, with this process starting from the user clicking a link on a web site.
Is that possible?
Source: (StackOverflow)
In Lync, is it possible to move cursor to a new line when writing message (like Skype's Alt+Enter)?
Source: (StackOverflow)
How can I integrate Lync 2010, with a program that does a DB look up and shows a small popup, with the information found, and also a few buttons with some options.
The program is already running with some other types of phone systems, I kind of need a connector for Lync.
I don't want to put a tab or other UI inside Lync.
--Martin
Source: (StackOverflow)
I am using Lync 2010 (4.0.7577.4356), which we use on my small development team for IM'ing. Lots of technical Q&A are handled through this program and lots of other items that need to be documented. Unfortunately, our parent company has a policy that turns off "Converation History", so once the window is closed, it's gone.
I've done a fair bit of research and I haven't found a way to save this data since the settings have been made at our parent Corporation's level (through Active Directory, or whatever). This is information that we need and even my boss has tried finding a way to save this information (everything short of copy-pasting everything before closing the window or computer).
How can I accomplish this task? Are there any programs out there (freeware or otherwise) that can save these conversations? Does anyone know of a way that I can hook up Lync (the instant messaging module) to another instant messenger (GTalk, Jabber, ICQ, Yahoo, or whatever) -- then record each message from there? I'm a software developer, so if anyone knows of a means of communicating with Lync, and is able to access the messages, that would help too!
Anything at this point would help... thanks in advance!!!
-Panuvin
Source: (StackOverflow)
I have created a basic REST API where a user can ask for an acronym, and the web-page will return the meaning of the acronym via a POST call.
The majority of my end-users don't use the Internet as much as they use the Microsoft Lync application.
Is it possible for me to create a Lync account, and have it pass questions to my API, and return the answers to the user? Meaning the user just needs to open a new chat in Lync rather than a new web-page.
I'm sure this is possible, but I can't find any information on Google or on the web. How can this be accomplished?
Thanks very much.
Edit :
Adding a bounty in the hopes of someone creating a simple example as I believe it would be very useful for a large number of devs :).
Source: (StackOverflow)
Is there a way to stop Microsoft Lync from detecting phone numbers in a web page, and adding its click to call icon to that phone number in Internet Explorer?
Obviously the client can disable this functionality in Internet Explorer, however I would like to disable this for all who visit a particular website, as it is not playing nicely with embedded fonts in use on the website.
To do this for Skype I would add the following meta tag into my web page's header:
<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />
Thanks,
Peter
Source: (StackOverflow)
I am using Microsoft Lync 2010 version 4 running on Windows 7. It is hooked up to our exchange server, and it is set to "Save instant message conversations in my email Conversation History folder". This does work sometimes, but my problem is there is a big delay between having a conversation and saving one.
If I leave the window open for 5-10 minutes after my conversation is over it will display:
"This conversation is saved in the Conversations tab in Lync and in the Conversation History folder in Outlook."
And then I can go find it in Outlook, but more often I close the messenger window when the conversation is over and then it does not get saved.
Is there anyway to force Lync to save ALL conversations? It seems insane that they couldn't include a hook for when the window is closed.
Source: (StackOverflow)