Skip to content

Commit

Permalink
issue plivo#111
Browse files Browse the repository at this point in the history
  • Loading branch information
evghenin committed Jan 2, 2014
1 parent e9e46bd commit 3e1b043
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/plivo/rest/freeswitch/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,10 +731,7 @@ def _prepare_play_string(self, outbound_socket, remote_url):

def create_number(self, number_instance, outbound_socket):
num_gw = []
# skip number object without gateway or number
if not number_instance.gateways:
outbound_socket.log.error("Gateway not defined on Number object !")
return ''
# skip number object without number
if not number_instance.number:
outbound_socket.log.error("Number not defined on Number object !")
return ''
Expand Down Expand Up @@ -1238,6 +1235,8 @@ def parse_element(self, element, uri=None):
if gateways:
# get list of gateways
self.gateways = gateways.split(',')
else:
self.gateways = [""]
# split gw codecs by , but only outside the ''
if gateway_codecs:
self.gateway_codecs = \
Expand Down

0 comments on commit 3e1b043

Please sign in to comment.