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
e137e13e
Commit
e137e13e
authored
Jan 25, 2017
by
okhin
Browse files
The test for caller/callee needs to be sanitized
parent
0d179e4e
Pipeline
#799
passed with stage
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
piphone.py
View file @
e137e13e
...
...
@@ -346,7 +346,7 @@ class Call(object):
# We now need to take action according to our new state
if
event
[
'channel'
][
'state'
]
==
'Up'
:
# Are we the caller or the callee?
if
event
[
'channel'
][
'id'
].
endswith
(
self
.
callee
):
if
event
[
'channel'
][
'id'
].
endswith
(
sanitize_phonenumber
(
self
.
callee
)
)
:
# 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
,))
...
...
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