Commit 3b7b2230 authored by Pekka Pessi's avatar Pekka Pessi

nta: added nta_sip_is_internal().

darcs-hash:20071122143945-65a35-4a33bbc647e68f07e58a9a232f5e4da546dfaf4c.gz
parent e4d670d3
......@@ -2765,6 +2765,14 @@ void nta_msg_discard(nta_agent_t *agent, msg_t *msg)
msg_destroy(msg);
}
/** Check if the headers are from response generated locally by NTA. */
int nta_sip_is_internal(sip_t const *sip)
{
return
sip == NULL /* No message generated */
|| (sip->sip_flags & NTA_INTERNAL_MSG) == NTA_INTERNAL_MSG;
}
/** Check if the message is internally generated by NTA. */
int nta_is_internal_msg(msg_t const *msg)
{
......
......@@ -172,6 +172,8 @@ SOFIAPUBFUN int nta_msg_request_complete(msg_t *msg,
SOFIAPUBFUN int nta_is_internal_msg(msg_t const *msg);
SOFIAPUBFUN int nta_sip_is_internal(sip_t const *sip);
/* ----------------------------------------------------------------------
* 5) Leg-level prototypes
*/
......
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