Commit a5f4596d authored by Pekka Pessi's avatar Pekka Pessi

sip: using msg_header_replace_item().

darcs-hash:20061031171820-65a35-9662a392f49dfb58fbf1d62da67860fd0e21ca69.gz
parent 785b358f
......@@ -23,6 +23,8 @@ API/ABI changes and versioning
libsofia-sip-ua:
- **template**: Added foobar() function (sofia-sip/foobar.h).
- Added functions msg_header_replace_item(), msg_header_remove_item()
(handling Allow and Allow-Events headers)
- Added functions for handling SIP headers encoded in SIP URL:
sip_headers_as_url_query(), sip_url_query_as_taglist(),
url_query_as_header_string(), url_unescape_to(),
......
......@@ -176,6 +176,13 @@ static int sip_event_update(msg_common_t *h,
* @endcode
*
* The parsed Allow-Events header is stored in #sip_allow_events_t structure.
*
* Note that the event name is case-sensitive. The event "Presence" is
* different from "presence". However, it is very unwise to use such event
* names.
*
* @sa @Event, @RFC3265, msg_header_find_item(), msg_header_replace_item(),
* msg_header_remove_item()
*/
/**@ingroup sip_allow_events
......@@ -213,7 +220,7 @@ issize_t sip_allow_events_e(char b[], isize_t bsiz, sip_header_t const *h, int f
*
* @note This function @b does @b duplicate @p event.
*
* @deprecated Use msg_header_replace_param() directly.
* @deprecated Use msg_header_replace_item() directly.
*/
int sip_allow_events_add(su_home_t *home,
sip_allow_events_t *ae,
......@@ -222,7 +229,7 @@ int sip_allow_events_add(su_home_t *home,
event = su_strdup(home, event);
if (!event)
return -1;
return msg_header_replace_param(home, ae->k_common, event);
return msg_header_replace_item(home, ae->k_common, event);
}
/* ====================================================================== */
......
......@@ -57,6 +57,12 @@
* @endcode
*
* The parsed Allow header is stored in #sip_allow_t structure.
*
* Note that SIP methods are case-sensitive: "INVITE" method is different from
* "Invite".
*
* @sa msg_header_find_item(), msg_header_replace_item(),
* msg_header_remove_item()
*/
/**@ingroup sip_allow
......
......@@ -53,7 +53,7 @@ options="$options --with-pic --enable-shared"
options="$options --without-glib"
%endif
%{?_with_sctp:options="$options --enable-sctp"}
%configure $options
%configure $options CFLAGS="-Os -DNDEBUG -g"
make %{_smp_mflags}
%{?_with_check:make check}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment