Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
2cbee41e
Commit
2cbee41e
authored
12 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
* #9910: SIP: use pjsip error codes instead of magic numbers
parent
d88fe7a7
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
daemon/src/sip/sipvoiplink.cpp
+7
-7
7 additions, 7 deletions
daemon/src/sip/sipvoiplink.cpp
with
7 additions
and
7 deletions
daemon/src/sip/sipvoiplink.cpp
+
7
−
7
View file @
2cbee41e
...
...
@@ -1612,23 +1612,23 @@ void registration_cb(pjsip_regc_cbparam *param)
if
(
param
->
code
<
0
||
param
->
code
>=
300
)
{
switch
(
param
->
code
)
{
case
606
:
case
PJSIP_SC_NOT_ACCEPTABLE_ANYWHERE
:
lookForReceivedParameter
(
param
,
account
);
account
->
setRegistrationState
(
ErrorNotAcceptable
);
break
;
case
503
:
case
408
:
case
PJSIP_SC_SERVICE_UNAVAILABLE
:
case
PJSIP_SC_REQUEST_TIMEOUT
:
account
->
setRegistrationState
(
ErrorHost
);
break
;
case
401
:
case
403
:
case
404
:
case
PJSIP_SC_UNAUTHORIZED
:
case
PJSIP_SC_FORBIDDEN
:
case
PJSIP_SC_NOT_FOUND
:
account
->
setRegistrationState
(
ErrorAuth
);
break
;
case
423
:
case
PJSIP_SC_INTERVAL_TOO_BRIEF
:
// Expiration Interval Too Brief
account
->
doubleRegistrationExpire
();
account
->
registerVoIPLink
();
...
...
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