Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
sofia-sip
Commits
f5877690
Commit
f5877690
authored
Mar 15, 2006
by
Pekka Pessi
Browse files
Added nta_agent_public_via().
darcs-hash:20060315144746-65a35-2b741e52720fb8be7e2701380613a96689d1e671.gz
parent
dcf533a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
libsofia-sip-ua/nta/nta.c
libsofia-sip-ua/nta/nta.c
+11
-0
libsofia-sip-ua/nta/nta_internal.h
libsofia-sip-ua/nta/nta_internal.h
+1
-0
No files found.
libsofia-sip-ua/nta/nta.c
View file @
f5877690
...
...
@@ -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
...
...
libsofia-sip-ua/nta/nta_internal.h
View file @
f5877690
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment