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
e8c9c699
Commit
e8c9c699
authored
15 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
[#2521] Fix pysflphonectrlsimple (Module md5 not supported anymore)
parent
81643457
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/pysflphone/sflphonectrlsimple.py
+5
-4
5 additions, 4 deletions
tools/pysflphone/sflphonectrlsimple.py
with
5 additions
and
4 deletions
tools/pysflphone/sflphonectrlsimple.py
+
5
−
4
View file @
e8c9c699
...
...
@@ -29,7 +29,7 @@ from gobject import GObject
import
getopt
import
time
import
md5
import
hashlib
from
threading
import
Thread
...
...
@@ -405,11 +405,12 @@ class SflPhoneCtrlSimple(object):
if
dest
is
None
or
dest
==
""
:
raise
SflPhoneError
(
"
Invalid call destination
"
)
# callid = str(random.randrange(2**32-1))
# Generate a call ID for this
m
=
hashlib
.
md5
()
t
=
long
(
time
.
time
()
*
1000
)
r
=
long
(
random
.
random
()
*
100000000000000000L
)
data
=
str
(
t
)
+
str
(
r
)
callid
=
m
d5
.
md5
(
data
)
.
hexdigest
()
m
.
update
(
str
(
t
)
+
str
(
r
)
)
callid
=
m
.
hexdigest
()
# Add the call to the list of active calls and set status to SENT
self
.
activeCalls
[
callid
]
=
{
'
Account
'
:
self
.
account
,
'
To
'
:
dest
,
'
State
'
:
'
SENT
'
}
...
...
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