Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
0afff51e
Commit
0afff51e
authored
8 years ago
by
zuul
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "pjsip_distributor.c: Update some debug messages to get transaction name." into 13
parents
a3584c68
d58fdae8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
res/res_pjsip/pjsip_distributor.c
+9
-16
9 additions, 16 deletions
res/res_pjsip/pjsip_distributor.c
with
9 additions
and
16 deletions
res/res_pjsip/pjsip_distributor.c
+
9
−
16
View file @
0afff51e
...
...
@@ -109,12 +109,12 @@ static struct ast_taskprocessor *find_request_serializer(pjsip_rx_data *rdata)
tsx
=
pjsip_tsx_layer_find_tsx
(
&
tsx_key
,
PJ_TRUE
);
if
(
!
tsx
)
{
ast_debug
(
1
,
"Could not find %.*s transaction for %d response.
\n
"
,
(
int
)
pj_strlen
(
&
rdata
->
msg_info
.
cseq
->
method
.
name
),
pj_strbuf
(
&
rdata
->
msg_info
.
cseq
->
method
.
name
),
rdata
->
msg_info
.
msg
->
line
.
status
.
code
);
ast_debug
(
1
,
"Could not find transaction for %s.
\n
"
,
pjsip_rx_data_get_info
(
rdata
));
return
NULL
;
}
ast_debug
(
3
,
"Found transaction %s for %s.
\n
"
,
tsx
->
obj_name
,
pjsip_rx_data_get_info
(
rdata
));
if
(
tsx
->
last_tx
)
{
const
char
*
serializer_name
;
...
...
@@ -391,21 +391,14 @@ static pj_bool_t distributor(pjsip_rx_data *rdata)
if
(
serializer
)
{
/* We have a serializer so we know where to send the message. */
}
else
if
(
rdata
->
msg_info
.
msg
->
type
==
PJSIP_RESPONSE_MSG
)
{
ast_debug
(
3
,
"No dialog serializer for
response
%s. Using request transaction as basis
\n
"
,
ast_debug
(
3
,
"No dialog serializer for %s.
Using request transaction as basis
.
\n
"
,
pjsip_rx_data_get_info
(
rdata
));
serializer
=
find_request_serializer
(
rdata
);
if
(
!
serializer
)
{
if
(
ast_taskprocessor_alert_get
())
{
/* We're overloaded, ignore the unmatched response. */
ast_debug
(
3
,
"Taskprocessor overload alert: Ignoring unmatched '%s'.
\n
"
,
pjsip_rx_data_get_info
(
rdata
));
return
PJ_TRUE
;
}
/*
* Pick a serializer for the unmatched response.
Maybe
*
the stack can figure out what it is for, or we re
ally
* s
hould just toss it regardless
.
* Pick a serializer for the unmatched response.
*
We couldn't determine what serializer origin
ally
* s
ent the request or the serializer is gone
.
*/
serializer
=
ast_sip_get_distributor_serializer
(
rdata
);
}
...
...
@@ -768,7 +761,7 @@ static int distribute(void *data)
.
start_mod
=
&
distributor_mod
,
.
idx_after_start
=
1
,
};
pj_bool_t
handled
;
pj_bool_t
handled
=
PJ_FALSE
;
pjsip_rx_data
*
rdata
=
data
;
int
is_request
=
rdata
->
msg_info
.
msg
->
type
==
PJSIP_REQUEST_MSG
;
int
is_ack
=
is_request
?
rdata
->
msg_info
.
msg
->
line
.
req
.
method
.
id
==
PJSIP_ACK_METHOD
:
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment