SIP Weirdo Cheatsheet

9 Jun
A list of SIP protocol properties, rules and exceptions.
  1. From and To header fields of a registration request contain the same value.
  2. All the registration requests send from one UA to one registrar would always have the same Call-ID.
  3. As pre 3261(and 3261 alone) Invite is the only request which can initiate a dialog.
  4. Otherwise refer and subscribe requests can also start a Dialog.
  5. A calling UAC might receive any number of 1xx responses.
  6. An invite may or may not carry SDP.
  7. In case of forking, the calling UAC might receive multiple 1XX and 2xx.
  8. ACK is the only request without a response but still a complete transaction.
  9. ACK is a mandatory request in the same direction in which Invite was propagated.
  10. ACK is mandatory for an Invite, and doesn’t become part of any other transaction other than invite.
  11. ACK for all non-successful responses are considered within the Invite transaction.
    For more discussion on ACK visit : My Previous post on ACK
  12. Cancel request can’t be challenged for authentication, as these requests can’t be re-submitted.
  13. ACK and Cancel must have the same RR header field if RR was present in the Invite request.
  14. The request filed in CSEQ for ACK and CANCEL is always invite (3261)
  15. The CSEQ number of ACK and CANCEL is always equal to the CSEQ number of the INVITE request which they are bound with.
  16. Apart from INVITE (3261) the only other request which can be cancelled is an INFO request.
  17. As per 3261′s definition of transaction, the transaction is considered complete when a request is responded by any final response, still intermediate proxies would keep the transaction alive for a time equal to default transaction timer (if not configured otherwise).
  18. There can be no session without a Dialog, but this property is not orthogonal.
  19. you can not cancel the Invite transaction if at-least one 1xx response is not received.
  20. You can not cancel any invite transaction for which there are responses received other than 1xx.
  21. In any case (other than re-writing the complete Invite request) the To  and the From header fields never change in the entire life-time of a dialog.
  22. “z9hG4bk” is a weird string called as magic cookie. Nothing magical about it other than the name. It is used to by proxies to identify if the request complies to 3261 or its older brother 2543.
  23. 3261 doesn’t restrict 100 Trying for any request, so it can be practically issued for any request. Although it makes very little sense.
  24. According to 3261 and 3261 alone, Register is the only request which can be sent out of dialog.
  25. Option request is sent to query the far end of it’s capabilities.

slight deviation, Barging into other RFCs

  1. If offer is sent and no answer received another offer can’t be generated.
  2. if offer received but answer not sent, then another offer can’t be sent.
  3. SDP can be carried by Invite, 200 OK, 183, ACK none other.
  4. SDP answer must have equal number of m-lines.
  5. offer can be rejected but not ignored.

Enough for now, will keep updating this list.

One Bonus.
If worried about SIP with NAT read the rport RFC. Just google.

 

if there is any way in which this article can be improved, please let me know.

Thanks for stopping by.

Source: http://abhishekchattopadhyay.wordpress.com/2014/06/07/sip-weirdo-cheatsheet/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: