I'm having an application where I place incoming calls in a conference, with an impersonated Conversation object. It works fine when call from a Lync user (with a sip uri), but I'm struggled on how to do, when a phone calls my app (phone user with a tel uri)???
- A. And how is it possible to impersonate a tel uri with fake uri as like "tel:phoneNumber;userType=FakeURI"??
- B. How can I make it possible for incoming pstn calls to join my conference?
The currently workflow looks like this:
1. Creating a new conversation with the incoming endpoint.
2. Impersonate that conversation with participant parameters of the incoming call. (This is leading to the question A, about how to impersonate a tel uri with a fake uri)
3. Using the ConferenceSession.BeginJoin of the conversation, with a conference uri as parameter, ConferenceJoinOption as TrustedParticipant, (This is leading to question B), which return an 500 exception.
I want to be able to handle PSTN user in same way as I do with Lync users. And btw, is it possible to use B2B calls with PSTN users represented by a tel uri??