Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

values of SIP Accept and SIP Accept-Contact

Tags:

sip

I am trying to find out the range of possible values of Accept and Accept-Contact header fields, but I can't find a complete list in the RFCs. Does anyone know where they are? I often see

  Accept: application/sdp;level=1, application/x-private, text/html

but don't know all possible values. More generally, where can I find all possible values of SIP headers?

Thanks,

like image 421
Bob Avatar asked Feb 08 '12 05:02

Bob


2 Answers

A lot of sections in the [SIP RFC]1 are based on the [HTTP 1.1 RFC]2 in acknowledgement that the semantics of SIP and HTTP are very similar. The SIP Accept header is a good case in point. The SIP RFC section that deals with the Accept header refers to [H14.1] which translates to section 14.1 in the HTTP 1.1 RFC and which goes into detail about how the Accept header can be used to specify the different types of media that are acceptable in the response.

That all being said in the real World 90% of the time the SIP response media is going to be application/sdp. There will be SIP requests that accept other types of response media but they are not that common.

like image 189
sipsorcery Avatar answered Nov 10 '22 01:11

sipsorcery


Bob what you are looking is MIME types.

You find some common MIME type here

http://en.wikipedia.org/wiki/Internet_media_type

A text formation of SIP is derive from HTTP so you can refer HTTP headers also to fine possible values of other headers.

like image 43
Divyang Mithaiwala Avatar answered Nov 10 '22 01:11

Divyang Mithaiwala