Commit f5877690 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Added nta_agent_public_via().

darcs-hash:20060315144746-65a35-2b741e52720fb8be7e2701380613a96689d1e671.gz
parent dcf533a5
......@@ -610,6 +610,17 @@ sip_via_t *nta_agent_via(nta_agent_t const *agent)
return agent ? agent->sa_vias : NULL;
}
/** Return a list of public @b Via headers.
*
* Return @b Via headers for all public transports.
*
* @param agent NTA agent object
*/
sip_via_t *nta_agent_public_via(nta_agent_t const *agent)
{
return agent ? agent->sa_public_vias : NULL;
}
/** Return @b User-Agent header.
*
* The function nta_agent_name() returns a @b User-Agent information with
......
......@@ -104,6 +104,7 @@ struct nta_agent_s
sip_contact_t *sa_contact;
sip_via_t *sa_vias; /**< Via headers for all transports */
sip_via_t *sa_public_vias; /**< Vias for public transports */
sip_contact_t *sa_aliases;/**< List of aliases for agent */
uint64_t sa_branch; /**< Counter for generating branch parameter */
......
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