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

Transferring Call from asterisk pbx failed with throwing RealTimeException

$
0
0

I have lync2013 and asterisk. I can call from asterisk extension to lync users vise versa .

I wrote an IVR application with ucma and I tested with lync Users and it works fine.

When I call from asterisk extension to IVR endpoint after calling endTransfer I've got RealTimeException.

here is my code:

inboundAVCall.BeginTransfer(_inboundAVCall, endTransfer, _inboundAVCall);

private void endTransfer(IAsyncResult ar)
        {
            AudioVideoCall audioVideoCall = ar.AsyncState as AudioVideoCall;

            try
            {
                audioVideoCall.EndTransfer(ar);
            }
            catch (OperationFailureException OpFailEx)
            {

                Console.WriteLine(OpFailEx.ToString());
                throw OpFailEx;
            }
            catch (RealTimeException realTimeEx)
            {

                Console.WriteLine(realTimeEx.ToString());
                throw realTimeEx;
            }
            finally
            {
                _waitForTransferComplete.Set();
            }
        }

and I get this log when incoming call received from 

Console.WriteLine("Call Received! From: " + e.RemoteParticipant.Uri + "phone uri " + e.RemoteParticipant.PhoneUri + " Toast is: " + e.ToastMessage.Message);

output:

Call Received! From: tel:3001 phone-context:enterprise phone uri Toast is:

Any Idea?

I also change incoming callerId but the output changed to :

Call Received! From: sip:+3001@my.domain phone uriToast is:

I'm sorry for my bad English.

Thanks,


Viewing all articles
Browse latest Browse all 889

Trending Articles



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