-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement OPTIONS ping #30
Conversation
1df038e
to
6b6ebb3
Compare
A module that implements a pinging mechanism using SIP OPTIONS to qualify the peer while a call is in the INCOMING state to ensure that the peer is reachable and we will be able to successfully answer the call.
modules/qualify/qualify.c
Outdated
* peer while a call is in the INCOMING state to ensure that the peer is | ||
* reachable and we will be able to successfully answer the call. | ||
* | ||
* Configuration: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of "Configuration:" write "Configure in address parameter extra
:"
And combine with the example below. Maybe both at the end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
modules/qualify/qualify.c
Outdated
* The OPTIONS are only sent if both options are present, both are not zero, | ||
* qualify_freq is greater than qual_to, and the call is incoming. As soon as | ||
* the call is established or closed, we stop sending OPTIONS. | ||
* If we run don’t receive a response to an OPTIONS request within the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- correct this sentence
- Avoid "we"! Use the local UA, or "is stopped", "is sent"!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
6b6ebb3
to
2820008
Compare
2e9e7a7
to
b0bc06c
Compare
modules/qualify/qualify.c
Outdated
if (!qualle->offline) { | ||
qualle->offline = true; | ||
ua_event(call_get_ua(call), UA_EVENT_CUSTOM, call, | ||
"Peer offline"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use module_event()
! General in this module!
modules/qualify/qualify.c
Outdated
} | ||
|
||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doxygen @param missing.
Better drop this. Its static and the return codes are not used.
Return codes are not standard codes.
61a2630
to
8091431
Compare
8091431
to
8580bdd
Compare
qualify: add qualify module
This module implements a pinging mechanism using SIP OPTIONS to qualify the peer while a call is in the INCOMING state to ensure that the peer is reachable and we will be able to successfully answer the call.
Configuration:
The OPTIONS are only sent if both options are present, both are not zero,
qual_int
is greater thanqual_to
, and the call is incoming. As soon as the call is established or closed, we stop sending OPTIONS. If we run don’t receive a response to an OPTIONS request within the specifiedqual_to
, the call is terminated andUA_EVENT_CALL_CLOSED
is triggered.Extra account address parameters:
The module can be activated by adding both the
qual_int
and thequal_to
parameters to the accounts parameterextra
.Example:
Related: