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
c30f04fa
Commit
c30f04fa
authored
6 years ago
by
Jenkins2
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "res_pjsip: Patch for res_pjsip_* module load/reload crash" into 13
parents
822d321a
ec02d7fd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/asterisk/res_pjsip_session.h
+5
-1
5 additions, 1 deletion
include/asterisk/res_pjsip_session.h
res/res_pjsip/pjsip_session.c
+10
-1
10 additions, 1 deletion
res/res_pjsip/pjsip_session.c
with
15 additions
and
2 deletions
include/asterisk/res_pjsip_session.h
+
5
−
1
View file @
c30f04fa
...
...
@@ -533,10 +533,14 @@ void ast_sip_session_unregister_sdp_handler(struct ast_sip_session_sdp_handler *
* a module could reject an incoming request if desired.
*
* \param supplement The supplement to register
* \param module Referenced module(NULL safe)
* \retval 0 Success
* \retval -1 Failure
*/
int
ast_sip_session_register_supplement
(
struct
ast_sip_session_supplement
*
supplement
);
int
ast_sip_session_register_supplement_with_module
(
struct
ast_module
*
module
,
struct
ast_sip_session_supplement
*
supplement
);
#define ast_sip_session_register_supplement(supplement) \
ast_sip_session_register_supplement_with_module(ast_module_info->self, supplement)
/*!
* \brief Unregister a an supplement to SIP session processing
...
...
This diff is collapsed.
Click to expand it.
res/res_pjsip/pjsip_session.c
+
10
−
1
View file @
c30f04fa
...
...
@@ -56,10 +56,11 @@ void internal_sip_session_register_supplement(struct ast_sip_session_supplement
}
}
int
ast_sip_session_register_supplement
(
struct
ast_sip_session_supplement
*
supplement
)
int
ast_sip_session_register_supplement
_with_module
(
struct
ast_module
*
module
,
struct
ast_sip_session_supplement
*
supplement
)
{
internal_sip_session_register_supplement
(
supplement
);
internal_res_pjsip_ref
();
ast_module_shutdown_ref
(
module
);
return
0
;
}
...
...
@@ -118,3 +119,11 @@ int ast_sip_session_add_supplements(struct ast_sip_session *session)
return
0
;
}
/* This stub is for ABI compatibility. */
#undef ast_sip_session_register_supplement
int
ast_sip_session_register_supplement
(
struct
ast_sip_session_supplement
*
supplement
);
int
ast_sip_session_register_supplement
(
struct
ast_sip_session_supplement
*
supplement
)
{
return
ast_sip_session_register_supplement_with_module
(
NULL
,
supplement
);
}
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