Quantcast
Channel: Microsoft Unified Communications Managed API SDK forum
Viewing all 889 articles
Browse latest View live

UCMA 3 : Automation event for success/fail (+reason)

$
0
0

I want to make Audio Call  to X  and get result : success/fail ( + reason )

I want to make Video call to X and get result : success/fail ( + reason)

(later Sharing test )

I don't find any event to connect. Conversation / Groups / Self events doesn't fit well....

I need somehow to get the Call object from the conversation ,and connect to StateChanged event ,

but I cant get it.

Any ideas? 

How the Lync Client receive message  success/fail when trying to make A/V calls , like no camera / no audio device / etc'

For example , audio test  :

var participants = new List<string>();

                participants.Add(sip);

                _automation.BeginStartConversation(
                    AutomationModalities.Audio,
                    participants,
                    null,
                    StartConversationCallback,
                    _automation);

Thanks


Debugger error message for GetContactInformation(ContactInformationType.Photo)

$
0
0

Hi,

i am searching for the solution for hours, but found nothing...

i can retrieve the users and all the data, and want to use the photo too.

There is no problem with those user who have photo, but for those who doesnt i see an error in the debugger window. my code works fine and sets the "nophoto" picture fine, but cleaning my code i wanted to handle that message... as i see i get that because the IF(), but i need to use that. what can i do?

                    try
                     {
                         if (contact.GetContactInformation(ContactInformationType.Photo) != null)
                         {
                             var imageSource = new BitmapImage();
                             imageSource.BeginInit();
                             imageSource.StreamSource = (Stream)contact.GetContactInformation(ContactInformationType.Photo);
                             imageSource.EndInit();
                             MyContact.LyncImage = imageSource;
                         }
                     }
                     catch(Exception)
                     {
                         var imageSource = new BitmapImage();
                         imageSource.BeginInit();
                         imageSource.UriSource = new Uri("pack://application:,,,/Test;component/Images/Lync/LyncAvatar.png");
                         imageSource.EndInit();
                         MyContact.LyncImage = imageSource;
                     }

The error i get in the debugger/output window:

A first chance exception of type 'System.InvalidOperationException' occurred in PresentationCore.dll

Lync 2013 SDK/UCMA 4 & VS 2012?

DashBoard Creation

$
0
0

Hi,

                    Can anyone explain me how to create a DashBoard in WPF , as am new to coding field, the Details in deep will be really helpful.

Thanks in Advance. 

transfer file in UCMA 3.0

$
0
0

Hi,

Anybody knows how to transfer file by using UCMA 3.0?  i have tried the method from post : http://social.msdn.microsoft.com/Forums/en-US/ucclientsdk/thread/c0b75a0e-8b9d-40b0-960b-ad480119a9f8, but the result is failed, so i wonder whether the lync team has changed their method or not?

Either way please let me know. Any help or support is greatly appreciated.


Brave Zhou
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.


ucma threading model/behavior question

$
0
0

I've read what's in the UCMA SDK doc on the threading model, and I gathered that each conversation (call) has its own queue of events, and I presume that multiple event queues can be serviced simultaneously by different threads.  We are curently load testing our application and when I look through the logs, what I see from a threading point of view doesn't seem to line up with this threading model (and at the moment makes no sense). The question I am leading up to is under load it appears that calls don't appear to be executing as if they were all running in their own event queues/threads. For example, we will see a few periods during our load tests where calls don't seem to be having their events serviced (and hence delayed), and then finally when they do, the event servicing seems to happen with several calls being serviced at exactly the same time, and by the same thread! Why would that be? This is actually happening while the call is still getting initialized (so we have done teh beginAccept and are waiting for the call to go to Established and for the flow to go to Active, so at this point the application is not doing anything, so it is not holding up any event servicing threads or blocking on anything. What I see in the log is a single thread start servicing the call state changed method for a bunch of different calls all at the same time, almost like something was preventing the call initialization to proceed for all these different calls, and then it this one thread finally runs and services the events for many different calls all at once. The same thread also appears to service the tone controller for a session (call). Each session has its own tone controller (as well has speech recognizers and synthesizers)

In our application there is one application endpoint that receives call and creates a new 'app session' object which implements the application. Each session registers for call state change events on the call it encapsulates. Here is some log output. The thread IDs are in square brackets ([]). You can see a bunch of calls all have their call state change events get serviced at the same time, when I am almost certain this should have been happening in a more distributed even fashion, and probably by different threads.

