0

How can I link two or more RequestEvent's to know that it comes from the same user?

ServerTransaction cannot be used, as it can be more during the same connection.

Adrian Ber
  • 20,474
  • 12
  • 67
  • 117

1 Answers1

0

The Dialog links multiple requests if you opt for Dialog-stateful mode. Otherwise you can just link them yourself based on the Call-ID and tags.

Vladimir Ralev
  • 1,371
  • 9
  • 18
  • How can I opt for `Dialog`-stateful mode. The `Call-ID`s for two subsequent requests are different. – Adrian Ber Jan 10 '15 at 08:45
  • If the Call-ID is different then dialog-stateful won't help you either. This is quite unusual and you should give more details about the scenario. In any case it will have to be a custom code on your side to find the relationship between requests. SIP itself doesn't define relationships outside of dialogs. – Vladimir Ralev Jan 10 '15 at 13:39
  • You should post the full logs and explain the scenario with messages. sipjs is capable of large number of custom scenarios. – Vladimir Ralev Jan 11 '15 at 15:26
  • I was actually using the URI address in the Contact header for this. – Adrian Ber Jan 26 '15 at 12:11