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
2d1ed625
Commit
2d1ed625
authored
16 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
Restore call failure use cases
parent
951a4a38
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sipvoiplink.cpp
+13
-8
13 additions, 8 deletions
src/sipvoiplink.cpp
with
13 additions
and
8 deletions
src/sipvoiplink.cpp
+
13
−
8
View file @
2d1ed625
...
...
@@ -1618,16 +1618,21 @@ std::string SIPVoIPLink::getSipTo(const std::string& to_url, std::string hostnam
}
break
;
case
PJSIP_SC_REQUEST_TIMEOUT
:
// The host was probably unreachable: bad address, bad port, ...
break
;
case
PJSIP_SC_NOT_ACCEPTABLE_HERE
:
// The SDP negociation failed
/* The call connection failed */
case
PJSIP_SC_NOT_FOUND
:
/* peer not found */
case
PJSIP_SC_REQUEST_TIMEOUT
:
/* request timeout */
case
PJSIP_SC_NOT_ACCEPTABLE_HERE
:
/* no compatible codecs */
case
PJSIP_SC_NOT_ACCEPTABLE_ANYWHERE
:
case
PJSIP_SC_UNSUPPORTED_MEDIA_TYPE
:
accId
=
Manager
::
instance
().
getAccountFromCall
(
call
->
getCallId
());
link
=
dynamic_cast
<
SIPVoIPLink
*>
(
Manager
::
instance
().
getAccountLink
(
accId
));
if
(
link
)
{
link
->
SIPCallServerFailure
(
call
);
}
break
;
default
:
// The call terminated successfully; normal behaviour
// Core notification
_debug
(
"sipvoiplink.cpp - line 1635 : Unhandled call state. This is probably a bug.
\n
"
);
break
;
}
}
...
...
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