Note the CallIds from the log output are from the CallId of the Audio Video call being handled.

2012-07-30 16:16:56,703 [609] DEBUG - Dtmf detected and barge in enabled and prompt still playing, so will cancel; callId: e8ee7d0fb0b213de5016f9547d64c; group: 
2012-07-30 16:16:56,703 [609] INFO  - Caller Session state change from: Incoming to: Establishing. Transition Reason: Accepted. ; callId: 13d82f580104a6a55016f9c1cdff6
2012-07-30 16:16:56,703 [609] INFO  - Caller Session state change from: Incoming to: Establishing. Transition Reason: Accepted. ; callId: 5c2fd9982798e8a95016f9c2d7c37
2012-07-30 16:16:56,703 [609] INFO  - Caller Session state change from: Incoming to: Establishing. Transition Reason: Accepted. ; callId: e8716995663a2ad55016f9c18e855
2012-07-30 16:16:56,703 [609] INFO  - Caller Session state change from: Incoming to: Establishing. Transition Reason: Accepted. ; callId: c5eb801fb4c9a0305016f9c362938
2012-07-30 16:16:56,703 [609] INFO  - Caller Session state change from: Incoming to: Establishing. Transition Reason: Accepted. ; callId: c5eecd12d38e551a5016f9c323197
2012-07-30 16:16:56,703 [609] INFO  - Caller Session state change from: Incoming to: Establishing. Transition Reason: Accepted. ; callId: eaee06b37694b5895016f9c298497
2012-07-30 16:16:56,703 [609] INFO  - Caller Session state change from: Incoming to: Establishing. Transition Reason: Accepted. ; callId: 5c5590fc53a1ac5e5016f9c14f0b5
2012-07-30 16:16:56,703 [609] INFO  - Caller Session state change from: Incoming to: Establishing. Transition Reason: Accepted. ; callId: 1e0a30ad2dd5368d5016f9c10f914
2012-07-30 16:16:56,703 [609] INFO  - Caller Session state change from: Incoming to: Establishing. Transition Reason: Accepted. ; callId: 5613eae7b668949f5016f9c3e1878
2012-07-30 16:16:56,703 [609] INFO  - Caller Session state change from: Incoming to: Establishing. Transition Reason: Accepted. ; callId: 8ca67bae4347d95c5016f9c3a20d8
2012-07-30 16:16:56,703 [609] INFO  - Caller Session state change from: Incoming to: Establishing. Transition Reason: Accepted. ; callId: a795a69f1e7a12665016f9c46c579
2012-07-30 16:16:56,703 [609] INFO  - Caller Session state change from: Incoming to: Establishing. Transition Reason: Accepted. ; callId: e910060b77926eb65016f9c42cdd9
2012-07-30 16:16:56,703 [609] DEBUG - Tone controller got a tone: 1; callId: af044fa3a25de49f5016f9113de4e; group: 

Note: The average CPU utilization during this test was less than 20% with a Max CPU utilization of around 50%, so the machine wasn't pegged; it's a new box with I think 16 cores or maybe 24, so I would expect a more nice even parallel behavior than what I see.

I've gone over the code many times. There no locks, not blocking calls that seem to apply here. Maybe if I understood better how threads are used by UCMA I could track down the issue.

Thanks for any help/advice on this.

Lync UCMA Recorder Class = WMA only, MP3 needed

$
0
0

Hi there,

We are currently using the Lync UCMA Recorder class which saves voice recordings in WMA. Is there another Recorder Class we could use to save the voice files in MP3 for instance ?  By converting the WMA files to MP3 by using the IIS Tranform Manager takes to long and a queue builds up even when utilizing very strong Server resources on Solid State HDD. The issue is that as soon as a conversation took place we need the file available immediately for Quality Control. We are currently reacing 150+ Concurrent Calls and next month it will reach 200+ as the solution grows.

Scenario:  Call Center Agent makes a call. After the call took place, the Call Center Supervisor might need to immediately listen to the conversation straight away and having to wait for the conversion is holding back the process flow.

Then I would like to add that the recordings are used by many "crowdsourced" users which is an un-managed environment in that these people have different O.S. and different Media Players, so some of them cannot listen to WMA files but everyone can listen to MP3 files.

Please advise.

Many thanks!

UCMA Conference Cancel Invitation

$
0
0

Hi,

 

