Skip to content
GitLab
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
0d179e4e
Commit
0d179e4e
authored
Jan 25, 2017
by
okhin
Browse files
Adding an eception on bridge creation
parent
cd400f3b
Pipeline
#798
passed with stage
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
piphone.py
View file @
0d179e4e
...
...
@@ -350,7 +350,10 @@ class Call(object):
# Step 1 create a bridge
bridge
=
ari
.
Bridge
(
config
[
'asterisk'
],
self
.
id
,
'mixing'
)
phone_logger
.
debug
(
"Creating a bridges to connect {} to {}"
.
format
(
self
.
caller
,
self
.
callee
,))
bridge
.
create
()
try
:
bridge
.
create
()
except
Exception
as
e
:
raise
e
# Step 2, moving channels
channels
=
","
.
join
([
self
.
id
+
'-'
+
self
.
caller
,
self
.
id
+
'-'
+
self
.
callee
])
phone_logger
.
debug
(
"Moving channels to the created bridge: {}"
.
format
(
bridge
.
name
,))
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment