1sip_add_branchid_tSoe_svsiiao(n3SIInPi)tiation Protocol Librasriyp_Faudndc_tbiroannschid_to_via(3SIP)
2
3
4
6 sip_add_branchid_to_via - add a branch parameter to the topmost VIA
7 header in the SIP message
8
10 cc [ flag ... ] file ... -lsip [ library ... ]
11 #include <sip.h>
12
13 int sip_add_branchid_to_via(sip_msg_t sip_msg, char *branchid);
14
15
17 The sip_add_branchid_to_via() function adds a branch param to the top‐
18 most VIA header in the SIP message sip_msg. Note that a new header is
19 created as a result of adding the branch parameter and the old header
20 is marked deleted. Applications with multiple threads working on the
21 same VIA header need to take note of this.
22
24 These functions return 0 on success and the appropriate error value on
25 failure.
26
28 On failure, functions that return an error value may return one of the
29 following:
30
31 EINVAL Mandatory parameters are not provided or are NULL.
32
33 For sip_add_branchid_to_via(), the topmost VIA header already
34 has a branch param or the SIP message does not have a VIA
35 header.
36
37
38 EPERM The message cannot be modified.
39
40
41 ENOMEM There is an error allocating memory for creating head‐
42 ers/parameters.
43
44
46 See attributes(5) for descriptions of the following attributes:
47
48
49
50
51 ┌─────────────────────────────┬─────────────────────────────┐
52 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
53 ├─────────────────────────────┼─────────────────────────────┤
54 │Interface Stability │Committed │
55 ├─────────────────────────────┼─────────────────────────────┤
56 │MT-Level │MT-Safe │
57 └─────────────────────────────┴─────────────────────────────┘
58
60 libsip(3LIB)
61
62
63
64SunOS 5.11 25 Jan 2007 sip_add_branchid_to_via(3SIP)