I have a UCMA application endpoint which creates a conference and invites a number of endpoints to this conference. Does anyone know how can i cancel an invitation which was sent out to the client endpoint but not yet accepted by it.

 

Thanks!


Microsoft Speech Platform Licensing/Pricing

$
0
0

Hi All,

    I'm planning to build a speech recognition application using Microsoft Speech Platform SDK 11. This application is a stand-alone application and does not depend on any UCMA application or OCS/Lync. Can anybody guide me with the licensing/pricing details page for using the same?

UCWA and Office 365 Lync

$
0
0

Hi!

I noticed that align with Lync 2013 new API called UCWA is coming. Do you know if this could be used also with Office 365 Lync at that time?

best regards
Tuomas

Chat History

$
0
0

Hi All ,

 

          As i have seen , what ever the mess sent through LYNC( i.e by IM) , will be saved in the outlook conversation history.

          Is it possible to get the conversation history in the LYNC itself (either by whiteBoard or by DashBoard or by any means). 

          If yes ?

          how can i achieve it.

Lync Call Start time

$
0
0

How to get the call(or session) start time from a UCMA application or workflow? i need to get the same value that is stored in the SessionIdTime column in the SessionDetails table in CDR database.

i have a UCMA workflow application that receives calls and logs some information about them.


Wave file voice prompts in IVR application sometimes make scratchy static sound when loaded.

$
0
0

Sometimes the Wave file Voice prompts in my UCMA based IVR make a scratchy static sound when they are loaded.  This seems to happen 1 out say 100 calls. My IVR testing has been on a Virtual machine which resided on a dedicated VMWare ESXI server. It's possible that I am getting this behavior because I am running the testing of the IVR Application on a virtual machine. I just don't know. The finished IVR application will run on a beefy bare metal sever when it is finished. I just want to make sure that my customers are not experiencing this sort of thing happening to them. The noise that is produced when this happens is just as annoying as a fax machine. Any thought as to what this could be or how to go about resolving this?

ASP.NET + UCMA 4: Failed by SIPEPS v5

$
0
0

Hey there,

I would like to build an application with ASP.NET and UCMA 4.
With a console app, it works just fine.

After, when I want to start my ASP.NET & UCMA 4, I just cannot.
The debugger always yield at me:

"Could not load file or assembly 'SIPEPS, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."
With Google I found only spipeps v4.

Like in the console app, I tryed to change the target platform to x64. It doesn't work at all. It cannot start.

Is there a way to make UCMA 4 working with a Web App?

Thanks in advance.

Mafyou.

EDIT: I just done that with UCMA 3.5. I clearly need this with UCMA 4. Help

Microsoft.Rtc.Collaboration.UserEndpointSettings constructor cannot find Lync Front End

$
0
0

The UCMA 3.0 Core SDK says that for the UserEndpointSettings(String) constructor, that the Server Name and Port are discovered automatically by DNS if the transport is TLS.

Which DNS SRV records need to be configured for this to work?

If I provide the FQDN of Lync, is it the Front-End pool or the Director Pool (or either).

The error message this relates to is:

"Automatic discovery of $(RTC_PRODUCTGENERICNAME_STR) for the given sip uri failed."


Lync Stress & Performance tool issue

$
0
0

Hi,

Our partner is testing a recording application for one of our customers, and while using the Microsoft Lync Stress & Performance tool they encountered the issue below:

"We will require that  Microsoft Lync Stress & Performance support to register each Lync user with different virtual IP addresses. This way each user will use different IP address for SRTP and the application will record without problem.

Does the Microsoft Lync Stress & Performance Tool have a mechanism to test this test case?"

Any help will be appreciated,

Thank you

UCMA 3.0: UserEndPoint BeginEstablish exception: Microsoft.Rtc.Signaling.ConnectionFailureException

$
0
0

Hello,

  I'm using UCMA 3.0 to write a web service that creates a userEndpoint and attempts to register it via BeginEstablish().  Before this gets called, a CollaborationPlatform object is created and started, successfully.  But when I try to establish the userEndpoint, I get the following error:

Endpoint  failed to establish: Microsoft.Rtc.Signaling.ConnectionFailureException:Unable to establish a connection. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 172.30.228.57:5061

   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at Microsoft.Rtc.Internal.Sip.TcpTransport.OnConnected(Object arg)
   
