Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
piphone
piphone-sip
Commits
7aab8fe8
Commit
7aab8fe8
authored
Jan 25, 2017
by
okhin
Browse files
Adding a Down state to the call
parent
84686033
Pipeline
#801
passed with stage
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
piphone.py
View file @
7aab8fe8
...
...
@@ -306,6 +306,9 @@ class Call(object):
chan
=
ari
.
Channel
(
config
[
'asterisk'
],
channel
)
phone_logger
.
info
(
'Hanging up channel {}'
.
format
(
channel
))
chan
.
delete
()
self
.
update
((
':'
.
join
([
'Down'
]
,
event
[
'channel'
][
'id'
].
split
(
'-'
)[
-
1
]])
,
event
[
'timestamp'
]))
def
dtmf
(
self
,
event
):
'''
...
...
Write
Preview
Supports
Markdown
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