Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move delimiter to mandatory params

  • Loading branch information...
commit 76b4c25cac48bb81e580bdd02d07d6735a077045 1 parent 53725b5
bevenky authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/plivo/rest/freeswitch/rest_api.py
View
5 src/plivo/rest/freeswitch/rest_api.py
@@ -285,8 +285,10 @@ def bulk_calls(self):
to_str = get_post_param(request, 'To')
gw_str = get_post_param(request, 'Gateways')
answer_url = get_post_param(request, 'AnswerUrl')
+ delimiter = get_post_param(request, 'Delimiter')
- if not caller_id or not to_str or not gw_str or not answer_url:
+ if not caller_id or not to_str or not gw_str or not answer_url or\
+ not delimiter:
msg = "Mandatory Parameters Missing"
elif not is_valid_url(answer_url):
msg = "Answer URL is not Valid"
@@ -300,7 +302,6 @@ def bulk_calls(self):
else:
extra_dial_string = get_post_param(request,
'OriginateDialString')
- delimiter = get_post_param(request, 'Delimiter')
# Is a string of strings
gw_codecs_str = get_post_param(request, 'GatewayCodecs')
gw_timeouts_str = get_post_param(request, 'GatewayTimeouts')
Please sign in to comment.
Something went wrong with that request. Please try again.