Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jami-client-macos
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-client-macos
Commits
0a22c8fd
Commit
0a22c8fd
authored
10 years ago
by
Alexandre Lision
Committed by
Alexandre Lision
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
call: detect ring calls to prepend 'ring:'
Refs #67102 Change-Id: I7655cf5ffe3c63e459636bdd72e1ed9505627bdb
parent
bb306135
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
RingWindowController.mm
+11
-1
11 additions, 1 deletion
RingWindowController.mm
with
11 additions
and
1 deletion
RingWindowController.mm
+
11
−
1
View file @
0a22c8fd
...
@@ -201,7 +201,17 @@ static NSString* const kCallButtonIdentifer = @"CallButtonIdentifier";
...
@@ -201,7 +201,17 @@ static NSString* const kCallButtonIdentifer = @"CallButtonIdentifier";
-
(
IBAction
)
placeCall
:(
id
)
sender
-
(
IBAction
)
placeCall
:(
id
)
sender
{
{
Call
*
c
=
CallModel
::
instance
()
->
dialingCall
();
Call
*
c
=
CallModel
::
instance
()
->
dialingCall
();
// check for a valid ring hash
NSCharacterSet
*
hexSet
=
[
NSCharacterSet
characterSetWithCharactersInString
:
@"0123456789abcdefABCDEF"
];
BOOL
valid
=
[[[
callField
stringValue
]
stringByTrimmingCharactersInSet
:
hexSet
]
isEqualToString
:
@""
];
if
(
valid
&&
callField
.
stringValue
.
length
==
40
)
{
c
->
setDialNumber
(
QString
::
fromNSString
([
NSString
stringWithFormat
:
@"ring:%@"
,[
callField
stringValue
]]));
}
else
{
c
->
setDialNumber
(
QString
::
fromNSString
([
callField
stringValue
]));
c
->
setDialNumber
(
QString
::
fromNSString
([
callField
stringValue
]));
}
c
<<
Call
::
Action
::
ACCEPT
;
c
<<
Call
::
Action
::
ACCEPT
;
}
}
...
...
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