Not logged in. · Lost password · Register
Forum: MatriX RSS
Matrix vNext: How to Subscribe for New Voice Call
dotnetnerd #1
Member since Apr 2020 · 5 posts
Group memberships: Members
Show profile · Link to this post
Subject: Matrix vNext: How to Subscribe for New Voice Call
Hi,

I am using Matrix vNext: How do I Subscribe to get Notification for new Call?  I Subscribed for /User/{AgentId}, /User/{AgentId}/Dialogs - still dont get any event on incoming call or status of change in Cisco Finesse Agent Desktop.
Avatar
Alex #2
Member since Feb 2003 · 4363 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Here in the docs it is described how to subscribe to stanzas:
https://dev.matrix-xmpp.io/docs/receiving-messages/

When you post a XML snippet here with a sample of the stanza you are expecting I can help you to build the query.
dotnetnerd #3
Member since Apr 2020 · 5 posts
Group memberships: Members
Show profile · Link to this post
Thank You for quick reply. Do i need to build stanza for incoming call? I am new to Matrix vNext Stuff.  In .NET Framework Version, we just had to have subscribe and register a handler on OnMessage. I did not build any explicit handler.
Avatar
Alex #4
Member since Feb 2003 · 4363 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
All protocol classes fro MatriX exist also in Matrix vNext.

You can listen to all messages just with this code:
  1. xmppClient
  2.     .XmppXElementStreamObserver
  3.     .Where(el => el is Message)
  4.     .Subscribe(el =>
  5.     {
  6.         // handle the message here
  7.         Debug.WriteLine(el.ToString());
  8.     });

but you can be more specific and adjust the Where query to only include your call messages.
But I cannot help you with that until to post a sample call message here.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS