1sip_msg_is_requestS(e3sSsIiPo)n Initiation Protocol Library Fusnicpt_imosngs_is_request(3SIP)
2
3
4
6 sip_msg_is_request, sip_message_is_response - determine if the SIP mes‐
7 sage is a request or a response
8
10 cc [ flag ... ] file ... -lsip [ library ... ]
11 #include <sip.h>
12
13 boolean_t sip_msg_is_request(const sip_msg_t sip_msg,
14 int *error);
15
16
17 boolean_t sip_msg_is_response(const sip_msg_t sip_msg,
18 int *error);
19
20
22 The sip_msg_is_request() function returns B_TRUE if sip_msg is a
23 request and B_FALSE otherwise.
24
25
26 The sip_msg_is_response() function returns B_TRUE if sip_msg is a
27 response and B_FALSE otherwise.
28
30 For functions that return an integer, the return value is the specified
31 value on success and -1 on error.
32
33
34 The value of errno is not changed by these calls in the event of an
35 error.
36
38 These functions take a pointer to an integer error as an argument. If
39 the error is non-null, one of the following values is set:
40
41 EINVAL The input SIP message sip_msg or the header value is null; or
42 the specified header/header value is deleted.
43
44
45 EPROTO The header value is not present or invalid. The parser could
46 not parse it correctly.
47
48
49 ENOMEM There is an error allocating memory for the return value.
50
51
52
53 On success, the value of the location pointed to by error is set to 0.
54
56 See attributes(5) for descriptions of the following attributes:
57
58
59
60
61 ┌─────────────────────────────┬─────────────────────────────┐
62 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
63 ├─────────────────────────────┼─────────────────────────────┤
64 │Interface Stability │Committed │
65 ├─────────────────────────────┼─────────────────────────────┤
66 │MT-Level │MT-Safe │
67 └─────────────────────────────┴─────────────────────────────┘
68
70 libsip(3LIB)
71
72
73
74SunOS 5.11 25 Jan 2007 sip_msg_is_request(3SIP)