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
91f87634
Commit
91f87634
authored
9 years ago
by
Joshua Colp
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "res_pjsip_t38.c: Back out part of an earlier fix attempt."
parents
b0755492
bf29a4e2
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_t38.c
+0
-41
0 additions, 41 deletions
res/res_pjsip_t38.c
with
0 additions
and
41 deletions
res/res_pjsip_t38.c
+
0
−
41
View file @
91f87634
...
...
@@ -570,41 +570,6 @@ static struct ast_sip_session_supplement t38_supplement = {
.
outgoing_request
=
t38_outgoing_invite_request
,
};
static
int
t38_incoming_bye_request
(
struct
ast_sip_session
*
session
,
struct
pjsip_rx_data
*
rdata
)
{
struct
ast_datastore
*
datastore
;
struct
ast_sip_session_media
*
session_media
;
if
(
!
session
->
channel
)
{
return
0
;
}
datastore
=
ast_sip_session_get_datastore
(
session
,
"t38"
);
if
(
!
datastore
)
{
return
0
;
}
session_media
=
ao2_find
(
session
->
media
,
"image"
,
OBJ_KEY
);
if
(
!
session_media
)
{
ao2_ref
(
datastore
,
-
1
);
return
0
;
}
t38_change_state
(
session
,
session_media
,
datastore
->
data
,
T38_REJECTED
);
ao2_ref
(
datastore
,
-
1
);
ao2_ref
(
session_media
,
-
1
);
return
0
;
}
/*! \brief Supplement for handling a remote termination of T.38 state */
static
struct
ast_sip_session_supplement
t38_bye_supplement
=
{
.
method
=
"BYE"
,
.
priority
=
AST_SIP_SUPPLEMENT_PRIORITY_CHANNEL
+
1
,
.
incoming_request
=
t38_incoming_bye_request
,
};
/*! \brief Parse a T.38 image stream and store the attribute information */
static
void
t38_interpret_sdp
(
struct
t38_state
*
state
,
struct
ast_sip_session
*
session
,
struct
ast_sip_session_media
*
session_media
,
const
struct
pjmedia_sdp_media
*
stream
)
...
...
@@ -935,7 +900,6 @@ static int unload_module(void)
{
ast_sip_session_unregister_sdp_handler
(
&
image_sdp_handler
,
"image"
);
ast_sip_session_unregister_supplement
(
&
t38_supplement
);
ast_sip_session_unregister_supplement
(
&
t38_bye_supplement
);
return
0
;
}
...
...
@@ -962,11 +926,6 @@ static int load_module(void)
goto
end
;
}
if
(
ast_sip_session_register_supplement
(
&
t38_bye_supplement
))
{
ast_log
(
LOG_ERROR
,
"Unable to register T.38 BYE session supplement
\n
"
);
goto
end
;
}
if
(
ast_sip_session_register_sdp_handler
(
&
image_sdp_handler
,
"image"
))
{
ast_log
(
LOG_ERROR
,
"Unable to register SDP handler for image stream type
\n
"
);
goto
end
;
...
...
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