--- End of inner exception stack trace ---
   at Microsoft.Rtc.Signaling.SipAsyncResult`1.ThrowIfFailed()
   at Microsoft.Rtc.Signaling.Helper.EndAsyncOperation[T](Object owner, IAsyncResult result)
   at Microsoft.Rtc.Collaboration.LocalEndpoint.EndEstablish(IAsyncResult result)
   at appIcLync.IcLyncMgr.EndEndpointEstablish(IAsyncResult ar) in C:\Users\administrator\Documents\Visual Studio 2010\Projects\appIcLync\appIcLync\IcLyncMgr.cs:line 187
Detected at System.Environment.get_StackTrace()
   at Microsoft.Rtc.Signaling.ConnectionFailureException..ctor(String message, Exception innerException)
   at Microsoft.Rtc.Signaling.ExceptionUtilities.TryMapS4Exception(Exception s4Exception, SecurityAssociationContext securityContext, Boolean isSipEndpoint, String traceId, Object parentObject, Object childObject, RealTimeException& ex)
   at Microsoft.Rtc.Signaling.SipTransactionAsyncResult`1.ConnectionConnectCompleted(IAsyncResult result)
   at Microsoft.Rtc.Signaling.SipAsyncResult2`1.MakeCallback()
   at Microsoft.Rtc.Signaling.SipAsyncResult2`1.Complete(TEx ex, Boolean synchronousCompletion)
   at Microsoft.Rtc.Signaling.SipAsyncResult2`1.Complete(TEx ex)
   at Microsoft.Rtc.Signaling.RealTimeConnection.CompletePendingConnects(IEnumerable`1 results, RealTimeException exception)
   at Microsoft.Rtc.Signaling.RealTimeConnection.<.ctor>b__0(SipConnection sender, Object reason)
   at Microsoft.Rtc.Internal.Sip.SipConnection.DisconnectedEventHandler.Invoke(SipConnection sender, Object reason)
   at Microsoft.Rtc.Internal.Sip.SipConnection.FireDisconnectedEvent(Object reason)
   at Microsoft.Rtc.Internal.Sip.SingleThreadedDispatcherQueue.DispatcherCallback(Object queue)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

Playing music on hold into a conference fades in and out

$
0
0

We have a caller arrive on a trusted application endpoint, which we then back-to-back into a conference. We have another application with a trusted application endpoint that announces the call, and then plays music on hold into the conference using the SpeechSynthesisConnector class.

 

The problem we have is that the music that we are playing fluctuates wildly in volume (probably greater than 16db) thru the track. It is dependent on the music but the times that the volume fluctuates is predictable and repeatable for an individual track.

One track from an album jumps around many times. Other tracks from the same album can cause different reproducible fluctuations, with one 4 minute track producing only one.

I have tried converting the mp3 to wma and setting it as the local music on hold source for a lync client. When the client puts their leg of the conference on hold the caller hears the same fluctuations, so it is nothing to do with the way we are feeding the audio into the conference.

I have tried downsampling to 8bit 8khz as this forum entry suggests http://social.msdn.microsoft.com/Forums/eu/ucma

nagedsdk/thread/1f1c674f-6fb2-44e6-9201-124fa6dfaf50 but no change.

I have also tried passing the music thru a bandpass filter (300-3500hz). This appeared to affect it but not fix it. Has also tried playing with volume levels with no success.

This appears to be a problem with the Lync MCU.

How to fork a call to all application endpoint instances?

$
0
0

Hi,

I have the same UCMA application running on multiple servers. Each application establishes an application endpoint with the same owner URI.

How can I fork a call to all the application endpoint instances on different servers?

I noticed that if the dsetination invite is the application endpoint owner URI then Lync only routes the invite to a single application endpoint.
This behavior is different from a user endpoint, where the call is forked to all instances on all servers.

Is it possible to fork a call to all application endpoint instances, just like a user endpoint?

Thanks,
Ron

UCMA SDK - basic Client sample code.

$
0
0

Following on from

http://social.msdn.microsoft.com/Forums/en-US/communicatorsdk/thread/9d52f43e-c7f5-41ee-9632-dc9ebb01e2d2

I wish to implement some basic call handling from a client user interface, and this is not possible using the Lync Client API for the reasons mentioned in the above post, so I am now looking at the next best fit API which appears to be UCMA (since UCCP is deprecated).

I have installed the UCMA 3.0 SDK but cannot find any sample code to get started.

Could someone please point me at some basic sample code which uses the UCMA SDK to say, make a call, or answer a call on as a Lync user.

Thanks.

Viewing all 889 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>