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
3bc4bd25
Commit
3bc4bd25
authored
Oct 30, 2013
by
Simon Morlat
Browse files
fix RFC2543 matching of requests: it should not take into account thre request-uri
parent
1b1f20b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
src/provider.c
src/provider.c
+0
-8
No files found.
src/provider.c
View file @
3bc4bd25
...
...
@@ -231,19 +231,11 @@ static char *compute_rfc2543_branch(belle_sip_request_t *req, char *branchid, si
const
char
*
callid
=
belle_sip_header_call_id_get_call_id
(
belle_sip_message_get_header_by_type
(
req
,
belle_sip_header_call_id_t
));
const
char
*
from_tag
=
belle_sip_header_from_get_tag
(
belle_sip_message_get_header_by_type
(
req
,
belle_sip_header_from_t
));
const
char
*
to_tag
=
belle_sip_header_to_get_tag
(
belle_sip_message_get_header_by_type
(
req
,
belle_sip_header_to_t
));
belle_sip_uri_t
*
requri
=
NULL
;
belle_sip_header_via_t
*
via
=
NULL
;
const
belle_sip_list_t
*
vias
=
belle_sip_message_get_headers
((
belle_sip_message_t
*
)
req
,
"via"
);
requri
=
belle_sip_request_get_uri
(
req
);
belle_sip_md5_init
(
&
ctx
);
if
(
requri
){
size_t
offset
=
0
;
belle_sip_object_marshal
((
belle_sip_object_t
*
)
requri
,
tmp
,
sizeof
(
tmp
)
-
1
,
&
offset
);
belle_sip_md5_append
(
&
ctx
,(
uint8_t
*
)
tmp
,
strlen
(
tmp
));
}
if
(
from_tag
)
belle_sip_md5_append
(
&
ctx
,(
uint8_t
*
)
from_tag
,
strlen
(
from_tag
));
if
(
to_tag
)
...
...
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