1sip_add_from(3SIP)Session Initiation Protocol Library Functionssip_add_from(3SIP)
2
3
4

NAME

6       sip_add_from, sip_add_to, sip_add_contact, sip_add_via, sip_add_maxfor‐
7       ward, sip_add_callid, sip_add_cseq, sip_add_content_type,  sip_add_con‐
8       tent,    sip_add_accept,    sip_add_accept_enc,    sip_add_accept_lang,
9       sip_add_alert_info,  sip_add_allow,   sip_add_call_info,   sip_add_con‐
10       tent_disp,   sip_add_content_enc,  sip_add_content_lang,  sip_add_date,
11       sip_add_error_info,        sip_add_expires,        sip_add_in_reply_to,
12       sip_add_mime_version,  sip_add_min_expires, sip_add_org, sip_add_prior‐
13       ity,   sip_add_reply_to,   sip_add_passertedid,   sip_add_ppreferredid,
14       sip_add_require,           sip_add_retry_after,          sip_add_route,
15       sip_add_record_route,  sip_add_server,  sip_add_subject,   sip_add_sup‐
16       ported,    sip_add_tstamp,   sip_add_unsupported,   sip_add_user_agent,
17       sip_add_warning,    sip_add_rseq,    sip_add_privacy,     sip_add_rack,
18       sip_add_author,        sip_add_authen_info,       sip_add_proxy_authen,
19       sip_add_proxy_author,    sip_add_proxy_require,     sip_add_www_authen,
20       sip_add_allow_events,  sip_add_event,  sip_add_substate  - add specific
21       SIP headers to the SIP message
22

SYNOPSIS

24       cc [ flag ... ] file ... -lsip [ library ... ]
25       #include <sip.h>
26
27       int sip_add_from(sip_msg_t sip_msg, char *display_name, char *from_uri,
28            char *from_tag, boolean_t add_aquot, char *from_params);
29
30
31       int sip_add_to(sip_msg_t sip_msg, char *display_name, char *to_uri,
32            char *to_tag, boolean_t add_aquot, char *to_params);
33
34
35       int sip_add_contact(sip_msg_t sip_msg, char *display_name,
36            char *contact_uri, boolean_t add_aquot, char *contact_params);
37
38
39       int sip_add_via(sip_msg_t sip_msg, char *sent_protocol_transport,
40            char *sent_by_host, int sent_by_port, char *via_params);
41
42
43       int sip_add_maxforward(sip_msg_t sip_msg, uint_t maxforward);
44
45
46       int sip_add_callid(sip_msg_t sip_msg, char *callid);
47
48
49       int sip_add_cseq(sip_msg_t sip_msg, sip_method_t method, uint32_t cseq);
50
51
52       int sip_add_content_type(sip_msg_t sip_msg, char * type, char *subtype);
53
54
55       int sip_add_content(sip_msg_t sip_msg, char * content);
56
57
58       int sip_add_accept(sip_msg_t sip_msg, char *type, char *subtype,
59            char *media_param, char *accept_param);
60
61
62       int sip_add_accept_enc(sip_msg_t sip_msg, char *code,
63            char *param);
64
65
66       int sip_add_accept_lang(sip_msg_t sip_msg, char *lang,
67            char *param);
68
69
70       int sip_add_alert_info(sip_msg_t sip_msg, char *alert,
71            char *param);
72
73
74       int sip_add_allow(sip_msg_t sip_msg, sip_method_t method_name);
75
76
77       int sip_add_call_info(sip_msg_t sip_msg, char *uri,
78            char *param);
79
80
81       int sip_add_content_disp(sip_msg_t sip_msg, char *dis_type, char *param);
82
83
84       int sip_add_content_enc(sip_msg_t sip_msg, char *code);
85
86
87       int sip_add_content_lang(sip_msg_t sip_msg, char *lang);
88
89
90       int sip_add_date(sip_msg_t sip_msg, char *date);
91
92
93       int sip_add_error_info(sip_msg_t sip_msg, char *uri, char *param);
94
95
96       int sip_add_expires(sip_msg_t sip_msg, int secs);
97
98
99       int sip_add_in_reply_to(sip_msg_t sip_msg, char *reply_id);
100
101
102       int sip_add_mime_version(sip_msg_t sip_msg, char *version);
103
104
105       int sip_add_min_expires(sip_msg_t sip_msg, int secs);
106
107
108       int sip_add_org(sip_msg_t sip_msg, char *org);
109
110
111       int sip_add_priority(sip_msg_t sip_msg, char *prio);
112
113
114       int sip_add_reply_to(sip_msg_t sip_msg, char *display_name,
115            char *addr, char *param