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
belle-sip
Commits
bfbad2b7
Commit
bfbad2b7
authored
Mar 06, 2014
by
Guillaume Beraudo
Browse files
Proxy helper function to discover call side record route uri
parent
b223ea60
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/provider.c
View file @
bfbad2b7
...
...
@@ -445,15 +445,15 @@ belle_sip_provider_t *belle_sip_provider_new(belle_sip_stack_t *s, belle_sip_lis
if
(
lp
)
belle_sip_provider_add_listening_point
(
p
,
lp
);
return
p
;
}
#if 0
/* what is the purpose of this function incorrectly named ?*/
/* This function is used by a proxy to set its call side record route.
* It must be called before adding any VIA header to the message. */
belle_sip_uri_t
*
belles_sip_provider_find_our_origin
(
belle_sip_provider_t
*
p
,
belle_sip_request_t
*
req
)
{
belle_sip_uri_t
*
origin
=
belle_sip_request_extract_origin
(
req
);
belle_sip_hop_t
*
hop
=
belle_sip_hop_new_from_uri
(
origin
);
belle_sip_channel_t
*
inChan
=
belle_sip_provider_get_channel
(
p
,
hop
);
return
compute_our_external_uri_from_channel
(
inChan
);
}
#endif
static
belle_sip_channel_t
*
_belle_sip_provider_find_channel_with_us
(
belle_sip_provider_t
*
p
,
belle_sip_uri_t
*
uri
)
{
const
char
*
transport
;
...
...
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