def stop_ringtone_service(call):
    'Service to stop playing ringtone on Gateway.'
    gateway = call.data.get(ATTR_GW_MAC)
    gateway.write_to_hub(gateway.sid, mid=10000)
Service to stop playing ringtone on Gateway.
def stop_ringtone_service(call):
    
    gateway = call.data.get(ATTR_GW_MAC)
    gateway.write_to_hub(gateway.sid, mid=10000)