سؤال

I'm using the CallEstablishOptions object on my message establishment side, to initiate a InstantMessageCall with addition custom headers.

CallEstablishOptions callOptions = new CallEstablishOptions();
callOptions.Headers.Add(new SignalingHeader("X-MyApp-UserId", userId));

I want to use it to pass additional information about the sender to the receiver (information that is not stored on the contact itself). The question is now, can i retrieve that information again on the receiver side. I checked the CallReceivedEventArgs<InstantMessagingCall> argument that I get when a InstantMessagingCall comes in, but this does not seem to support it. Any thing I missed here? Is it even possible to do it like that? I'm not that familiar to SIP itself, to know whether or not custom headers even work like that.

Any other ideas on how to send custom data along with the instant message? While typing this, i thought about defining a custom mimetype, add a mimepart with that type to every message i send, and add the additional information there?

لا يوجد حل صحيح

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top