Ticket #917 (closed defect: fixed)
INVITE/CANCEL may be sent to different servers than the INVITE when DNS SRV is used (thanks Alexei Kuznetsov for the report)
| Reported by: | bennylp | Owned by: | bennylp |
|---|---|---|---|
| Priority: | normal | Milestone: | release-1.5 |
| Component: | pjsip | Version: | trunk |
| Keywords: | Cc: |
Description (last modified by bennylp) (diff)
RFC 3263 says:
the ACK for non-2xx SIP responses to INVITE MUST be sent to the same host. Furthermore, a CANCEL for a particular SIP request MUST be sent to the same SIP server that the SIP request was delivered to.
With PJSIP, CANCEL initiates a fresh DNS SRV hence it's possible that it may resolve to different server than the original INVITE.
ACK for non-3xx belongs to the same transaction as the INVITE hence it will reuse the transaction's transport and destination address.
This also fixed the problem where INVITE with authentication may be sent to different server due to DNS SRV, after 401/407 response is received.
See also ticket #936
![(please configure the [header_logo] section in trac.ini)](/repos/chrome/site/pj.jpg)
