Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
3051c9bd
Commit
3051c9bd
authored
Jul 23, 2013
by
jehan
Browse files
add LinphoneReasonDoNotDisturb
parent
9702eeb2
Changes
4
Hide whitespace changes
Inline
Side-by-side
coreapi/linphonecore.c
View file @
3051c9bd
...
...
@@ -3357,6 +3357,9 @@ int linphone_core_decline_call(LinphoneCore *lc, LinphoneCall * call, LinphoneRe
case
LinphoneReasonBusy
:
sal_reason
=
SalReasonBusy
;
break
;
case
LinphoneReasonDoNotDistrub
:
sal_reason
=
SalReasonDoNotDisturb
;
break
;
default:
ms_error
(
"linphone_core_decline_call(): unsupported reason %s"
,
linphone_reason_to_string
(
reason
));
return
-
1
;
...
...
@@ -5782,6 +5785,8 @@ const char *linphone_reason_to_string(LinphoneReason err){
return
"Incompatible media capabilities"
;
case
LinphoneReasonIOError
:
return
"IO error"
;
case
LinphoneReasonDoNotDistrub
:
return
"Do not distrub"
;
}
return
"unknown error"
;
}
...
...
coreapi/linphonecore.h
View file @
3051c9bd
...
...
@@ -133,7 +133,9 @@ enum _LinphoneReason{
LinphoneReasonNotAnswered
,
/**<The call was not answered in time*/
LinphoneReasonBusy
,
/**<Phone line was busy */
LinphoneReasonMedia
,
/**<Incompatible media */
LinphoneReasonIOError
/**<Transport error: connection failures, disconnections etc...*/
LinphoneReasonIOError
,
/**<Transport error: connection failures, disconnections etc...*/
LinphoneReasonDoNotDistrub
/*Do not disturb reason*/
};
/**
...
...
coreapi/misc.c
View file @
3051c9bd
...
...
@@ -1179,6 +1179,8 @@ SalReason linphone_reason_to_sal(LinphoneReason reason){
return
SalReasonMedia
;
case
LinphoneReasonIOError
:
return
SalReasonServiceUnavailable
;
case
LinphoneReasonDoNotDistrub
:
return
SalReasonDoNotDisturb
;
}
return
SalReasonUnknown
;
}
...
...
@@ -1196,7 +1198,7 @@ LinphoneReason linphone_reason_from_sal(SalReason r){
ret
=
LinphoneReasonDeclined
;
break
;
case
SalReasonDoNotDisturb
:
ret
=
LinphoneReasonD
eclined
;
ret
=
LinphoneReasonD
oNotDistrub
;
break
;
case
SalReasonForbidden
:
ret
=
LinphoneReasonBadCredentials
;
...
...
java/common/org/linphone/core/Reason.java
View file @
3051c9bd
...
...
@@ -32,7 +32,19 @@ public class Reason {
* Call not answered (in time).
*/
static
public
Reason
Busy
=
new
Reason
(
6
,
"Busy"
);
/**
* Incompatible media
* */
static
public
Reason
Media
=
new
Reason
(
7
,
"Media"
);
/**
* Transport error: connection failures, disconnections etc...
* */
static
public
Reason
IOError
=
new
Reason
(
8
,
"IOError"
);
/**
* Transport error: connection failures, disconnections etc...
* */
static
public
Reason
DoNotDistrub
=
new
Reason
(
9
,
"DoNotDistrub"
);
protected
final
int
mValue
;
private
final
String
mStringValue
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment