2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH SIP_GET_CONTACT_DISPLAY_NAME 3SIP "Feb 10, 2007"
8 sip_get_contact_display_name, sip_get_from_display_name,
9 sip_get_to_display_name, sip_get_from_tag, sip_get_to_tag, sip_get_callid,
10 sip_get_callseq_num, sip_get_callseq_method, sip_get_via_sent_by_host,
11 sip_get_via_sent_by_port, sip_get_via_sent_protocol_version,
12 sip_get_via_sent_protocol_name, sip_get_via_sent_transport, sip_get_maxforward,
13 sip_get_content_length, sip_get_content_type, sip_get_content_sub_type,
14 sip_get_content, sip_get_accept_type, sip_get_accept_sub_type,
15 sip_get_accept_enc, sip_get_accept_lang, sip_get_alert_info_uri,
16 sip_get_allow_method, sip_get_min_expires, sip_get_mime_version, sip_get_org,
17 sip_get_priority, sip_get_replyto_display_name, sip_get_replyto_uri_str,
18 sip_get_date_time, sip_get_date_day, sip_get_date_month, sip_get_date_wkday,
19 sip_get_date_year, sip_get_date_timezone, sip_get_content_disp,
20 sip_get_content_enc, sip_get_error_info_uri, sip_get_expires, sip_get_require,
21 sip_get_subject, sip_get_supported, sip_get_tstamp_delay, sip_get_unsupported,
22 sip_get_server, sip_get_user_agent, sip_get_warning_code,
23 sip_get_warning_agent, sip_get_warning_text, sip_get_call_info_uri,
24 sip_get_in_reply_to, sip_get_retry_after_time, sip_get_retry_after_cmts,
25 sip_get_rack_resp_num, sip_get_rack_cseq_num, sip_get_rack_method,
26 sip_get_rseq_resp_num, sip_get_priv_value, sip_get_passertedid_display_name,
27 sip_get_passertedid_uri_str, sip_get_ppreferredid_display_name,
28 sip_get_ppreferredid_uri_str, sip_get_author_scheme, sip_get_author_param,
29 sip_get_authen_info, sip_get_proxy_authen_scheme, sip_get_proxy_authen_param,
30 sip_get_proxy_author_scheme, sip_get_proxy_author_param, sip_get_proxy_require,
31 sip_get_www_authen_scheme, sip_get_www_authen_param, sip_get_allow_events,
32 sip_get_event, sip_get_substate, sip_get_content_lang, sip_get_tstamp_value,
33 sip_get_route_uri_str, sip_get_route_display_name, sip_get_contact_uri_str,
34 sip_get_from_uri_str, sip_get_to_uri_str \- obtain header specific attributes
38 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsip\fR [ \fIlibrary\fR ... ]
41 \fBconst sip_str_t *\fR\fIsip_get_contact_display_name\fR(\fBsip_header_value_t\fR \fIvalue\fR,
42 \fBint *\fR\fIerror\fR);
47 \fBconst sip_str_t *\fR\fIsip_get_from_display_name\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
48 \fBint *\fR\fIerror\fR);
53 \fBconst sip_str_t *\fR\fIsip_get_to_display_name\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
54 \fBint *\fR\fIerror\fR);
59 \fBconst sip_str_t *\fR\fIsip_get_contact_uri_str\fR(\fBsip_header_value_t\fR \fIvalue\fR,
60 \fBint *\fR\fIerror\fR);
65 \fBconst sip_str_t *\fR\fIsip_get_from_uri_str\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
66 \fBint *\fR\fIerror\fR);
71 \fBconst sip_str_t *\fR\fIsip_get_to_uri_str\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
72 \fBint *\fR\fIerror\fR);
77 \fBconst sip_str_t *\fR\fIsip_get_from_tag\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
78 \fBint *\fR\fIerror\fR);
83 \fBconst sip_str_t *\fR\fIsip_get_to_tag\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
84 \fBint *\fR\fIerror\fR);
89 \fBconst sip_str_t *\fR\fIsip_get_callid\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
90 \fBint *\fR\fIerror\fR);
95 \fBint\fR \fIsip_get_callseq_num\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
96 \fBint *\fR\fIerror\fR);
101 \fBsip_method_t\fR \fIsip_get_callseq_method\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
102 \fBint *\fR\fIerror\fR);
107 \fBconst sip_str_t *\fR\fIsip_get_via_sent_by_host\fR(\fBsip_header_value_t\fR \fIvalue\fR,
108 \fBint *\fR\fIerror\fR);
113 \fBint\fR \fIsip_get_via_sent_by_port\fR (\fBsip_header_value_t\fR \fIvalue\fR,
114 \fBint *\fR\fIerror\fR);
119 \fBconst sip_str_t *\fR\fIsip_get_via_sent_protocol_version\fR
120 (\fBsip_header_value_t\fR \fIvalue\fR, \fBint *\fR\fIerror\fR);
125 \fBconst sip_str_t *\fR\fIsip_get_via_sent_transport\fR(\fBsip_header_value_t\fR \fIvalue\fR,
126 \fBint *\fR\fIerror\fR);
131 \fBint\fR \fIsip_get_maxforward\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
132 \fBint *\fR\fIerror\fR);
137 \fBint\fR \fIsip_get_content_length\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
138 \fBint *\fR\fIerror\fR);
143 \fBconst sip_str_t *\fR\fIsip_get_content_type\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
144 \fBint *\fR\fIerror\fR);
149 \fBconst sip_str_t *\fR\fIsip_get_content_sub_type\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
150 \fBint *\fR\fIerror\fR);
155 \fBchar *\fR\fIsip_get_content\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
156 \fBint *\fR\fIerror\fR);
161 \fBconst sip_str_t *\fR\fIsip_get_accept_type\fR(\fBsip_header_value_t\fR \fIvalue\fR,
162 \fBint *\fR\fIerror\fR);
167 \fBconst sip_str_t *\fR\fIsip_get_accept_sub_type\fR(\fBsip_header_value_t\fR \fIvalue\fR,
168 \fBint *\fR\fIerror\fR);
173 \fBconst sip_str_t *\fR\fIsip_get_accept_enc\fR(\fBsip_header_value_t\fR \fIvalue\fR,
174 \fBint *\fR\fIerror\fR);
179 \fBconst sip_str_t *\fR\fIsip_get_accept_lang\fR(\fBsip_header_value_t\fR \fIvalue\fR,
180 \fBint *\fR\fIerror\fR);
185 \fBconst sip_str_t *\fR\fIsip_get_alert_info_uri\fR(\fBsip_header_value_t\fR \fIvalue\fR,
186 \fBint *\fR\fIerror\fR);
191 \fBsip_method_t\fR \fIsip_get_allow_method\fR(\fBsip_header_value_t\fR \fIvalue\fR,
192 \fBint *\fR\fIerror\fR);
197 \fBint\fR \fIsip_get_min_expire\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
198 \fBint *\fR\fIerror\fR);
203 \fBconst sip_str_t *\fR\fIsip_get_mime_version\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
204 \fBint *\fR\fIerror\fR);
209 \fBconst sip_str_t *\fR\fIsip_get_org\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
210 \fBint *\fR\fIerror\fR);
215 \fBconst sip_str_t *\fR\fIsip_get_priority\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
216 \fBint *\fR\fIerror\fR);
221 \fBconst sip_str_t *\fR\fIsip_get_replyto_display_name\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
222 \fBint *\fR\fIerror\fR);
227 \fBconst sip_str_t *\fR\fIsip_get_replyto_uri_str\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
228 \fBint *\fR\fIerror\fR);
233 \fBconst sip_str_t *\fR\fIsip_get_date_time\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
234 \fBint *\fR\fIerror\fR);
239 \fBint\fR \fIsip_get_date_day\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
240 \fBint *\fR\fIerror\fR);
245 \fBconst sip_str_t *\fR\fIsip_get_date_month\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
246 \fBint *\fR\fIerror\fR);
251 \fBint\fR \fIsip_get_date_year\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
252 \fBint *\fR\fIerror\fR);
257 \fBconst sip_str_t *\fR\fIsip_get_date_wkday\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
258 \fBint *\fR\fIerror\fR);
263 \fBconst sip_str_t *\fR\fIsip_get_date_timezone\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
264 \fBint *\fR\fIerror\fR);
269 \fBconst sip_str_t *\fR\fIsip_get_content_disp\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
270 \fBint *\fR\fIerror\fR);
275 \fBconst sip_str_t *\fR\fIsip_get_content_enc\fR(\fBsip_header_value_t\fR \fIvalue\fR,
276 \fBint *\fR\fIerror\fR);
281 \fBconst sip_str_t *\fR\fIsip_get_error_info_uri\fR(\fBsip_header_value_t\fR \fIvalue\fR,
282 \fBint *\fR\fIerror\fR);
287 \fBint\fR \fIsip_get_expires\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
288 \fBint *\fR\fIerror\fR);
293 \fBconst sip_str_t *\fR\fIsip_get_require\fR(\fBsip_header_value_t\fR \fIvalue\fR,
294 \fBint *\fR\fIerror\fR);
299 \fBconst sip_str_t *\fR\fIsip_get_subject\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
300 \fBint *\fR\fIerror\fR);
305 \fBconst sip_str_t *\fR\fIsip_get_supported\fR(\fBsip_header_value_t\fR \fIvalue\fR,
306 \fBint *\fR\fIerror\fR);
311 \fBconst sip_str_t *\fR\fIsip_get_tstamp_delay\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
312 \fBint *\fR\fIerror\fR);
317 \fBconst sip_str_t *\fR\fIsip_get_unsupported\fR(\fBsip_header_value_t\fR \fIvalue\fR,
318 \fBint *\fR\fIerror\fR);
323 \fBconst sip_str_t *\fR\fIsip_get_server\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
324 \fBint *\fR\fIerror\fR);
329 \fBconst sip_str_t *\fR\fIsip_get_user_agent\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
330 \fBint *\fR\fIerror\fR);
335 \fBint\fR \fIsip_get_warning_code\fR(\fBsip_header_value_t\fR \fIvalue\fR,
336 \fBint *\fR\fIerror\fR);
341 \fBconst sip_str_t *\fR\fIsip_get_warning_agent\fR(\fBsip_header_value_t\fR \fIvalue\fR,
342 \fBint *\fR\fIerror\fR);
347 \fBconst sip_str_t *\fR\fIsip_get_warning_text\fR(\fBsip_header_value_t\fR \fIvalue\fR,
348 \fBint *\fR\fIerror\fR);
353 \fBconst sip_str_t *\fR\fIsip_get_call_info_uri\fR(\fBsip_header_value_t\fR \fIvalue\fR,
354 \fBint *\fR\fIerror\fR);
359 \fBconst sip_str_t *\fR\fIsip_get_in_reply_to\fR(\fBsip_header_value_t\fR \fIvalue\fR,
360 \fBint *\fR\fIerror\fR);
365 \fBint\fR \fIsip_get_retry_after_time\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
366 \fBint *\fR\fIerror\fR);
371 \fBconst sip_str_t *\fR\fIsip_get_retry_after_cmts\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
372 \fBint *\fR\fIerror\fR);
377 \fBconst sip_str_t *\fR\fIsip_get_passertedid_display_name\fR
378 (\fBsip_header_value_t\fR \fIvalue\fR, \fBint *\fR\fIerror\fR);
383 \fBconst sip_str_t *\fR\fIsip_get_passertedid_uri_str\fR
384 (\fBsip_header_value_t\fR \fIvalue\fR, \fBint *\fR\fIerror\fR);
389 \fBint\fR \fIsip_get_rack_resp_num\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
390 \fBint *\fR\fIerror\fR);
395 \fBint\fR sip_get_rack_cseq_num\fI\fR(\fBsip_msg_t\fR \fIsip_msg, int *error);\fR
400 sip_method_t\fB\fR \fIsip_get_rack_method\fR(\fBsip_msg_t\fR \fIsip_msg\fR, \fBint *\fR\fIerror\fR);
405 \fBint\fR \fIsip_get_rseq_resp_num\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
406 \fBint *\fR\fIerror\fR);
411 \fBconst sip_str_t *\fR\fIsip_get_priv_value\fR(\fBsip_header_value_t\fR \fIvalue\fR,
412 \fBint *\fR\fIerror\fR);
417 \fBconst sip_str_t *\fR\fIsip_get_author_scheme\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
418 \fBint *\fR\fIerror\fR);
423 \fBconst sip_str_t *\fR\fIsip_get_author_param\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
424 \fBchar *\fR\fIname\fR, \fBint *\fR\fIerror\fR);
429 \fBconst sip_str_t *\fR\fIsip_get_authen_info\fR(\fBsip_header_value_t\fR \fIvalue\fR,
430 \fBint *\fR\fIerror\fR);
435 \fBconst sip_str_t *\fR\fIsip_get_proxy_authen_scheme\fR(\fBsip_msg_t\fR \fImsg\fR,
436 \fBint *\fR\fIerror\fR);
441 \fBconst sip_str_t *\fR\fIsip_get_proxy_authen_param\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
442 \fBchar *\fR\fIname\fR, \fBint *\fR\fIerror\fR);
447 \fBconst sip_str_t *\fR\fIsip_get_proxy_author_scheme\fR(\fBsip_msg_t\fR \fImsg\fR,
448 \fBint *\fR\fIerror\fR);
453 \fBconst sip_str_t *\fR\fIsip_get_proxy_author_param\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
454 \fBchar *\fR\fIname\fR, \fBint *\fR\fIerror\fR);
459 \fBconst sip_str_t *\fR\fIsip_get_proxy_require\fR(\fBsip_header_value_t\fR \fIvalue\fR,
460 \fBint *\fR\fIerror\fR);
465 \fBconst sip_str_t *\fR\fIsip_get_www_authen_scheme\fR(\fBsip_msg_t\fR \fImsg\fR,
466 \fBint *\fR\fIerror\fR);
471 \fBconst sip_str_t *\fR\fIsip_get_www_authen_param\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
472 \fBchar *\fR\fIname\fR, \fBint *\fR\fIerror\fR);
477 \fBconst sip_str_t *\fR\fIsip_get_allow_events\fR(\fBsip_header_value_t\fR \fIvalue,
483 \fBconst sip_str_t *\fR\fIsip_get_event\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
484 \fBint *\fR\fIerror\fR);
489 \fBconst sip_str_t *\fR\fIsip_get_substate\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
490 \fBint *\fR\fIerror\fR);
495 \fBconst sip_str_t *\fR\fIsip_get_content_lang\fR(\fBsip_header_value_t\fR \fIvalue\fR,
496 \fBint *\fR\fIerror\fR);
501 \fBconst sip_str_t *\fR\fIsip_get_tstamp_value\fR(\fBsip_msg_t\fR \fIsip_msg\fR,
502 \fBint *\fR\fIerror\fR);
507 \fBconst sip_str_t *\fR\fIsip_get_route_uri_str\fR(\fBsip_header_value_t\fR \fIvalue\fR,
508 \fBint *\fR\fIerror\fR);
513 \fBconst sip_str_t *\fR\fIsip_get_route_display_name\fR(\fBsip_header_value_t\fR \fIvalue\fR,
514 \fBint *\fR\fIerror\fR);
520 For functions that return a pointer of type \fBsip_str_t\fR, \fBsip_str_t\fR is
525 typedef struct sip_str {
534 The \fIsip_str_ptr\fR parameter points to the start of the returned value and
535 \fIsip_str_len\fR supplies the length of the returned value.
538 For example, given the following request line in a \fBSIP\fR message
539 \fIsip_msg\fR that is input to \fBsip_get_request_uri_str()\fR:
543 FROM : <Alice sip:alice@atlanta.com>;tag=1928301774
549 the return is a pointer to \fIsip_str_t\fR with the \fIsip_str_ptr\fR member
550 pointing to "\fBA\fR" of \fBAlice\fR and \fIsip_str_len\fR being set to
551 \fB5\fR, the length of \fBAlice\fR.
554 Access functions for headers that can have multiple values take the value as
555 the input, while those that can have only one value take the \fBSIP\fR message
556 \fIsip_msg\fR as the input.
559 The \fBsip_get_contact_display_name()\fR, \fBsip_get_from_display_name()\fR,
560 and \fBsip_get_to_display_name()\fR functions will return the display name, if
561 present, from the \fBCONTACT\fR header value, \fBFROM\fR and \fBTO\fR header
565 The \fBsip_get_contact_uri_str()\fR, \fBsip_get_from_uri_str()\fR, and
566 \fBsip_get_to_uri_str()\fR functions will return the \fBURI\fR string from the
567 \fBCONTACT\fR value, \fBFROM\fR and \fBTO\fR header respectively.
570 The \fBsip_get_from_tag()\fR and \fBsip_get_to_tag()\fR functions will return
571 the \fBTAG\fR parameter value, if present, from the \fBFROM\fR and \fBTO\fR
572 header, respectively, in the provided \fBSIP\fR message \fIsip_msg\fR.
575 The \fBsip_get_callid()\fR function will return the value from the
576 \fBCALL-ID\fR header in the provided \fBSIP\fR message \fIsip_msg\fR.
579 The \fBsip_get_callseq_num()\fR function will return the call sequence number
580 from the \fBCSEQ\fR header in the provided \fBSIP\fR message \fIsip_msg\fR.
583 The \fBsip_get_callseq_method()\fR function will return the method from the
584 \fBCSEQ\fR header in the provided \fBSIP\fR message \fIsip_msg\fR. The method
585 can be one of the following:
636 The \fBsip_get_via_sent_by_host()\fR, \fBsip_get_via_sent_by_port()\fR,
637 \fBsip_get_via_sent_protocol_version()\fR,
638 \fBsip_get_via_sent_protocol_name()\fR, and \fBsip_get_via_sent_transport()\fR
639 functions will return the sent-by host, port (if present), protocol version,
640 protocol name and transport information from the provided \fBVIA\fR header
641 value. Example, if the \fBVIA\fR value is given by \fBSIP/2.0/UDP
642 bobspc.biloxi.com:5060\fR, then the sent-by host is "\fBbobspc.biloxi.com\fR",
643 protocol name is "\fBSIP\fR", protocol version is "\fB2.0\fR", port is
644 \fB5060\fR and transport is \fBUDP\fR.
647 The \fBsip_get_maxforward()\fR function will return the value of the
648 \fBMAX-FORWARDS\fR header in the provided \fBSIP\fR message \fIsip_msg\fR.
699 The \fBsip_get_content_length()\fR function will return the value of the
700 \fBCONTENT-LENGTH\fR header in the provided \fBSIP\fR message \fIsip_msg\fR.
701 The method can return one of the following:
704 The \fBsip_get_content_type()\fR and \fBsip_get_content_sub_type()\fR functions
705 will return the value of the Type and Sub-Type field, respectively, from the
706 \fBCONTENT-TYPE\fR header in the provided \fBSIP\fR message \fIsip_msg\fR.
709 The \fBsip_get_content()\fR function will return the message body from the
710 provided \fBSIP\fR message \fIsip_msg\fR. The returned string is a copy of the
711 message body and the caller is responsible for freeing the string after use.
714 The \fBsip_get_accept_type()\fR and \fBsip_get_accept_sub_type()\fR functions
715 will return the value of the Type and Sub-Type field, respectively, from the
716 provided \fBACCEPT\fR header value.
719 The \fBsip_get_accept_enc()\fR function will return the content-coding from the
720 provided \fBACCEPT-ENCODING\fR header value.
723 The \fBsip_get_accept_lang()\fR function will return the language from the
724 provided \fBACCEPT-LANGUAGE\fR header value.
727 The \fBsip_get_alert_info_uri()\fR function will return the \fBURI\fR string
728 from the provided \fBALERT-INFO\fR header value.
731 The \fBsip_get_allow_method()\fR function will return the \fBSIP\fR method from
732 the provided \fBALLOW\fR header value. The method can return one of the
784 The \fBsip_get_min_expire()\fR function will return the time in seconds from
785 the \fBMIN-EXPIRES\fR header in the provided \fBSIP\fR message \fIsip_msg\fR.
788 The \fBsip_get_mime_version()\fR function will return the \fBMIME\fR version
789 string from the \fBMIME-VERSION\fR header in the provided \fBSIP\fR message
793 The \fBsip_get_org()\fR function will return the organization string value from
794 the \fBORGANIZATION\fR header in the provided \fBSIP\fR message \fIsip_msg\fR.
797 The \fBsip_get_priority()\fR function will return the priority string value
798 from the \fBPRIORITY\fR header in the provided \fBSIP\fR message \fIsip_msg\fR.
801 The \fBsip_get_replyto_display_name()\fR and \fBsip_get_replyto_uri_str()\fR
802 functions will return the display name (if present) and the \fBURI\fR string,
803 respectively, from the \fBREPLY-TO\fR header in the provided \fBSIP\fR message
807 The \fBsip_get_date_time()\fR, \fBsip_get_date_day()\fR,
808 \fBsip_get_date_month()\fR, \fBsip_get_date_wkday()\fR,
809 \fBsip_get_date_year()\fR and \fBsip_get_date_timezone()\fR functions will
810 return the time, day, month, week day, year and timezone value from the
811 \fBDATE\fR header in the provided \fBSIP\fR message \fIsip_msg\fR. Example, if
812 the DATE header has the following value:
816 Sat, 13 Nov 2010 23:29:00 GMT
822 the time is "\fB23:29:00\fR ", week day is "\fBSat\fR", day is "\fB13\fR",
823 month is "\fBNov\fR", year is "\fB2010\fR", timezone is "\fBGMT\fR".
826 The \fBsip_get_content_disp()\fR function will return the content-disposition
827 type from the \fBCONTENT-DISPOSITION\fR header in the provided \fBSIP\fR
828 message \fIsip_msg\fR.
831 The \fBsip_get_content_enc()\fR function will return the content-coding value
832 from the \fBCONTENT-ENCODING\fR header value.
835 The \fBsip_get_error_info_uri()\fR function will return the \fBURI\fR string
836 from the provided \fBERROR-INFO\fR header value.
839 The \fBsip_get_expires()\fR function will return the time in seconds from the
840 \fBEXPIRES\fR header in the provided \fBSIP\fR message \fIsip_msg\fR.
843 The \fBsip_get_require()\fR function will return the option-tag value from the
844 provided \fBREQUIRE\fR header value.
847 The \fBsip_get_subject()\fR function will return the value of the \fBSUBJECT\fR
848 header in the provided \fBSIP\fR message \fIsip_msg\fR.
851 The \fBsip_get_supported()\fR function will return the extension value from the
852 provided \fBSUPPORTED\fR header value.
855 The \fBsip_get_tstamp_delay()\fR function will return the value from the
856 \fBTIMESTAMP\fR header in the provided \fBSIP\fR message \fIsip_msg\fR.
859 The \fBsip_get_unsupported()\fR function will return the extension value from
860 the provided \fBUNSUPPORTED\fR header value.
863 The \fBsip_get_server()\fR function will return the value from the \fBSERVER\fR
864 header in the provided \fBSIP\fR message \fIsip_msg\fR.
867 The \fBsip_get_user_agent()\fR function will return the value from the
868 \fBUSER-AGENT\fR header in the provided \fBSIP\fR message \fIsip_msg\fR.
871 The \fBsip_get_warning_code()\fR, \fBsip_get_warning_agent()\fR, and
872 \fBsip_get_warning_text()\fR functions will return the value of the warn-code,
873 warn-agent and warn-text, respectively, in the provided \fBWARNING\fR header
877 The \fBsip_get_call_info_uri()\fR function will return the \fBURI\fR string in
878 the provided \fBCALL-INFO\fR header value.
881 The \fBsip_get_in_reply_to()\fR function will return the Call-Id value in the
882 provided \fBIN-REPLY-TO\fR header value.
885 The \fBsip_get_retry_after_time()\fR, and \fBsip_get_retry_after_cmts()\fR
886 functions return the time and comments (if any), respectively, from the
887 \fBRETRY-AFTER\fR header in the provided \fBSIP\fR message \fIsip_msg\fR.
890 The \fBsip_get_passertedid_display_name()\fR and
891 \fBsip_get_passertedid_uri_str()\fR functions will return the display name (if
892 any) and the \fBURI\fR string, respectively, in the provided
893 \fBP-ASSERTED-IDENTITY\fR header value.
896 The \fBsip_get_ppreferredid_display_name()\fR and
897 \fBsip_get_ppreferredid_uri_str()\fR functions will return the display name (if
898 any) and the \fBURI\fR string, respectively, in the provided
899 \fBP-PREFERRED-IDENTITY\fR header value.
902 The \fBsip_get_rack_resp_num()\fR, \fBsip_get_rack_cseq_num()\fR, and
903 \fBsip_get_rack_method()\fR functions will return the response-number, the
904 \fBCSEQ\fR number and the \fBSIP\fR method from the \fBRACK\fR header in the
905 provided \fBSIP\fR message \fIsip_msg\fR. The method can return one of the
957 The \fBsip_get_rseq_resp_num()\fR function will return the response-number, the
958 \fBRSEQ\fR header in the provided \fBSIP\fR message \fIsip_msg\fR.
961 The \fBsip_get_priv_value()\fR function will return the priv-value in the
962 provided \fBPRIVACY\fR header value.
965 The \fBsip_get_route_uri_str()\fR and \fBsip_get_route_display_name()\fR
966 functions will return the \fBURI\fR string, and display name (if present) from
967 the provided \fBROUTE\fR or \fBRECORD-ROUTE\fR header value.
970 The \fBsip_get_author_scheme()\fR function will return the scheme from the
971 \fBAUTHORIZATION\fR header in the provided \fBSIP\fR message \fIsip_msg\fR.
974 The \fBsip_get_author_param()\fR function will return the value of the
975 parameter specified in name from the \fBAUTHORIZATION\fR header in the
976 \fBSIP\fR message \fIsip_msg\fR.
979 The \fBsip_get_authen_info()\fR function will return the authentication
980 information from the provided \fBAUTHORIZATION-INFO\fR header value.
983 The \fBsip_get_proxy_authen_scheme()\fR function will return the scheme from
984 the \fBPROXY-AUTHENTICATE\fR header in the \fBSIP\fR message \fIsip_msg\fR.
987 The \fBsip_get_proxy_authen_param()\fR function will return the value of the
988 parameter in name from the \fBPROXY-AUTHENTICATE\fR header in the \fBSIP\fR
989 message \fIsip_msg\fR.
992 The \fBsip_get_proxy_author_scheme()\fR function will return the value of the
993 scheme from the \fBPROXY-AUTHORIZATION\fR header in the \fBSIP\fR message
997 The \fBsip_get_proxy_author_param()\fR function will return the value of the
998 parameter specified in name from the \fBPROXY-AUTHORIZATION\fR header in the
999 \fBSIP\fR message \fIsip_msg\fR.
1002 The \fBsip_get_proxy_require()\fR function will return the option-tag from the
1003 provided \fBPROXY-REQUIRE\fR header value.
1006 The \fBsip_get_www_authen_scheme()\fR function will return the challenge from
1007 the \fBWWW-AUTHENTICATE\fR header in the \fBSIP\fR message \fIsip_msg\fR.
1010 The \fBsip_get_www_authen_param()\fR function will return the value of the
1011 parameter specified in name from the \fBWWW-AUTHENTICATE\fR header in the
1012 \fBSIP\fR message \fIsip_msg\fR.
1015 The \fBsip_get_allow_events()\fR function returns the value of the allowed
1016 event from the provided \fBALLOW-EVENTS\fR header value.
1019 The \fBsip_get_event()\fR function returns the event in the \fBEVENT\fR header
1020 in the \fBSIP\fR message \fIsip_msg\fR.
1023 The \fBsip_get_substate()\fR function the subscription state from the
1024 \fBSUBSCRIPTION-STATE\fR header in the provided \fBSIP\fR message
1028 The \fBsip_get_content_lang()\fR function will return the language from the
1029 provided \fBCONTENT-LANGUAGE\fR value.
1032 The \fBsip_get_tstamp_value()\fR function will return the timestamp value from
1033 the \fBTIMESTAMP\fR header in the \fBSIP\fR message \fIsip_msg\fR.
1037 For functions that return a pointer to \fIsip_str_t\fR, the return value is the
1038 specified value on success or \fBNULL\fR in case of error. For functions that
1039 return an integer, the return value is the specified value on success and
1043 The value of \fBerrno\fR is not changed by these calls in the event of an
1048 These functions take a pointer to an integer \fIerror\fR as an argument. If the
1049 error is non-null, one of the following values is set:
1056 The input \fBSIP\fR message \fIsip_msg\fR or the header value is null; or the
1057 specified header/header value is deleted.
1066 The header value is not present or invalid. The parser could not parse it
1076 There is an error allocating memory for the return value.
1081 On success, the value of the location pointed to by \fIerror\fR is set to
1086 See \fBattributes\fR(5) for descriptions of the following attributes:
1094 ATTRIBUTE TYPE ATTRIBUTE VALUE
1096 Interface Stability Committed