When setting the permisssion to allow inbound numbers the client will call an api endpoint that will set the next avaiable inbound number for the service.

As before the service manager will not be able to change the Text message sender once they have the inbound sms permission.
If the inbound sms permission is turned off the Text message sender setting is once more configurable by the service manager.
The inbound number remains bound to the service, but has "inactive", so that the number can not be used again.
This commit is contained in:
Rebecca Law
2017-08-15 15:02:20 +01:00
parent 0387b72c00
commit c6a8ef43ec
4 changed files with 16 additions and 27 deletions

View File

@@ -359,7 +359,7 @@ def service_set_inbound_number(service_id):
switch_service_permissions(current_service['id'], 'inbound_sms')
set_inbound_sms = request.args.get('set_inbound_sms', False)
try:
if set_inbound_sms:
if set_inbound_sms == 'True':
inbound_number_client.activate_inbound_sms_service(service_id)
return redirect(url_for('.service_settings', service_id=service_id))
else: