开发者

How to get DNIS in a UCMA 3.0 application

I'm developing IVR application by using UCMA 3 But not 开发者_StackOverflow中文版using lync server. When audio or video call is received i need to get DNIS of that. Is there any way to do this. Thank you.


Sorry to take long time to post my own answer. I found feasible solution(not sure is that perfect) for this. You can retrieve ANI and DNIS details in indirect manner by using CallRecievedEventArgs argument. To get ANI and DNIS as below

private static void AudioVideoCallReceived(object sender, CallReceivedEventArgs<AudioVideoCall> e)
        {                
            SipUriParser CallerPartySipUri = new SipUriParser(e.Call.RemoteEndpoint.Uri);
            SipUriParser CalledPartySipUri = new SipUriParser(e.RequestData.RequestUri);
            Console.WriteLine("From(Caller party) : " + CallerPartySipUri.User + " To(Called Party)" + CalledPartySipUri.User);
        }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